Quote:
Originally Posted by DevilArrow
in what tablet i need change that ?
|
Please check if you find something like that in your lua event code that came with your event:
PHP Code:
while true do ::<-- Infinite loop start
if KISAENG_110221_ItemCheck() == 0 then
if 1 > LuaGetCountEmptyInventory(0, -1) then ::<-- Not working if your inventory is never full. You will miss the return.
return
else
nGive = LuaRanged_rand_n(1, 10000)
if 9990 < nGive then
LuaAddItem_EXT(EventID, 0, RewardItemCount[i], SYSOP_REASON_Event, FALSE, FALSE, 12 + Gender)
else
for i = 1, RewardItemMax do
repeat
until nGive > RewardItemRatio[i] and nGive <= RewardItemRatio[i + 1]
LuaAddItem_EXT(EventID, 0, RewardItemCount[i], SYSOP_REASON_Event, FALSE, FALSE, i)
KISAENG_110221_ItemDel()
end
end
end
end
end
You can simply remove the loop, but then you have to exchange every box one by one. If you wanna go into detail it is also possible to use for loops for safety reason, checking for max stack size, empty and used inventory slots and generated random items. Finally you loop will not be endless and checking for used/open slots (also for slots you opened by using boxes).