• 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!

Can some scripter do this ?

dgprado

Member
Joined
Apr 5, 2009
Messages
792
Reaction score
23
Location
Patria Amada Brasil
A creatureevent what execute this query every time that some player log out

update all his player_items attributes setting to null

update player_items set attributes = null where player_id = xxx*

* player what logged out.
 
do it in source, as onLogout is executed before player's items are saved to db:p

IOLoginData::savePlayer
[cpp] query_insert.setQuery("INSERT INTO `player_items` (`player_id`, `pid`, `sid`, `itemtype`, `count`, `attributes`) VALUES ");[/cpp]
to
[cpp] query_insert.setQuery("INSERT INTO `player_items` (`player_id`, `pid`, `sid`, `itemtype`, `count`) VALUES ");[/cpp]
IOLoginData::saveItems
[cpp] buffer << player->getGUID() << ", " << it->first << ", " << runningId << ", " << item->getID() << ", "
<< (int32_t)item->getSubType() << ", " << db->escapeBlob(attributes, attributesSize).c_str();[/cpp]
to
[cpp] buffer << player->getGUID() << ", " << it->first << ", " << runningId << ", " << item->getID() << ", "
<< (int32_t)item->getSubType();[/cpp]
 
Last edited:
Back
Top