- Joined
- Aug 14, 2006
- Messages
- 144
- Reaction score
- 9
I would just like to know how to go about saving the players inventory on logout etc. I have it saving all their character info etc, im just not sure about what to do for the inventory.
So far i got in Player::save() for the inventory items:
If you must know, it is v11, not v6.
Although im not sure if it will work yet, as i havnt tested it.
Would be great if someone could point me in the right direction.
So far i got in Player::save() for the inventory items:
Code:
int invSize = inv->getItemsSize();
for(int i=0;i<invSize;i++){
Item* item = inv->getItem(i);
//Do saving equipment stuff here
}
Although im not sure if it will work yet, as i havnt tested it.
Would be great if someone could point me in the right direction.

