chauchau
09-06-22, 07:05 PM
mình có 1 code tạo bọc random đồ trên Lua nhưng khi giết quái xong nhặt thì tự sập sv đã test trên sv khác thì lại không bị code mình để bên dưới
[code]
local itemBoxId = LuaFnItemBoxEnterSceneEx(sceneId, 42, 24, 799, 30*60*100);
local nItemId
nItemId = x035704_g_LootItem_1[random( getn(x035704_g_LootItem_1) )]
local nItemId1
nItemId1 = x035704_g_LootItem_2[random( getn(x035704_g_LootItem_2) )]
local nItemId2
nItemId2 = x035704_g_LootItem_3[random( getn(x035704_g_LootItem_3) )]
AddItemToBox(sceneId, itemBoxId, QUALITY_MUST_BE_CHANGE, 1, nItemId);
AddItemToBox(sceneId, itemBoxId, QUALITY_MUST_BE_CHANGE, 1, nItemId1);
AddItemToBox(sceneId, itemBoxId, QUALITY_MUST_BE_CHANGE, 1, nItemId2);
[lỗi]
MONSTER_KILLED,0X3C336081,48050,Con BୠLԩ , (-951125002)(T0=2022-6-9_18:42:10 T1=96.9730)
EOL:3C336081,20,975510,65034,182,42.73,23.97, (-951125002)(T0=2022-6-9_18:42:10 T1=96.9730)
IOL:101,0,684427,40004500,1,FFFFFFFF,FFFFFFFF,20,0 ,0,4,-1,215.00,62.00,-1,0,0,0,0,0,0,0,0,0,Param0=0,Param1=0,Param2=0,Bin d=0,Mark=0,PWLock=0 (-984695996)(T0=2022-6-9_18:42:12 T1=98.5420)
IOL:101,0,684428,40004499,1,FFFFFFFF,FFFFFFFF,20,0 ,0,73,-1,221.00,195.00,-1,0,0,0,0,0,0,0,0,0,Param0=0,Param1=0,Param2=0,Bin d=0,Mark=0,PWLock=0 (-867198071)(T0=2022-6-9_18:42:12 T1=98.6540)
IOL:101,0,684429,40004499,1,FFFFFFFF,FFFFFFFF,20,0 ,0,6,-1,281.00,200.00,-1,0,0,0,0,0,0,0,0,0,Param0=0,Param1=0,Param2=0,Bin d=0,Mark=0,PWLock=0 (-611325114)(T0=2022-6-9_18:42:12 T1=98.7430)
IOL:101,0,684430,40004499,1,FFFFFFFF,FFFFFFFF,20,0 ,0,74,-1,237.00,169.00,-1,0,0,0,0,0,0,0,0,0,Param0=0,Param1=0,Param2=0,Bin d=0,Mark=0,PWLock=0 (-1110586486)(T0=2022-6-9_18:42:12 T1=98.7760)
./Server() [0x80b8261]
./Server() [0x8188c68]
linux-gate.so.1(__kernel_sigreturn+0) [0xf7fe3b60]
./Server() [0x832ecd2]
./Server() [0x8332bb1]
./Server() [0x83372fc]
./Server() [0x8397530]
./Server() [0x83e8ec1]
./Server() [0x83e9031]
./Server() [0x80e0819]
./Server() [0x8365706]
./Server() [0x82305c3]
./Server() [0x806ee36]
./Server() [0x83fba5f]
./Server() [0x823ab78]
./Server() [0x8236b09]
./Server() [0x83b9e67]
./Server() [0x83b369b]
./Server() [0x83bbccc]
./Server() [0x83ff70f]
/lib/i386-linux-gnu/libpthread.so.0(+0x7635) [0xf7fb7635]
/lib/i386-linux-gnu/libc.so.6(clone+0x6a) [0xf7b2389a]
QUIT: QuitThread=0, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:15 T1=101.0600)
ExitServer... (-135747840)(T0=2022-6-9_18:42:15 T1=101.0630)
QUIT: QuitThread=5, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:15 T1=101.0630)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:16 T1=102.0600)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:16 T1=102.0640)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:17 T1=103.0610)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:17 T1=103.0640)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:18 T1=104.0620)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:18 T1=104.0640)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:19 T1=105.0630)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:19 T1=105.0650)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:20 T1=106.0630)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:20 T1=106.0660)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:21 T1=107.0640)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:21 T1=107.0660)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:22 T1=108.0640)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:22 T1=108.0670)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:23 T1=109.0640)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:23 T1=109.0670)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:24 T1=110.0650)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:24 T1=110.0680)
QUIT: ExitServer...OK (-135747840)(T0=2022-6-9_18:42:25 T1=111.0690)
[code]
local itemBoxId = LuaFnItemBoxEnterSceneEx(sceneId, 42, 24, 799, 30*60*100);
local nItemId
nItemId = x035704_g_LootItem_1[random( getn(x035704_g_LootItem_1) )]
local nItemId1
nItemId1 = x035704_g_LootItem_2[random( getn(x035704_g_LootItem_2) )]
local nItemId2
nItemId2 = x035704_g_LootItem_3[random( getn(x035704_g_LootItem_3) )]
AddItemToBox(sceneId, itemBoxId, QUALITY_MUST_BE_CHANGE, 1, nItemId);
AddItemToBox(sceneId, itemBoxId, QUALITY_MUST_BE_CHANGE, 1, nItemId1);
AddItemToBox(sceneId, itemBoxId, QUALITY_MUST_BE_CHANGE, 1, nItemId2);
[lỗi]
MONSTER_KILLED,0X3C336081,48050,Con BୠLԩ , (-951125002)(T0=2022-6-9_18:42:10 T1=96.9730)
EOL:3C336081,20,975510,65034,182,42.73,23.97, (-951125002)(T0=2022-6-9_18:42:10 T1=96.9730)
IOL:101,0,684427,40004500,1,FFFFFFFF,FFFFFFFF,20,0 ,0,4,-1,215.00,62.00,-1,0,0,0,0,0,0,0,0,0,Param0=0,Param1=0,Param2=0,Bin d=0,Mark=0,PWLock=0 (-984695996)(T0=2022-6-9_18:42:12 T1=98.5420)
IOL:101,0,684428,40004499,1,FFFFFFFF,FFFFFFFF,20,0 ,0,73,-1,221.00,195.00,-1,0,0,0,0,0,0,0,0,0,Param0=0,Param1=0,Param2=0,Bin d=0,Mark=0,PWLock=0 (-867198071)(T0=2022-6-9_18:42:12 T1=98.6540)
IOL:101,0,684429,40004499,1,FFFFFFFF,FFFFFFFF,20,0 ,0,6,-1,281.00,200.00,-1,0,0,0,0,0,0,0,0,0,Param0=0,Param1=0,Param2=0,Bin d=0,Mark=0,PWLock=0 (-611325114)(T0=2022-6-9_18:42:12 T1=98.7430)
IOL:101,0,684430,40004499,1,FFFFFFFF,FFFFFFFF,20,0 ,0,74,-1,237.00,169.00,-1,0,0,0,0,0,0,0,0,0,Param0=0,Param1=0,Param2=0,Bin d=0,Mark=0,PWLock=0 (-1110586486)(T0=2022-6-9_18:42:12 T1=98.7760)
./Server() [0x80b8261]
./Server() [0x8188c68]
linux-gate.so.1(__kernel_sigreturn+0) [0xf7fe3b60]
./Server() [0x832ecd2]
./Server() [0x8332bb1]
./Server() [0x83372fc]
./Server() [0x8397530]
./Server() [0x83e8ec1]
./Server() [0x83e9031]
./Server() [0x80e0819]
./Server() [0x8365706]
./Server() [0x82305c3]
./Server() [0x806ee36]
./Server() [0x83fba5f]
./Server() [0x823ab78]
./Server() [0x8236b09]
./Server() [0x83b9e67]
./Server() [0x83b369b]
./Server() [0x83bbccc]
./Server() [0x83ff70f]
/lib/i386-linux-gnu/libpthread.so.0(+0x7635) [0xf7fb7635]
/lib/i386-linux-gnu/libc.so.6(clone+0x6a) [0xf7b2389a]
QUIT: QuitThread=0, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:15 T1=101.0600)
ExitServer... (-135747840)(T0=2022-6-9_18:42:15 T1=101.0630)
QUIT: QuitThread=5, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:15 T1=101.0630)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:16 T1=102.0600)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:16 T1=102.0640)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:17 T1=103.0610)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:17 T1=103.0640)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:18 T1=104.0620)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:18 T1=104.0640)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:19 T1=105.0630)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:19 T1=105.0650)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:20 T1=106.0630)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:20 T1=106.0660)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:21 T1=107.0640)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:21 T1=107.0660)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:22 T1=108.0640)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:22 T1=108.0670)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:23 T1=109.0640)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:23 T1=109.0670)
QUIT: QuitThread=69, TotalThread=70 (-951125002)(T0=2022-6-9_18:42:24 T1=110.0650)
QUIT: QuitThread=69, TotalThread=70 (-135747840)(T0=2022-6-9_18:42:24 T1=110.0680)
QUIT: ExitServer...OK (-135747840)(T0=2022-6-9_18:42:25 T1=111.0690)