Mirage Source http://web.miragesource.net/forums/ |
|
Items respawning in Inventory? http://web.miragesource.net/forums/viewtopic.php?f=201&t=2508 |
Page 1 of 1 |
Author: | Rezeyu [ Tue Aug 21, 2007 6:27 pm ] |
Post subject: | Items respawning in Inventory? |
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. |
Author: | bhenhur [ Wed Aug 22, 2007 5:55 am ] |
Post subject: | Re: Items respawning in Inventory? |
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 } } |
Author: | Dark Echo [ Wed Aug 22, 2007 12:21 pm ] |
Post subject: | Re: Items respawning in Inventory? |
Check your PlayerMapDropItem method with a vanilla PlayerMapDropItem method.. Server side.. Good luck mate.. EDITED: Oh and check: SetPlayerInvItemNum SetPlayerInvItemValue SetPlayerInvItemDur SendInventoryUpdate To make sure they are working ok.. |
Author: | Rezeyu [ Thu Aug 23, 2007 4:40 am ] |
Post subject: | Re: Items respawning in Inventory? |
Fixed. It was a Putvar issue. >.> I get the gayest errors, ever. |
Author: | James [ Fri Aug 24, 2007 6:18 pm ] |
Post subject: | Re: Items respawning in Inventory? |
At least most of your errors exist., I had trouble with guilds then realized I wasnt sending the info to the client. |
Author: | Robin [ Fri Aug 24, 2007 7:16 pm ] |
Post subject: | Re: Items respawning in Inventory? |
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 <3 |
Author: | James [ Sat Aug 25, 2007 5:58 am ] |
Post subject: | Re: Items respawning in Inventory? |
Robin wrote: 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 <3 Uhh...yea so? It was a bug for me, but then I restarted and it wasn't. >_< |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |