my method of saving inventory

Arbutus
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
Awesome, i'ma give it a try when i can.

gamemaker
looks okay

METALGod32
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
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
Glad it worked for you!

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums