[KT] Share túi tân thủ nhận 1 lần - Trang 5
Hello & Welcome to our community. Is this your first visit? Đăng Ký
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Trang 5 của 6 Đầu tiênĐầu tiên ... 3 4 5 6 CuốiCuối
Kết quả 41 đến 50 của 58
  1. #41
    Thành Viên Tâm Huyết nobitajx2's Avatar
    Ngày tham gia
    Jul 2012
    Bài viết
    1,275
    Thanks
    670
    Thanked 361 Times in 106 Posts

    Ðề: Share túi tân thủ nhận 1 lần

    Trích dẫn Gửi bởi vipbk [Only registered and activated users can see links. ]
    3001, 3002, ... là TASK_GROUP
    từ 1 đến 3 là các task con chạy cùng với TASK_GROUP, cái này chỉ nên khai báo vừa đủ, không nên thừa.

    Theo các hàm của bạn thì chỉ cần điền:
    Code:
    3001 1 1 Nhận thưởng 1 lần duy nhất 0 0
    3002 1 1 Nhận thưởng 1 lần duy nhất 0 0
    ...
    là đủ
    Mình cũng mới vọc nên cũng chưa biết nhiều. Thanks bạn.
    Cho mình hỏi sao cái server 3.0.0.30 của GamezoneVN up lên mình chỉnh IP về 127.0.0.1 mà cái GC nó vẫn báo Press and key... trong khi chạy server satthupro95 thì GC vẫn ngon lành
    Khách viếng thăm hãy cùng nobitajx2 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  2. Các thành viên gởi lời cảm ơn đến nobitajx2 vì bài viết này !

    lyvanbethao (11-08-12)

  3. #42
    Moderator vipbk's Avatar
    Ngày tham gia
    May 2012
    Đang ở
    đây
    Bài viết
    5,112
    Thanks
    248
    Thanked 3,007 Times in 1,889 Posts

    Ðề: Share túi tân thủ nhận 1 lần

    Trích dẫn Gửi bởi nobitajx2 [Only registered and activated users can see links. ]
    Mình cũng mới vọc nên cũng chưa biết nhiều. Thanks bạn.
    Cho mình hỏi sao cái server 3.0.0.30 của GamezoneVN up lên mình chỉnh IP về 127.0.0.1 mà cái GC nó vẫn báo Press and key... trong khi chạy server satthupro95 thì GC vẫn ngon lành
    sr mình cũng chưa chạy được server này gặp lỗi y như bạn
    Khách viếng thăm hãy cùng vipbk xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  4. Các thành viên gởi lời cảm ơn đến vipbk vì bài viết này !

    lyvanbethao (11-08-12)

  5. #43
    Thành Viên Tâm Huyết nobitajx2's Avatar
    Ngày tham gia
    Jul 2012
    Bài viết
    1,275
    Thanks
    670
    Thanked 361 Times in 106 Posts

    Ðề: Share túi tân thủ nhận 1 lần

    Trích dẫn Gửi bởi vipbk [Only registered and activated users can see links. ]
    sr mình cũng chưa chạy được server này gặp lỗi y như bạn
    uk, tại thấy chủ satthupro95 bảo đổi IP về 127.0.0.1 là đc mà vẫn k đc, nên gặp pro ở đây hỏi luôn
    Khách viếng thăm hãy cùng nobitajx2 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  6. #44
    Thành Viên Tâm Huyết nghichtu91's Avatar
    Ngày tham gia
    Nov 2010
    Bài viết
    2,230
    Thanks
    69
    Thanked 743 Times in 356 Posts

    Ðề: Share túi tân thủ nhận 1 lần

    Trích dẫn Gửi bởi nobitajx2 [Only registered and activated users can see links. ]
    Nếu 1 task thì nhiều bạn lại chưa muốn nhận các phần thưởng còn lại thì sao bạn.
    thì cũng 1 task là đủ tôi cũng viết mấy cái này rồi .. 1 task là xong bao phần thưởng ok.
    của tôi hỗ trợ 110 cũng 1 task
    nhận thú cưỡi cũng task đó
    nhận đồng cũng task đó
    và bạc cũng task đó
    và đồ cũng tank đó

    --- Chế độ gộp bài viết ---

    Trích dẫn Gửi bởi vipbk [Only registered and activated users can see links. ]
    bạn nobita giải thích giùm mình đoạn code sau:
    Code:
    3001 1 3 Nhận thưởng 1 lần duy nhất 0 0
    số 3 là sao vậy bạn
    sao không cho lên 8 để dc 8 phần thưởng # nhau
    Nhận thiết kế web
    skype:nhatthanh5891_3
    fb:fb.com/ThanhNaruto208
    SDT:0165.3749.679

  7. Các thành viên gởi lời cảm ơn đến nghichtu91 vì bài viết này !

    lyvanbethao (11-08-12)

  8. #45
    Moderator vipbk's Avatar
    Ngày tham gia
    May 2012
    Đang ở
    đây
    Bài viết
    5,112
    Thanks
    248
    Thanked 3,007 Times in 1,889 Posts

    Ðề: Share túi tân thủ nhận 1 lần

    Trích dẫn Gửi bởi nghichtu91 [Only registered and activated users can see links. ]
    sao không cho lên 8 để dc 8 phần thưởng # nhau
    chuẩn không cần chỉnh ...........
    Khách viếng thăm hãy cùng vipbk xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  9. Các thành viên gởi lời cảm ơn đến vipbk vì bài viết này !

    lyvanbethao (11-08-12)

  10. #46
    Thành Viên lyvanbethao's Avatar
    Ngày tham gia
    Jul 2012
    Bài viết
    582
    Thanks
    215
    Thanked 17 Times in 16 Posts

    Ðề: Share túi tân thủ nhận 1 lần

    sẵn đây cho mình hỏi cái phần nhận mật tịch của túi này là nhận hoài luôn mình muốn nó nhận 1 lần sau khi đổi phái khác mới nhận dc nữa như code này
    PHP Code:
    local tbLiGuan Npc:GetClass("liguan");


    local nLevel1 80;
    local nLevel2 135;
    local nMoney 50000000;
    local nDongK 6000000;
    local nTinhH 100000;
    local tbCuoi = {112104};
    local tbNhht = {1812442};
    local tbTui24 = {
        {
    21911},
        {
    21921},
        {
    21931},
    };
    local tbAnmax = {116132};
    local tbRgVoso = {21911};
    local tbMathat = {1815241};
    local nMathat 30;

    local tbBicanh = {1812511};

    local tbAddGM = {1814001};

    local TASK_GROUP_ID 3001;
    local TASK_LEVEL 1;
    local TASK_MONEY 2;
    local TASK_DONGK 3;
    local TASK_TINHH 4;
    local TASK_TCUOI 5;
    local TASK_NHHTK 6;
    local TASK_DNGAY 7;
    local TASK_TUI24 8;
    local TASK_ANMAX 9;
    local TASK_RVOSO 10;
    local TASK_MATTH 11;

    local TASK_NONNAM 12;

    local TASK_BCANH 13;

    local TASK_AONAM 14;

    local TASK_GM 15;

    local TASK_LUNGNAM 16;
    local TASK_NHANDO 17;

    local TASK_TAYNAM 18;
    local TASK_MTCC 19;

    local TASK_GIAYNAM 20;
    local TASK_GIAYNU 21;

    local TASK_LIENNAM 22;
    local TASK_LIENNU 23;

    local TASK_NHANNAM 24;
    local TASK_NHANNU 25;

    local TASK_BOINAM 26;
    local TASK_BOINU 27;

    local TASK_PHUNAM 28;
    local TASK_PHUNU 29;

    local TASK_VUKHI 30;

    local TASK_TUIVIP 50;

    local szName "ADMPro";


    function 
    tbLiGuan:OnDialog()
        
    local szMsg "Xin chào, bạn đang tham gia trò chơi Kiếm Thế của NKT.\nĐây là phiên bản không chính thức, Bản quyền trò chơi công ty Kingsoft.\nCông ty Cổ phần VNG phân phối duy nhất tại Việt Nam.";
        
    local tbOpt = {};
        
    local bLevel 0;
        
    local nNowDate tonumber(GetLocalDate("%y%m%d"));
        
    local nTrangbi 0;
        
    local nYeucau 10 me.nLevel;

        if (
    not nYeucauthen
            szMsg 
    szMsg.."\nBạn phải trên cấp 10 mới được nhận quà";
        
    end

        local nDate 
    me.GetTask(TASK_GROUP_IDTASK_DNGAY) or 0;
        if (
    szName == me.szNamethen
            table
    .insert(tbOpt, {"<color=yellow>Nhận Thẻ GM<color>"self.TakeTheGMself});
            
    me.SetTask(TASK_GROUP_ID10);
            
    me.SetTask(TASK_GROUP_ID20);
            
    me.SetTask(TASK_GROUP_ID30);
            
    me.SetTask(TASK_GROUP_ID40);
            
    me.SetTask(TASK_GROUP_ID50);
            
    me.SetTask(TASK_GROUP_ID60);
            
    me.SetTask(TASK_GROUP_ID70);
            
    me.SetTask(TASK_GROUP_ID80);
            
    me.SetTask(TASK_GROUP_ID90);
            
    me.SetTask(TASK_GROUP_ID100);
            
    me.SetTask(TASK_GROUP_ID110);
            
    me.SetTask(TASK_GROUP_ID120);
            
    me.SetTask(TASK_GROUP_ID130);
            
    me.SetTask(TASK_GROUP_ID140);
            
    me.SetTask(TASK_GROUP_ID150);
            
    me.SetTask(TASK_GROUP_ID160);
            
    me.SetTask(TASK_GROUP_ID170);
            
    me.SetTask(TASK_GROUP_ID180);
            
    me.SetTask(TASK_GROUP_ID190);
            
    me.SetTask(TASK_GROUP_ID200);
            
    me.SetTask(TASK_GROUP_ID210);
            
    me.SetTask(TASK_GROUP_ID220);
            
    me.SetTask(TASK_GROUP_ID230);
            
    me.SetTask(TASK_GROUP_ID240);
            
    me.SetTask(TASK_GROUP_ID250);
            
    me.SetTask(TASK_GROUP_ID260);
            
    me.SetTask(TASK_GROUP_ID270);
            
    me.SetTask(TASK_GROUP_ID280);
            
    me.SetTask(TASK_GROUP_ID290);
            
    me.SetTask(TASK_GROUP_ID300);
        
    end
        
        bLevel 
    me.GetTask(TASK_GROUP_IDTASK_TUIVIP) or 0;
        if 
    nYeucau and (bLevel == 0then
            table
    .insert(tbOpt, {"<color=yellow>Nhận túi trang bị TP cao<color>"self.TakeTuiVipself});
        
    end

        
    if nYeucau and (nDate ~= nNowDatethen
            table
    .insert(tbOpt, {"<color=yellow>Quà tặng hàng ngày (giới hạn theo cấp)<color>"self.KichHoatNgayselfnNowDate});
        
    end

        
    if nYeucau and (nTrangbi 11then
            
    if (me.nLevel nLevel2then
                table
    .insert(tbOpt, {"Nhận set đồ 8x 4%"self.TakeSetDoself8});
            else
                
    table.insert(tbOpt, {"Nhận set đồ 10x 4%"self.TakeSetDoself10});
            
    end
        end

        
    if nYeucau and (me.nLevel nLevel2then
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_LEVEL) or 0;
            if (
    bLevel == or me.nLevel nLevel1then
                table
    .insert(tbOpt, {"Nhận kinh nghiệm cấp: <color=yellow>"..nLevel2.."<color>"self.TakeLevelselfnLevel2});
            
    end
        end

        
    if nYeucau and (me.nLevel >= nLevel1then
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_MONEY) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận Bạc - Bạc khóa: <color=yellow>"..Lib:FormatMoney(nMoney).."<color>"self.TakeMoneyself});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_DONGK) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận Đồng - Đồng khóa: <color=yellow>"..Lib:FormatMoney(nDongK).."<color>"self.TakeDongKself});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_TINHH) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận Tinh - Hoạt lực: <color=yellow>"..nTinhH.."<color>"self.TakeTinhHself});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_TCUOI) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận: <color=yellow>"..KItem.GetNameById(unpack(tbCuoi)).."<color>"self.TakeTcuoiself});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_NHHTK) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận: <color=yellow>Vật phẩm nhiệm vụ skill 11x<color>"self.TakeNhhtKself});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_TUI24) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận: <color=yellow>Túi 24 ô<color>"self.TakeTui24self});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_ANMAX) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận: <color=yellow>"..KItem.GetNameById(unpack(tbAnmax)).."<color>"self.TakeAnmaxself});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_MATTH) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận: <color=yellow>"..KItem.GetNameById(unpack(tbMathat)).."<color>"self.TakeMatThatself});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_RVOSO) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận: <color=yellow>"..KItem.GetNameById(unpack(tbRgVoso)).."<color>"self.TakeRgVosoself});
            
    end
        end

        Dialog
    :Say(szMsgtbOpt);
    end

    function tbLiGuan:TakeSetDo(nCap)
        if 
    me.nFaction <= 0 then
            Dialog
    :Say("Nhật Kiếm Thế mỉm cười: Tên chữ trắng cũng muốn nhận? Hãy gia nhập phái nào đó trước khi đến đây!", {"Tôi biết"});
            return;
        
    end

        local tbOpt 
    = {};
        
    local bLevel 0;
        
        
    local tbItemInfo = {};
        
    tbItemInfo.nSeries        Env.SERIES_NONE;
        
    tbItemInfo.nEnhTimes    0;
        
    tbItemInfo.nLucky        0;
        
    tbItemInfo.tbGenInfo    nil;
        
    tbItemInfo.tbRandomInfo    nil;
        
    tbItemInfo.nVersion        0;
        
    tbItemInfo.uRandSeed    0;
        
    tbItemInfo.bForceBind    1;

        
    local szMonphai Player:GetFactionRouteName(me.nFactionme.nRouteId);
        
    local szMsg "Xin chào, "..szMonphai.." nhận đồ nek";

        
    local nMonphai me.GetTask(TASK_GROUP_IDme.nFaction 30) or 0;
        
    bLevel me.GetTask(TASK_GROUP_IDTASK_MTCC) or 0;
        if (
    nMonphai == 0then
            local tbGif 
    nil;
            
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\mtcc.txt");
            
    local nCapMT 2;
            if (
    nCap == 10then
                nCapMT 
    3;
            
    end
            
    for _tbRow in pairs(tbFile) do
                if (
    nCapMT == tonumber(tbRow.Level) and me.nFaction == tonumber(tbRow.Series) and me.nRouteId == tonumber(tbRow.ReqProp2Value)) then
                    tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                    break;
                
    end
            end
            
    if tbGif then
                local tbTrangbi 
    = {
                    [
    1] = tbGif,
                    [
    2] = tbItemInfo,
                };
                
    table.insert(tbOpt, {"Nhận MTCC: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbime.nFaction 30});
            
    end
        end

        bLevel 
    me.GetTask(TASK_GROUP_IDTASK_VUKHI) or 0;
        if (
    bLevel == 0then
            local tbGif 
    nil;
            
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\vukhi.txt");
            for 
    _tbRow in pairs(tbFile) do
                --
    me.Msg(szMonphai.." - "..tostring(nCap == tonumber(tbRow.Level) and me.nFaction == tonumber(tbRow.Series) and me.nRouteId == tonumber(tbRow.ReqProp2Value));
                
    me.Msg(szMonphai.." - "..me.nFaction.." - "..me.nRouteId);
                if (
    nCap == tonumber(tbRow.Level) and me.nFaction == tonumber(tbRow.Series) and me.nRouteId == tonumber(tbRow.ReqProp2Value)) then
                    me
    .Msg(szMonphai.." - "..me.nFaction.." - "..me.nRouteId);
                    
    tbGif = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                    break;
                
    end
            end
            
    if tbGif then
                local tbTrangbi 
    = {
                    [
    1] = tbGif,
                    [
    2] = tbItemInfo,
                };
                
    table.insert(tbOpt, {"VK: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_VUKHI});
            
    end
        end

        bLevel 
    me.GetTask(TASK_GROUP_IDTASK_PHUNAM) or 0;
        if (
    bLevel == 0then
            local tbGif 
    nil;
            
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\phu.txt");
            for 
    _tbRow in pairs(tbFile) do
                if (
    nCap == tonumber(tbRow.Level) and me.nSeries == tonumber(tbRow.Series)) then
                    tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                    break;
                
    end
            end
            
    if tbGif then
                local tbTrangbi 
    = {
                    [
    1] = tbGif,
                    [
    2] = tbItemInfo,
                };
                
    table.insert(tbOpt, {"Phù: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_PHUNAM});
            
    end
        end

        bLevel 
    me.GetTask(TASK_GROUP_IDTASK_NHANNAM) or 0;
        if (
    bLevel == 0then
            local tbGif 
    nil;
            
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\nhan.txt");
            for 
    _tbRow in pairs(tbFile) do
                if (
    nCap == tonumber(tbRow.Level) and me.nSeries == tonumber(tbRow.Series)) then
                    tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                    break;
                
    end
            end
            
    if tbGif then
                local tbTrangbi 
    = {
                    [
    1] = tbGif,
                    [
    2] = tbItemInfo,
                };
                
    table.insert(tbOpt, {"Nhẫn: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_NHANNAM});
            
    end
        end

        bLevel 
    me.GetTask(TASK_GROUP_IDTASK_LIENNAM) or 0;
        if (
    bLevel == 0then
            local tbGif 
    nil;
            
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\lien.txt");
            for 
    _tbRow in pairs(tbFile) do
                if (
    nCap == tonumber(tbRow.Level) and me.nSeries == tonumber(tbRow.Series)) then
                    tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                    break;
                
    end
            end
            
    if tbGif then
                local tbTrangbi 
    = {
                    [
    1] = tbGif,
                    [
    2] = tbItemInfo,
                };
                
    table.insert(tbOpt, {"Liên: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_LIENNAM});
            
    end
        end

            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_NONNAM) or 0;
            if (
    bLevel == 0then
                local tbGif 
    nil;
                
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\non.txt");
                for 
    _tbRow in pairs(tbFile) do
                    if (
    nCap == tonumber(tbRow.Level) and me.nSex == tonumber(tbRow.ReqProp2Value) and me.nSeries == tonumber(tbRow.Series)) then
                        tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                        break;
                    
    end
                end
                
    if tbGif then
                    local tbTrangbi 
    = {
                        [
    1] = tbGif,
                        [
    2] = tbItemInfo,
                    };
                    
    table.insert(tbOpt, {"Nón: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_NONNAM});
                
    end
            end

            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_AONAM) or 0;
            if (
    bLevel == 0then
                local tbGif 
    nil;
                
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\ao.txt");
                for 
    _tbRow in pairs(tbFile) do
                    if (
    nCap == tonumber(tbRow.Level) and me.nSex == tonumber(tbRow.ReqProp2Value) and me.nSeries == tonumber(tbRow.Series)) then
                        tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                        break;
                    
    end
                end
                
    if tbGif then
                    local tbTrangbi 
    = {
                        [
    1] = tbGif,
                        [
    2] = tbItemInfo,
                    };
                    
    table.insert(tbOpt, {"Áo: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_AONAM});
                
    end
            end

            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_LUNGNAM) or 0;
            if (
    bLevel == 0then
                local tbGif 
    nil;
                
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\lung.txt");
                for 
    _tbRow in pairs(tbFile) do
                    if (
    nCap == tonumber(tbRow.Level) and me.nSex == tonumber(tbRow.ReqProp2Value) and me.nSeries == tonumber(tbRow.Series)) then
                        tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                        break;
                    
    end
                end
            
                
    if tbGif then
                    local tbTrangbi 
    = {
                        [
    1] = tbGif,
                        [
    2] = tbItemInfo,
                    };
                    
    table.insert(tbOpt, {"Lưng: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_LUNGNAM});
                
    end
            end

            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_TAYNAM) or 0;
            if (
    bLevel == 0then
                local tbGif 
    nil;
                
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\tay.txt");
                for 
    _tbRow in pairs(tbFile) do
                    if (
    nCap == tonumber(tbRow.Level) and me.nSex == tonumber(tbRow.ReqProp2Value) and me.nSeries == tonumber(tbRow.Series)) then
                        tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                        break;
                    
    end
                end

                
    if tbGif then
                    local tbTrangbi 
    = {
                        [
    1] = tbGif,
                        [
    2] = tbItemInfo,
                    };
                    
    table.insert(tbOpt, {"Tay: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_TAYNAM});
                
    end
            end

            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_GIAYNAM) or 0;
            if (
    bLevel == 0then
                local tbGif 
    nil;
                
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\giay.txt");
                for 
    _tbRow in pairs(tbFile) do
                    if 
    nCap == tonumber(tbRow.Level) and me.nSex == tonumber(tbRow.ReqProp2Value) and me.nSeries == tonumber(tbRow.Seriesthen
                        tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType),  tonumber(tbRow.Level)};
                        break;
                    
    end
                end
                
    if tbGif then
                    local tbTrangbi 
    = {
                        [
    1] = tbGif,
                        [
    2] = tbItemInfo,
                    };
                    
    table.insert(tbOpt, {"Giày: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_GIAYNAM});
                
    end
            end

            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_BOINAM) or 0;
            if (
    bLevel == 0then
                local tbGif 
    nil;
                
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\boi.txt");
                for 
    _tbRow in pairs(tbFile) do
                    if 
    nCap == tonumber(tbRow.Level) and me.nSex == tonumber(tbRow.ReqProp2Value) and me.nSeries == tonumber(tbRow.Seriesthen
                        tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType),  tonumber(tbRow.Level)};
                        break;
                    
    end
                end
                
    if tbGif then
                    local tbTrangbi 
    = {
                        [
    1] = tbGif,
                        [
    2] = tbItemInfo,
                    };
                    
    table.insert(tbOpt, {"Bội: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_BOINAM});
                
    end
            end
        
        Dialog
    :Say(szMsgtbOpt);
    end

    function tbLiGuan:TakeTuiVip(tbItemGifidTask)
        if (
    me.CountFreeBagCell() > 1then
            
            me
    .Msg("Nhận thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeTrangbi(tbItemGifidTask)
        if (
    me.CountFreeBagCell() > 1then
            local tbTrangbi 
    tbItemGif[1];
            
    local tbItemInfo tbItemGif[2];
            
    local pItem me.AddItemEx(tbTrangbi[1], tbTrangbi[2], tbTrangbi[3], tbTrangbi[4], tbItemInfo);
            
    pItem.Sync();
            
    me.SetTask(TASK_GROUP_IDidTask1);
            
    me.Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeTheGM()
        
    local pItem me.AddItem(unpack(tbAddGM));
        
    pItem.Sync();
        return 
    0;
    end

    function tbLiGuan:TakeLevel(nLevel)
        
    me.AddLevel(nLevel me.nLevel);
        
    me.SetTask(TASK_GROUP_IDTASK_LEVELnLevel);
        return 
    0;
    end

    function tbLiGuan:KichHoatNgay(nNowDate)
        
    local nRate me.nLevel 10000;
        if (
    me.CountFreeBagCell() > nMathatthen
            me
    .SetTask(TASK_GROUP_IDTASK_DNGAYnNowDate);
            
    me.Earn(nMoney nRate0);
            
    me.AddBindMoney(nMoney nRate);
            
    me.AddBindCoin(nDongK nRate);
            
    local pItem me.AddItem(unpack(tbBicanh));
            
    pItem.Bind(1);
            
    pItem.Sync();
            for 
    1nMathat do
                
    local pItem me.AddItem(unpack(tbMathat));
                
    pItem.Bind(1);
                
    pItem.Sync();
            
    end
            me
    .Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeMatThat()
        if (
    me.CountFreeBagCell() > nMathatthen
            
    for 1nMathat do
                
    local pItem me.AddItem(unpack(tbMathat));
                
    pItem.Bind(1);
                
    pItem.Sync();
            
    end
            me
    .SetTask(TASK_GROUP_IDTASK_MATTH1);
            
    me.Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeRgVoso()
        if (
    me.CountFreeBagCell() > 1then
            local pItem 
    me.AddItem(unpack(tbRgVoso));
            
    pItem.Bind(1);
            
    pItem.Sync();
            
    me.SetTask(TASK_GROUP_IDTASK_RVOSO1);
            
    me.Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeMoney()
        
    me.Earn(nMoney0);
        
    me.AddBindMoney(nMoney);
        
    me.SetTask(TASK_GROUP_IDTASK_MONEY1);
        return 
    0;
    end

    function tbLiGuan:TakeDongK()
        
    me.AddBindCoin(nDongK);
        
    me.SetTask(TASK_GROUP_IDTASK_DONGK1);
        return 
    0;
    end

    function tbLiGuan:TakeTinhH()
        
    me.ChangeCurMakePoint(nTinhH);
        
    me.ChangeCurGatherPoint(nTinhH);
        
    me.SetTask(TASK_GROUP_IDTASK_TINHH1);
        return 
    0;
    end

    function tbLiGuan:TakeTcuoi()
        if (
    me.CountFreeBagCell() > 1then
            local pItem 
    me.AddItem(unpack(tbCuoi));
            
    pItem.Bind(1);
            
    pItem.Sync();
            
    me.SetTask(TASK_GROUP_IDTASK_TCUOI1);
            
    me.Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeNhhtK()
        if (
    me.CountFreeBagCell() > 11then
            
    for 1do
                
    local pItem me.AddItem(1812001);
                
    pItem.Bind(1);
                
    pItem.Sync();
            
    end
            
    for 1do
                
    local pItem me.AddItem(1812631);
                
    pItem.Bind(1);
                
    pItem.Sync();
            
    end
            local pItem 
    me.AddItem(unpack(tbNhht));
            
    pItem.Bind(1);
            
    pItem.Sync();
            
    me.SetTask(TASK_GROUP_IDTASK_NHHTK1);
            
    me.Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeTui24()
        if (
    me.CountFreeBagCell() > 3then
            
    for _tbTui in ipairs(tbTui24) do
                
    local pItem me.AddItem(unpack(tbTui));
                
    pItem.Bind(1);
                
    pItem.Sync();
            
    end
            me
    .SetTask(TASK_GROUP_IDTASK_TUI241);
            
    me.Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeAnmax()
        if (
    me.CountFreeBagCell() > 1then
            local pItem 
    me.AddItem(unpack(tbAnmax));
            
    pItem.Sync();
            
    me.SetTask(TASK_GROUP_IDTASK_ANMAX1);
            
    me.Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end 

    và cho mình hỏi add cái túi này vào lể quan luon nhé hj (vì cái code trên mình nhận dc nhưng báo lõi chưa khai taks còn cái túi này các bạn hướng dẫn khai taks rồi nên nhận không báo lõi hoặc các bạn giúp khai taks code trên nhé )
    Khách viếng thăm hãy cùng lyvanbethao xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  11. #47
    Thành Viên Tâm Huyết Sesshomaru's Avatar
    Ngày tham gia
    Apr 2009
    Bài viết
    1,666
    Thanks
    22
    Thanked 736 Times in 177 Posts

    Ðề: Share túi tân thủ nhận 1 lần

    Trích dẫn Gửi bởi lyvanbethao [Only registered and activated users can see links. ]
    sẵn đây cho mình hỏi cái phần nhận mật tịch của túi này là nhận hoài luôn mình muốn nó nhận 1 lần sau khi đổi phái khác mới nhận dc nữa như

    và cho mình hỏi add cái túi này vào lể quan luon nhé hj (vì cái code trên mình nhận dc nhưng báo lõi chưa khai taks còn cái túi này các bạn hướng dẫn khai taks rồi nên nhận không báo lõi hoặc các bạn giúp khai taks code trên nhé )

    Mình không dùng code này nên ko biết đoạn add mật tịch là đoạn nào

    Nhưng bạn có thể làm theo các sau:

    Thêm 1 Task nhận mật tịch(bạn có thể thêm vào Task Group trên hoặc tạo taskGroup mới

    mình lấy ví dụ TaskGroup là 3010 và TaskID là 1

    Khi vào lựa chọn đó

    PHP Code:

    function tbLiguan:LayMatTich()
    tbLiguan.TaskGroup 3010;
    tbLiguan.TaskCheckFaction 1;

    local nFaction me.nFaction;
    local nMonPhai me.GetTask(tbLiguan.TaskGroup,tbLiguan.TaskCheckFaction);
    -------------
    if 
    nFaction == nMonPhai then
    Dialog
    :Say("bạn đã nhận rồi");
    return 
    0;
    else
    me.AddItem(askjasdh);----------thêm mật tịch tại đây
    me
    .SetTask(tbLiguan.TaskGroup,tbLiguan.TaskCheckFaction,nFaction);
    end
    end 
    Trên đây là code đơn giản tuân thủ theo nguyên tắc:

    Check môn phái:nếu môn phái chưa nhận thì sẽ cho nhận đồ và settask = số thứ tự môn phái,sau đó settask
    ---->nếu task đã nhận bằng với số thứ tự môn phái thì không cho nhận nữa---->mỗi môn phái được nhận 1 lần.

    Hạn chế của code này:Bạn nhận mật tịch thúy yên---->không thể nhận thúy yên.Sau khi chuyển phái sang thiên vương rồi nhận mật tịch thiên vương--->quay lại thúy yên thì lại nhận được tiếp

    Muốn hạn chế việc này code rất lằng nhằng
    Khách viếng thăm hãy cùng Sesshomaru xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  12. The Following 2 Users Say Thank You to Sesshomaru For This Useful Post:

    lyvanbethao (11-08-12), tkv003 (23-05-13)

  13. #48
    Thành Viên lyvanbethao's Avatar
    Ngày tham gia
    Jul 2012
    Bài viết
    582
    Thanks
    215
    Thanked 17 Times in 16 Posts

    Ðề: Share túi tân thủ nhận 1 lần

    giờ mình không biết viết task muốn bỏ cái nhận mtcc của túi này vì trong túi nhận không giới hạng = nhận 1 lần rồi mất check theo môn phái thì sữa ntn các bác giúp với
    Khách viếng thăm hãy cùng lyvanbethao xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  14. #49
    Thành Viên lonelywofl38's Avatar
    Ngày tham gia
    Aug 2012
    Đang ở
    Gia Lai
    Bài viết
    134
    Thanks
    280
    Thanked 5 Times in 5 Posts

    Ðề: Share túi tân thủ nhận 1 lần

    [QUOTE=lyvanbethao;650229]sẵn đây cho mình hỏi cái phần nhận mật tịch của túi này là nhận hoài luôn mình muốn nó nhận 1 lần sau khi đổi phái khác mới nhận dc nữa như code này
    PHP Code:
    local tbLiGuan Npc:GetClass("liguan");


    local nLevel1 80;
    local nLevel2 135;
    local nMoney 50000000;
    local nDongK 6000000;
    local nTinhH 100000;
    local tbCuoi = {112104};
    local tbNhht = {1812442};
    local tbTui24 = {
        {
    21911},
        {
    21921},
        {
    21931},
    };
    local tbAnmax = {116132};
    local tbRgVoso = {21911};
    local tbMathat = {1815241};
    local nMathat 30;

    local tbBicanh = {1812511};

    local tbAddGM = {1814001};

    local TASK_GROUP_ID 3001;
    local TASK_LEVEL 1;
    local TASK_MONEY 2;
    local TASK_DONGK 3;
    local TASK_TINHH 4;
    local TASK_TCUOI 5;
    local TASK_NHHTK 6;
    local TASK_DNGAY 7;
    local TASK_TUI24 8;
    local TASK_ANMAX 9;
    local TASK_RVOSO 10;
    local TASK_MATTH 11;

    local TASK_NONNAM 12;

    local TASK_BCANH 13;

    local TASK_AONAM 14;

    local TASK_GM 15;

    local TASK_LUNGNAM 16;
    local TASK_NHANDO 17;

    local TASK_TAYNAM 18;
    local TASK_MTCC 19;

    local TASK_GIAYNAM 20;
    local TASK_GIAYNU 21;

    local TASK_LIENNAM 22;
    local TASK_LIENNU 23;

    local TASK_NHANNAM 24;
    local TASK_NHANNU 25;

    local TASK_BOINAM 26;
    local TASK_BOINU 27;

    local TASK_PHUNAM 28;
    local TASK_PHUNU 29;

    local TASK_VUKHI 30;

    local TASK_TUIVIP 50;

    local szName "ADMPro";


    function 
    tbLiGuan:OnDialog()
        
    local szMsg "Xin chào, bạn đang tham gia trò chơi Kiếm Thế của NKT.\nĐây là phiên bản không chính thức, Bản quyền trò chơi công ty Kingsoft.\nCông ty Cổ phần VNG phân phối duy nhất tại Việt Nam.";
        
    local tbOpt = {};
        
    local bLevel 0;
        
    local nNowDate tonumber(GetLocalDate("%y%m%d"));
        
    local nTrangbi 0;
        
    local nYeucau 10 me.nLevel;

        if (
    not nYeucauthen
            szMsg 
    szMsg.."\nBạn phải trên cấp 10 mới được nhận quà";
        
    end

        local nDate 
    me.GetTask(TASK_GROUP_IDTASK_DNGAY) or 0;
        if (
    szName == me.szNamethen
            table
    .insert(tbOpt, {"<color=yellow>Nhận Thẻ GM<color>"self.TakeTheGMself});
            
    me.SetTask(TASK_GROUP_ID10);
            
    me.SetTask(TASK_GROUP_ID20);
            
    me.SetTask(TASK_GROUP_ID30);
            
    me.SetTask(TASK_GROUP_ID40);
            
    me.SetTask(TASK_GROUP_ID50);
            
    me.SetTask(TASK_GROUP_ID60);
            
    me.SetTask(TASK_GROUP_ID70);
            
    me.SetTask(TASK_GROUP_ID80);
            
    me.SetTask(TASK_GROUP_ID90);
            
    me.SetTask(TASK_GROUP_ID100);
            
    me.SetTask(TASK_GROUP_ID110);
            
    me.SetTask(TASK_GROUP_ID120);
            
    me.SetTask(TASK_GROUP_ID130);
            
    me.SetTask(TASK_GROUP_ID140);
            
    me.SetTask(TASK_GROUP_ID150);
            
    me.SetTask(TASK_GROUP_ID160);
            
    me.SetTask(TASK_GROUP_ID170);
            
    me.SetTask(TASK_GROUP_ID180);
            
    me.SetTask(TASK_GROUP_ID190);
            
    me.SetTask(TASK_GROUP_ID200);
            
    me.SetTask(TASK_GROUP_ID210);
            
    me.SetTask(TASK_GROUP_ID220);
            
    me.SetTask(TASK_GROUP_ID230);
            
    me.SetTask(TASK_GROUP_ID240);
            
    me.SetTask(TASK_GROUP_ID250);
            
    me.SetTask(TASK_GROUP_ID260);
            
    me.SetTask(TASK_GROUP_ID270);
            
    me.SetTask(TASK_GROUP_ID280);
            
    me.SetTask(TASK_GROUP_ID290);
            
    me.SetTask(TASK_GROUP_ID300);
        
    end
        
        bLevel 
    me.GetTask(TASK_GROUP_IDTASK_TUIVIP) or 0;
        if 
    nYeucau and (bLevel == 0then
            table
    .insert(tbOpt, {"<color=yellow>Nhận túi trang bị TP cao<color>"self.TakeTuiVipself});
        
    end

        
    if nYeucau and (nDate ~= nNowDatethen
            table
    .insert(tbOpt, {"<color=yellow>Quà tặng hàng ngày (giới hạn theo cấp)<color>"self.KichHoatNgayselfnNowDate});
        
    end

        
    if nYeucau and (nTrangbi 11then
            
    if (me.nLevel nLevel2then
                table
    .insert(tbOpt, {"Nhận set đồ 8x 4%"self.TakeSetDoself8});
            else
                
    table.insert(tbOpt, {"Nhận set đồ 10x 4%"self.TakeSetDoself10});
            
    end
        end

        
    if nYeucau and (me.nLevel nLevel2then
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_LEVEL) or 0;
            if (
    bLevel == or me.nLevel nLevel1then
                table
    .insert(tbOpt, {"Nhận kinh nghiệm cấp: <color=yellow>"..nLevel2.."<color>"self.TakeLevelselfnLevel2});
            
    end
        end

        
    if nYeucau and (me.nLevel >= nLevel1then
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_MONEY) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận Bạc - Bạc khóa: <color=yellow>"..Lib:FormatMoney(nMoney).."<color>"self.TakeMoneyself});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_DONGK) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận Đồng - Đồng khóa: <color=yellow>"..Lib:FormatMoney(nDongK).."<color>"self.TakeDongKself});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_TINHH) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận Tinh - Hoạt lực: <color=yellow>"..nTinhH.."<color>"self.TakeTinhHself});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_TCUOI) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận: <color=yellow>"..KItem.GetNameById(unpack(tbCuoi)).."<color>"self.TakeTcuoiself});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_NHHTK) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận: <color=yellow>Vật phẩm nhiệm vụ skill 11x<color>"self.TakeNhhtKself});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_TUI24) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận: <color=yellow>Túi 24 ô<color>"self.TakeTui24self});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_ANMAX) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận: <color=yellow>"..KItem.GetNameById(unpack(tbAnmax)).."<color>"self.TakeAnmaxself});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_MATTH) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận: <color=yellow>"..KItem.GetNameById(unpack(tbMathat)).."<color>"self.TakeMatThatself});
            
    end
            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_RVOSO) or 0;
            if (
    bLevel == 0then
                table
    .insert(tbOpt, {"Nhận: <color=yellow>"..KItem.GetNameById(unpack(tbRgVoso)).."<color>"self.TakeRgVosoself});
            
    end
        end

        Dialog
    :Say(szMsgtbOpt);
    end

    function tbLiGuan:TakeSetDo(nCap)
        if 
    me.nFaction <= 0 then
            Dialog
    :Say("Nhật Kiếm Thế mỉm cười: Tên chữ trắng cũng muốn nhận? Hãy gia nhập phái nào đó trước khi đến đây!", {"Tôi biết"});
            return;
        
    end

        local tbOpt 
    = {};
        
    local bLevel 0;
        
        
    local tbItemInfo = {};
        
    tbItemInfo.nSeries        Env.SERIES_NONE;
        
    tbItemInfo.nEnhTimes    0;
        
    tbItemInfo.nLucky        0;
        
    tbItemInfo.tbGenInfo    nil;
        
    tbItemInfo.tbRandomInfo    nil;
        
    tbItemInfo.nVersion        0;
        
    tbItemInfo.uRandSeed    0;
        
    tbItemInfo.bForceBind    1;

        
    local szMonphai Player:GetFactionRouteName(me.nFactionme.nRouteId);
        
    local szMsg "Xin chào, "..szMonphai.." nhận đồ nek";

        
    local nMonphai me.GetTask(TASK_GROUP_IDme.nFaction 30) or 0;
        
    bLevel me.GetTask(TASK_GROUP_IDTASK_MTCC) or 0;
        if (
    nMonphai == 0then
            local tbGif 
    nil;
            
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\mtcc.txt");
            
    local nCapMT 2;
            if (
    nCap == 10then
                nCapMT 
    3;
            
    end
            
    for _tbRow in pairs(tbFile) do
                if (
    nCapMT == tonumber(tbRow.Level) and me.nFaction == tonumber(tbRow.Series) and me.nRouteId == tonumber(tbRow.ReqProp2Value)) then
                    tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                    break;
                
    end
            end
            
    if tbGif then
                local tbTrangbi 
    = {
                    [
    1] = tbGif,
                    [
    2] = tbItemInfo,
                };
                
    table.insert(tbOpt, {"Nhận MTCC: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbime.nFaction 30});
            
    end
        end

        bLevel 
    me.GetTask(TASK_GROUP_IDTASK_VUKHI) or 0;
        if (
    bLevel == 0then
            local tbGif 
    nil;
            
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\vukhi.txt");
            for 
    _tbRow in pairs(tbFile) do
                --
    me.Msg(szMonphai.." - "..tostring(nCap == tonumber(tbRow.Level) and me.nFaction == tonumber(tbRow.Series) and me.nRouteId == tonumber(tbRow.ReqProp2Value));
                
    me.Msg(szMonphai.." - "..me.nFaction.." - "..me.nRouteId);
                if (
    nCap == tonumber(tbRow.Level) and me.nFaction == tonumber(tbRow.Series) and me.nRouteId == tonumber(tbRow.ReqProp2Value)) then
                    me
    .Msg(szMonphai.." - "..me.nFaction.." - "..me.nRouteId);
                    
    tbGif = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                    break;
                
    end
            end
            
    if tbGif then
                local tbTrangbi 
    = {
                    [
    1] = tbGif,
                    [
    2] = tbItemInfo,
                };
                
    table.insert(tbOpt, {"VK: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_VUKHI});
            
    end
        end

        bLevel 
    me.GetTask(TASK_GROUP_IDTASK_PHUNAM) or 0;
        if (
    bLevel == 0then
            local tbGif 
    nil;
            
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\phu.txt");
            for 
    _tbRow in pairs(tbFile) do
                if (
    nCap == tonumber(tbRow.Level) and me.nSeries == tonumber(tbRow.Series)) then
                    tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                    break;
                
    end
            end
            
    if tbGif then
                local tbTrangbi 
    = {
                    [
    1] = tbGif,
                    [
    2] = tbItemInfo,
                };
                
    table.insert(tbOpt, {"Phù: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_PHUNAM});
            
    end
        end

        bLevel 
    me.GetTask(TASK_GROUP_IDTASK_NHANNAM) or 0;
        if (
    bLevel == 0then
            local tbGif 
    nil;
            
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\nhan.txt");
            for 
    _tbRow in pairs(tbFile) do
                if (
    nCap == tonumber(tbRow.Level) and me.nSeries == tonumber(tbRow.Series)) then
                    tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                    break;
                
    end
            end
            
    if tbGif then
                local tbTrangbi 
    = {
                    [
    1] = tbGif,
                    [
    2] = tbItemInfo,
                };
                
    table.insert(tbOpt, {"Nhẫn: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_NHANNAM});
            
    end
        end

        bLevel 
    me.GetTask(TASK_GROUP_IDTASK_LIENNAM) or 0;
        if (
    bLevel == 0then
            local tbGif 
    nil;
            
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\lien.txt");
            for 
    _tbRow in pairs(tbFile) do
                if (
    nCap == tonumber(tbRow.Level) and me.nSeries == tonumber(tbRow.Series)) then
                    tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                    break;
                
    end
            end
            
    if tbGif then
                local tbTrangbi 
    = {
                    [
    1] = tbGif,
                    [
    2] = tbItemInfo,
                };
                
    table.insert(tbOpt, {"Liên: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_LIENNAM});
            
    end
        end

            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_NONNAM) or 0;
            if (
    bLevel == 0then
                local tbGif 
    nil;
                
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\non.txt");
                for 
    _tbRow in pairs(tbFile) do
                    if (
    nCap == tonumber(tbRow.Level) and me.nSex == tonumber(tbRow.ReqProp2Value) and me.nSeries == tonumber(tbRow.Series)) then
                        tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                        break;
                    
    end
                end
                
    if tbGif then
                    local tbTrangbi 
    = {
                        [
    1] = tbGif,
                        [
    2] = tbItemInfo,
                    };
                    
    table.insert(tbOpt, {"Nón: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_NONNAM});
                
    end
            end

            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_AONAM) or 0;
            if (
    bLevel == 0then
                local tbGif 
    nil;
                
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\ao.txt");
                for 
    _tbRow in pairs(tbFile) do
                    if (
    nCap == tonumber(tbRow.Level) and me.nSex == tonumber(tbRow.ReqProp2Value) and me.nSeries == tonumber(tbRow.Series)) then
                        tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                        break;
                    
    end
                end
                
    if tbGif then
                    local tbTrangbi 
    = {
                        [
    1] = tbGif,
                        [
    2] = tbItemInfo,
                    };
                    
    table.insert(tbOpt, {"Áo: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_AONAM});
                
    end
            end

            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_LUNGNAM) or 0;
            if (
    bLevel == 0then
                local tbGif 
    nil;
                
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\lung.txt");
                for 
    _tbRow in pairs(tbFile) do
                    if (
    nCap == tonumber(tbRow.Level) and me.nSex == tonumber(tbRow.ReqProp2Value) and me.nSeries == tonumber(tbRow.Series)) then
                        tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                        break;
                    
    end
                end
            
                
    if tbGif then
                    local tbTrangbi 
    = {
                        [
    1] = tbGif,
                        [
    2] = tbItemInfo,
                    };
                    
    table.insert(tbOpt, {"Lưng: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_LUNGNAM});
                
    end
            end

            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_TAYNAM) or 0;
            if (
    bLevel == 0then
                local tbGif 
    nil;
                
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\tay.txt");
                for 
    _tbRow in pairs(tbFile) do
                    if (
    nCap == tonumber(tbRow.Level) and me.nSex == tonumber(tbRow.ReqProp2Value) and me.nSeries == tonumber(tbRow.Series)) then
                        tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType), tonumber(tbRow.Level)};
                        break;
                    
    end
                end

                
    if tbGif then
                    local tbTrangbi 
    = {
                        [
    1] = tbGif,
                        [
    2] = tbItemInfo,
                    };
                    
    table.insert(tbOpt, {"Tay: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_TAYNAM});
                
    end
            end

            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_GIAYNAM) or 0;
            if (
    bLevel == 0then
                local tbGif 
    nil;
                
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\giay.txt");
                for 
    _tbRow in pairs(tbFile) do
                    if 
    nCap == tonumber(tbRow.Level) and me.nSex == tonumber(tbRow.ReqProp2Value) and me.nSeries == tonumber(tbRow.Seriesthen
                        tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType),  tonumber(tbRow.Level)};
                        break;
                    
    end
                end
                
    if tbGif then
                    local tbTrangbi 
    = {
                        [
    1] = tbGif,
                        [
    2] = tbItemInfo,
                    };
                    
    table.insert(tbOpt, {"Giày: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_GIAYNAM});
                
    end
            end

            bLevel 
    me.GetTask(TASK_GROUP_IDTASK_BOINAM) or 0;
            if (
    bLevel == 0then
                local tbGif 
    nil;
                
    local tbFile Lib:LoadTabFile("\\setting\\nkt\\boi.txt");
                for 
    _tbRow in pairs(tbFile) do
                    if 
    nCap == tonumber(tbRow.Level) and me.nSex == tonumber(tbRow.ReqProp2Value) and me.nSeries == tonumber(tbRow.Seriesthen
                        tbGif 
    = {tonumber(tbRow.Genre), tonumber(tbRow.DetailType),tonumber(tbRow.ParticularType),  tonumber(tbRow.Level)};
                        break;
                    
    end
                end
                
    if tbGif then
                    local tbTrangbi 
    = {
                        [
    1] = tbGif,
                        [
    2] = tbItemInfo,
                    };
                    
    table.insert(tbOpt, {"Bội: <color=yellow>"..KItem.GetNameById(unpack(tbGif)).."<color>"self.TakeTrangbiselftbTrangbiTASK_BOINAM});
                
    end
            end
        
        Dialog
    :Say(szMsgtbOpt);
    end

    function tbLiGuan:TakeTuiVip(tbItemGifidTask)
        if (
    me.CountFreeBagCell() > 1then
            
            me
    .Msg("Nhận thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeTrangbi(tbItemGifidTask)
        if (
    me.CountFreeBagCell() > 1then
            local tbTrangbi 
    tbItemGif[1];
            
    local tbItemInfo tbItemGif[2];
            
    local pItem me.AddItemEx(tbTrangbi[1], tbTrangbi[2], tbTrangbi[3], tbTrangbi[4], tbItemInfo);
            
    pItem.Sync();
            
    me.SetTask(TASK_GROUP_IDidTask1);
            
    me.Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeTheGM()
        
    local pItem me.AddItem(unpack(tbAddGM));
        
    pItem.Sync();
        return 
    0;
    end

    function tbLiGuan:TakeLevel(nLevel)
        
    me.AddLevel(nLevel me.nLevel);
        
    me.SetTask(TASK_GROUP_IDTASK_LEVELnLevel);
        return 
    0;
    end

    function tbLiGuan:KichHoatNgay(nNowDate)
        
    local nRate me.nLevel 10000;
        if (
    me.CountFreeBagCell() > nMathatthen
            me
    .SetTask(TASK_GROUP_IDTASK_DNGAYnNowDate);
            
    me.Earn(nMoney nRate0);
            
    me.AddBindMoney(nMoney nRate);
            
    me.AddBindCoin(nDongK nRate);
            
    local pItem me.AddItem(unpack(tbBicanh));
            
    pItem.Bind(1);
            
    pItem.Sync();
            for 
    1nMathat do
                
    local pItem me.AddItem(unpack(tbMathat));
                
    pItem.Bind(1);
                
    pItem.Sync();
            
    end
            me
    .Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeMatThat()
        if (
    me.CountFreeBagCell() > nMathatthen
            
    for 1nMathat do
                
    local pItem me.AddItem(unpack(tbMathat));
                
    pItem.Bind(1);
                
    pItem.Sync();
            
    end
            me
    .SetTask(TASK_GROUP_IDTASK_MATTH1);
            
    me.Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeRgVoso()
        if (
    me.CountFreeBagCell() > 1then
            local pItem 
    me.AddItem(unpack(tbRgVoso));
            
    pItem.Bind(1);
            
    pItem.Sync();
            
    me.SetTask(TASK_GROUP_IDTASK_RVOSO1);
            
    me.Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeMoney()
        
    me.Earn(nMoney0);
        
    me.AddBindMoney(nMoney);
        
    me.SetTask(TASK_GROUP_IDTASK_MONEY1);
        return 
    0;
    end

    function tbLiGuan:TakeDongK()
        
    me.AddBindCoin(nDongK);
        
    me.SetTask(TASK_GROUP_IDTASK_DONGK1);
        return 
    0;
    end

    function tbLiGuan:TakeTinhH()
        
    me.ChangeCurMakePoint(nTinhH);
        
    me.ChangeCurGatherPoint(nTinhH);
        
    me.SetTask(TASK_GROUP_IDTASK_TINHH1);
        return 
    0;
    end

    function tbLiGuan:TakeTcuoi()
        if (
    me.CountFreeBagCell() > 1then
            local pItem 
    me.AddItem(unpack(tbCuoi));
            
    pItem.Bind(1);
            
    pItem.Sync();
            
    me.SetTask(TASK_GROUP_IDTASK_TCUOI1);
            
    me.Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeNhhtK()
        if (
    me.CountFreeBagCell() > 11then
            
    for 1do
                
    local pItem me.AddItem(1812001);
                
    pItem.Bind(1);
                
    pItem.Sync();
            
    end
            
    for 1do
                
    local pItem me.AddItem(1812631);
                
    pItem.Bind(1);
                
    pItem.Sync();
            
    end
            local pItem 
    me.AddItem(unpack(tbNhht));
            
    pItem.Bind(1);
            
    pItem.Sync();
            
    me.SetTask(TASK_GROUP_IDTASK_NHHTK1);
            
    me.Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeTui24()
        if (
    me.CountFreeBagCell() > 3then
            
    for _tbTui in ipairs(tbTui24) do
                
    local pItem me.AddItem(unpack(tbTui));
                
    pItem.Bind(1);
                
    pItem.Sync();
            
    end
            me
    .SetTask(TASK_GROUP_IDTASK_TUI241);
            
    me.Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end

    function tbLiGuan:TakeAnmax()
        if (
    me.CountFreeBagCell() > 1then
            local pItem 
    me.AddItem(unpack(tbAnmax));
            
    pItem.Sync();
            
    me.SetTask(TASK_GROUP_IDTASK_ANMAX1);
            
    me.Msg("Nhận thưởng thành công");
        
    end
        
    return 0;
    end 

    Code trên là Add vô NPC Lễ Quan hả
    Ai chỉ em File NPC Lễ Quan ở đâu với ... em thấy được Set Trang Bị 7x 8x ... trong đó em ghiền mất
    Khách viếng thăm hãy cùng lonelywofl38 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  15. #50
    Moderator vipbk's Avatar
    Ngày tham gia
    May 2012
    Đang ở
    đây
    Bài viết
    5,112
    Thanks
    248
    Thanked 3,007 Times in 1,889 Posts

    Ðề: Share túi tân thủ nhận 1 lần

    script\npc\liguan.lua ................
    Khách viếng thăm hãy cùng vipbk xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 
Trang 5 của 6 Đầu tiênĐầu tiên ... 3 4 5 6 CuốiCuối

Các Chủ đề tương tự

  1. Share server CF mới được 1 người bạn bên brazil share.
    Bởi Anh2SiTinh trong diễn đàn Các Server Không Nằm Trong Box
    Trả lời: 42
    Bài viết cuối: 02-06-12, 05:44 AM
  2. Share VPS Cho Ai Làm TLBB Nè! Share Free!
    Bởi 3z3z3z trong diễn đàn Releases
    Trả lời: 5
    Bài viết cuối: 05-02-12, 10:37 PM
  3. [SHARE] Share mấy cái mask nghịch chơi!
    Bởi nhoc_kute_blog trong diễn đàn Releases
    Trả lời: 16
    Bài viết cuối: 31-01-11, 04:29 PM
  4. [SHARE] Share mấy cái mask nghịch chơi!
    Bởi nhoc_kute_blog trong diễn đàn Võ Lâm Truyền Kỳ (Jx Server)
    Trả lời: 11
    Bài viết cuối: 19-01-11, 06:48 PM
  5. Share CoreClient Server DarkMoon DNTmaster Share
    Bởi giangleloi trong diễn đàn Võ Lâm Truyền Kỳ (Jx Server)
    Trả lời: 23
    Bài viết cuối: 18-07-10, 04:35 PM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 07:40 AM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.