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

[C++] bool Game::playerMoveItem Help

Summ

(\/)(;,,;)(\/) Y not?
Staff member
Global Moderator
Joined
Oct 15, 2008
Messages
4,136
Solutions
12
Reaction score
1,115
Location
Germany :O
Hey guys.

If a player pushs a item this is handled by game::playerMoveItem in game.cpp and the toPosition stores the position where it is pushed.

Now my question: If I push a item to a backpack:
toPosition.x is 65535, y is the slotid and z is the slot inside the container, but which variable stores which container it goes to? Is there a way to find out the uid of the container or something like that?

function:
bool Game::playerMoveItem(uint32_t playerId, const Position& fromPos, uint16_t spriteId, int16_t fromStackpos, const Position& toPos, uint8_t count)

~Summ
 
Ah thank you guys. :D

If you don't mind could you explain to me what cylinder variables store?
 
Fixed^^
Thanks to cyko for making me think of addThing~ in creatureevent :D
 
Last edited:
Back
Top