my method of saving inventory

Arbutus
19 May 2005, 23:16
This is my method of saving inventory objects in my QuestNet game. Insert into Game Definition Block. Remember to save and load the game with the server. Lines have numbers for clarity:

1. player startscript {
2. for each object in <$name(%userid%)$> move <#quest.thing#;player%userid%>
3. }
4. disconnect for each object in <player%userid%> move <#quest.thing#; $name(%userid%)$>

1. script runs when player connects to server
2. each object previously stored in a special room named after the player's name is moved into that player's inventory.
3,4. when player disconnects (for any reason), his inventory is put into his own storage room for later

I recommend using the player Logon option to secure your inventory items. Works beautifully for me. Let me know how it works for you.

METALGod32
21 May 2005, 07:04
Awesome, i'ma give it a try when i can.

gamemaker
07 Jun 2005, 18:18
looks okay

METALGod32
13 Jul 2005, 19:39
Hey!, Been awhile!, anyways, So if i put this code in the game, Where do i put it at if i use the GUI?, Like I Tried to put it in the QuestNet Server, It saves but only to the user ID, Not the name of the character.


I'll Keep trying different things. :)

METALGod32
13 Jul 2005, 23:15
ok, Finally!, I Got it now, It works correctly now, I Tested it with 2 Different accounts and I Tested several factors, It Works under every Factor!, now i need to figure out how do i make it so a item can be duped by the game, and keep the same name to.

Arbutus
14 Jul 2005, 02:54
Glad it worked for you!