• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux onEquip Crash + GDB Log

Scooty

Enemia.EU
Joined
Jul 24, 2010
Messages
564
Reaction score
14
Location
Kraków
Hi.

movements.xml
PHP:
<movevent type="Equip" itemid="8926" slot="hand" event="script" value="test.lua"/>
test.lua
PHP:
function onEquip(cid, item, slot)
return true
end

and when im trying to wear on this item server crashing...


GDB LOG:

#0 0x0000000000000000 in ?? ()
#1 0x000000000059dc61 in Player::__queryAdd (this=0xa7839d0, index=5,
thing=<value optimized out>, count=1, flags=<value optimized out>)
at player.cpp:2770
#2 0x000000000049c249 in Game::internalMoveItem (this=<value optimized out>,
actor=<value optimized out>, fromCylinder=<value optimized out>,
toCylinder=0xa783d80, index=5, item=0x5e16cd40, count=1, _moveItem=0x0,
flags=0) at game.cpp:1477
#3 0x00000000004a4d39 in Game::playerMoveItem (this=0x8d8920,
playerId=268467749, fromPos=..., spriteId=<value optimized out>,
fromStackpos=<value optimized out>, toPos=..., count=0 '\000')
at game.cpp:1439
#4 0x00000000004a5927 in Game::playerMoveThing (this=0x8d8920,
playerId=268467749, fromPos=..., spriteId=<value optimized out>,
fromStackpos=<value optimized out>, toPos=<value optimized out>,
count=0 '\000') at game.cpp:1037
#5 0x00000000004b64d2 in boost::_mfi::mf6<bool, Game, unsigned int, Position const&, unsigned short, short, Position const&, unsigned char>::eek:perator() (
function_obj_ptr=<value optimized out>)
at /usr/include/boost/bind/mem_fn_template.hpp:732
#6 operator()<bool, boost::_mfi::mf6<bool, Game, unsigned int, const Position&,






#1 Wklejka #766342 – Wklej.org player.cpp:2770 -> if(!g_moveEvents->onPlayerEquip(const_cast<Player*>(this), const_cast<Item*>(item), (slots_t)index, true))
#2 Wklejka #766343 – Wklej.org game.cpp:1477 -> ReturnValue ret = toCylinder->__queryAdd(index, item, count, flags);
#3 Wklejka #766344 – Wklej.org game.cpp:1439 -> ReturnValue ret = internalMoveItem(player, fromCylinder, toCylinder, toIndex, item, count, NULL);
#4 Wklejka #766345 – Wklej.org game.cpp:1037 -> playerMoveItem(playerId, fromPos, spriteId, fromStackpos, toPos, count);



Can someone help me?
 
Try this :p
Lua:
function onEquip(cid, item, slot, check)
if(check) then return true end
return true
end
 
Back
Top