lỗi chiến trường lương thảo

sửa tạm thời nhe. Còn lỗi chính chắc do thiếu file skill hay sao ấy

script/newbattles/resourcebattle/hoe_item.lua
Mã:
function OnUse(nItemIndex)
...
        ---if DoFireworks(DIGGING_ACTION_ID,1) == 1 then
            SetMissionV(MV_RESOURCE_POS_BEGIN+nGroup,SetBit(GetMissionV(MV_RESOURCE_POS_BEGIN+nGroup),nBit,1));
            Msg2Player("§ang thu thËp l¬ng th¶o……......");
            CastState("state_fetter",1,5*18)
            ProgressSlot(5*18);    --5Ãë
            SetItemUseLapse(nItemIndex,5);    --Àäȴʱ¼ä£º5Ãë
        ---else
        ---    Msg2Player("Kh«ng thÓ lµm ®éng t¸c nµy ë tr¹ng th¸i ngåi")
        ---end;

...
end

script/newbattles/resourcebattle/resource_npc.lua
Mã:
function main()
...
--    if DoFireworks(DIGGING_ACTION_ID,1) == 1 then
        Msg2Player("§ang thu thËp l¬ng th¶o……......");
        CastState("state_fetter",1,5*18)
        ProgressSlot(5*18);    --5Ãë
        SetNpcLifeTime(nNpcIndex,0);
        AddUnitStates(nNpcIndex,0,-bExist);    --ÖÃ0
        SetNpcScript(nNpcIndex,"");
--    else
--        Msg2Player("Kh«ng thÓ lµm ®éng t¸c nµy ë tr¹ng th¸i ngåi")
--    end;

...
end

You must be registered for see images
 
bên server offline thì không cần tắt -- Msg2Player("Kh«ng thÓ lµm ®éng t¸c nµy ë tr¹ng th¸i ngåi") cái này mà vẫn oke chắc do 1 lý do nào đó ở file gs
 
Bên trên