Items for an mmorpg
Posted: 15 Mar 2018, 12:19
Hey there !
Im working on an mmorpg. Lately i introduced the inventory to my game. Players are now able to receive items by gathering resources for example. I store those items in an special database table, with a relation to the itemType ( if its a Axe, Sword, Wood, Stone etc ) and a relation to the player.
When the player logs in, i send the whole player inventory to him. When he gathers something, it will be added server side to his inventory.
Players should also be able to drop items... and thats the point where im stuck... how exactly should i handle such a case ? Even if the player logs out, or the server crashes or restarts, the items should persist, until a timer deletes them, or someone picks them up.
Do you guys have any idea how to deal with such an case ?
Im working on an mmorpg. Lately i introduced the inventory to my game. Players are now able to receive items by gathering resources for example. I store those items in an special database table, with a relation to the itemType ( if its a Axe, Sword, Wood, Stone etc ) and a relation to the player.
When the player logs in, i send the whole player inventory to him. When he gathers something, it will be added server side to his inventory.
Players should also be able to drop items... and thats the point where im stuck... how exactly should i handle such a case ? Even if the player logs out, or the server crashes or restarts, the items should persist, until a timer deletes them, or someone picks them up.
Do you guys have any idea how to deal with such an case ?