Quote:
Originally Posted by memoxl
but i think this will return always the refitemid of slot 13 ... what if the scroll is in any other slot ? what if there is more than 1 scroll in the inventory
|
You look beginner...
The slot will return its slot. If it was in the first slot it will return 13, because packet's Int8 is 13. Every packet has properties, writings and readings.. you can write a variable in a packet, you can read it!
Most of packets are already written in sro_client and the sro_client just sends it to the server with information, so what we're doing now is reading the packets information and using it in our own!
So, if you read what I've written above, you'll understand that (CLIENT_PLAYER_HANDLE) packet is sent every time you use an item, and it's always sent with Int8 (its slot), so you can always read the Int8 which refers to the slot of the used item.