GAMESERVER ERROR WINTER_EVENT_2009

05/28/2016 03:16 DevilArrow#1
[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

Help with this error!
05/29/2016 18:30 DevilArrow#2
HELP ME PLIZ

[Only registered and activated users can see links. Click Here To Register...]
05/30/2016 16:24 elmagico321#3
just ignore it it has no effect at all
05/30/2016 19:35 DevilArrow#4
yes have a effect the gameserver closed when finish
05/31/2016 11:15 guckguck#5
Hello,

in case the gameserver is hanging at jewel box exchange you might have an infinite loop in your lua script. Most servers change it to 1 by 1 exchange and remove the loop.

Cheers.
05/31/2016 15:10 DevilArrow#6
in what tablet i need change that ?
06/01/2016 16:23 guckguck#7
Quote:
Originally Posted by DevilArrow View Post
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 LuaGetCountEmptyInventory(0, -1then  ::<-- Not working if your inventory is never fullYou will miss the return.
        return
      else
        
nGive LuaRanged_rand_n(110000)
        if 
9990 nGive then
          LuaAddItem_EXT
(EventID0RewardItemCount[i], SYSOP_REASON_EventFALSEFALSE12 Gender)
        else
          for 
1RewardItemMax do
            
repeat
            until nGive 
RewardItemRatio[i] and nGive <= RewardItemRatio[1]
            
LuaAddItem_EXT(EventID0RewardItemCount[i], SYSOP_REASON_EventFALSEFALSEi)
            
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).