Sign in to follow this  
Sklo:D

Unique loot wrong ownerid

Recommended Posts

I am pretty sure that this is not intended, setting the ownerid to an item causes a bunch of exceptions on loot handout. This mistake has been done in both cases of the unique drops. Ownerid should be -10L as it is on the ground.

 

final Item epicItem = ItemFactory.createItem(item, 60 + Server.rand.nextInt(20), "");
                                epicItem.setOwnerId(corpse.getWurmId());
                                epicItem.setLastOwnerId(corpse.getWurmId());
                                corpse.insertItem(epicItem);

 

final Item loot = ItemFactory.createItem(lootId, 60 + Server.rand.nextInt(20), "");
                                    corpse.insertItem(loot);
                                    loot.setOwnerId(corpse.getWurmId());

 

Exception:

[12:39:24 AM] WARNING com.wurmonline.server.items.Item: Removing object from unknown player:
com.wurmonline.server.NoSuchPlayerException: Player with id 540600989186 could not be found.

 

540600989186  == corpse wurmid

 

Edited by Sklo:D

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this