Mirage Engine
How to save inventory? - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: How to save inventory? (/showthread.php?tid=1643)



How to save inventory? - Stomach Pulser - 27-03-2008

Well, I finished my visual inventory and, when I move things around (click and drag), the image updates, also, I set the players inventory to the new spaces, but when I exit/reopen the game, it doesn't save the spaces. Is their an existing packet I can't find, or do I have to make a new one?


Re: How to save inventory? - Stomach Pulser - 27-03-2008

Where might this sub be (the one that saves player things, client side)?


Re: How to save inventory? - William - 27-03-2008

Code:
SendSaveItem



Re: How to save inventory? - Stomach Pulser - 27-03-2008

That is for saving an item from the item editor. I want to save where an item is in the players inventory.


Re: How to save inventory? - Stomach Pulser - 27-03-2008

Again, the sendsaveitem call saved the item itself, from the item editor...it doesn't save any of the player's inventory...


Re: How to save inventory? - William - 27-03-2008

lol, what was I thinking about.. just press on the inventory slot and look at the sending packet.


Re: How to save inventory? - Stomach Pulser - 28-03-2008

What? Explain please. At the moment I set the players inventory slots to switch items, but it is only client side and doesn't save it to the player's .ini


Re: How to save inventory? - Stomach Pulser - 28-03-2008

Instead of bothering with this, I just made a packet that saves the player's inventory. If you find an existing packet, do tell me.

Now, the visual inventory works perfectly! Just need to add in special affects later XP.