Hello,
I've got a simple question regarding the creation of items in the source code.
I noticed that each time a mob drops an item, a copy of it but with null value is appearing in the player's inventory (Disappearing after inventory refresh).
After a small research I found out that this method is to blame:
publicL2ItemInstancecreateDummyItem(intitemId)
{
L2Item item = getTemplate(itemId);
if (item ==null)
{
returnnull;
}
L2ItemInstance temp =newL2ItemInstance(0, item);
return temp;
}
So my question is: What is this method's usability? What If I remove it from the addItem method on L2PcInstance and correct the double item issue on players inventory ? Would would be the impact?
Thanks
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Good luck with your project - from the moment you take pleasure, it's the essential.
If you manage to improve performance over specific points compared to L2J (knownlist, geoengine, movement,...), don't hesitate to share back on your topic what/why you did it and the actual performance gain, if measured.
Question
Meydex
Hello,
I've got a simple question regarding the creation of items in the source code.
I noticed that each time a mob drops an item, a copy of it but with null value is appearing in the player's inventory (Disappearing after inventory refresh).
After a small research I found out that this method is to blame:
So my question is: What is this method's usability? What If I remove it from the addItem method on L2PcInstance and correct the double item issue on players inventory ? Would would be the impact?
Thanks
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.