Justin Knight Posted September 15, 2014 Author Share Posted September 15, 2014 I use EO3 and when my players are grinding from time to time a monster will drop an item and in some cases that item will disappear in as little as a second. Any way to fix this? I have vb6 to edit code with if I need to. Maybe I'm just doing something wrong. If you know what's causing this let me know please. Link to comment Share on other sites More sharing options...
Growlith1223 Posted September 15, 2014 Share Posted September 15, 2014 If i remember correctly, the way item despawning works in EO 3, is that all items are on one timer, meaning every item on the ground would despawn once it's time, i could be entirely wrong about this and they all would be on their own seperate timers. either way, try and look around at the item despawning on the server's logic loop, that would be the best bet. Link to comment Share on other sites More sharing options...
Slasheree Posted September 15, 2014 Share Posted September 15, 2014 in modServerLoop -> Private Sub UpdateMapSpawnItems()find:```' Clear out unnecessary junkFor x = 1 To MAX_MAP_ITEMS Call ClearMapItem(x, y)Next```replace with this:```' Clear out unnecessary junkFor x = 1 To MAX_MAP_ITEMS If MapItem(y, x).despawnTimer < GetTickCount Then Call ClearMapItem(x, y) End IfNext```the problem is that it is respawning (and also deleting) map items every 5 minutes (LastUpdateMapSpawnItems = GetTickCount + 300000) without checking if the item's time has come. Link to comment Share on other sites More sharing options...
Justin Knight Posted September 15, 2014 Author Share Posted September 15, 2014 Thank you! I'll try this when i get back to my server. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now