Mirage Source
Items respawning in Inventory? - Printable Version

+- Mirage Source (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: Items respawning in Inventory? (/showthread.php?tid=1200)



Items respawning in Inventory? - Rezeyu - 21-08-2007

When I drop an item, if it was equipped, Its not showing, like it's supposed to, good.

It drops to the ground, and is able to be picked up, good.

It's not in my inv. anymore, good!


Then if I log back in, the item is BACK in my inventory, although it's also laying on the floor. also it's equipped again if it was when I dropped it, and it's back on my paperdoll.


Same thing happens if I unequip something, it I take off the shirt, and log out/in, it's back on my player, and shown as worn.


First thing I thought was it's not saving the inv. correctly, but the save inventory works fine for non clothing type crap. So what the hell?

EDIT: Also happens if I trade the item, when I log back in,the item I traded is returned to me.


Re: Items respawning in Inventory? - bhenhur - 22-08-2007

So it only messes up for equip-able items? If you drop a non equip-able item say an apple it works fine?

Maybe the server is not clearing the player data after it has logged out. And is doing something like this when you log in

Code:
for i in inventory
{
  if (i == no item)
  {
     do nothing //should be clearing the slot here
  }
  else
  {
      set item
  }
}



Re: Items respawning in Inventory? - Dark Echo - 22-08-2007

Check your PlayerMapDropItem method with a vanilla PlayerMapDropItem method.. Server side.. Smile Good luck mate.. :wink:

EDITED: Oh and check:
SetPlayerInvItemNum
SetPlayerInvItemValue
SetPlayerInvItemDur
SendInventoryUpdate

To make sure they are working ok.. :wink:


Re: Items respawning in Inventory? - Rezeyu - 23-08-2007

Fixed.


It was a Putvar issue. >.>
I get the gayest errors, ever.


Re: Items respawning in Inventory? - Robin - 24-08-2007

And you also sent me a source, asking me to fix something, only to realise it wasn't actually broken and you imagined the whole thing