Hướng dẫn đi tk 1 người nhé
gameserver\script\mission\battle\define.lua
tìm cái này
chỉnh về
gameserver\script\mission\battle\battle.lua
tìm dòng này
nguồn Gamezone
gameserver\script\mission\battle\define.lua
tìm cái này
- Code:
Battle.tbBTPLNUM_LOWBOUND = {6, 8, 12};
chỉnh về
- Code:
Battle.tbBTPLNUM_LOWBOUND = {0, 0, 0};
gameserver\script\mission\battle\battle.lua
tìm dòng này
- Code:
function Battle:IsDiffBattle(pPlayer, nBTKey)
if (not nBTKey or nBTKey < 0) then
return 0;
end
local nMyBTKey = pPlayer.GetTask(Battle.TSKGID, Battle.TSK_BTPLAYER_KEY);
local nBattleSeqA = math.fmod(nMyBTKey,10);
local nBattleSeqB = math.fmod(nBTKey,10);
local nBattleTimeA = nMyBTKey - nBattleSeqA;
local nBattleTimeB = nBTKey - nBattleSeqB;
if (nMyBTKey ~= nBTKey or nBattleTimeA ~= nBattleTimeB) then
return 1;
end
return 0;
end
- Code:
function Battle:IsDiffBattle(pPlayer, nBTKey)
if (not nBTKey or nBTKey < 0) then
return 0;
end
local nMyBTKey = pPlayer.GetTask(Battle.TSKGID, Battle.TSK_BTPLAYER_KEY);
local nBattleSeqA = math.fmod(nMyBTKey,0);
local nBattleSeqB = math.fmod(nBTKey,0);
local nBattleTimeA = nMyBTKey - nBattleSeqA;
local nBattleTimeB = nBTKey - nBattleSeqB;
if (nMyBTKey ~= nBTKey or nBattleTimeA ~= nBattleTimeB) then
return 1;
end
return 0;
end
nguồn Gamezone