L2Mercury Posted July 16, 2015 Posted July 16, 2015 Hello guys, I want that when a players enters in olympiad, exactly when the player gets full hp/mp/cp, to remove an specific item. Thx for help Quote
0 SweeTs Posted July 16, 2015 Posted July 16, 2015 What's the point of this removal and why would you do that? Quote
0 L2Mercury Posted July 17, 2015 Author Posted July 17, 2015 What's the point of this removal and why would you do that? I made an npc buffer limit for olympiad, every buff that npc gives, it will give an item, when it will have 5 items, the buffer will stop to give buffs(5 items = 5 buffs, the limit is 5 items if more, will not buff the player). So, when you start another match with someone else, the items are still there, and the npc will not buff that player, thats why i want, every time a match starts, i want to delete that item. Quote
0 SweeTs Posted July 17, 2015 Posted July 17, 2015 (edited) Player rr, you won't delete item, player will drop it and so on.. Simply make a limit directly from the buffer instance, imo it's a better way. Anyway player.getInventory().destroyItemByItemId( Edited July 17, 2015 by SweeTs Quote
0 xxdem Posted July 18, 2015 Posted July 18, 2015 Player rr, you won't delete item, player will drop it and so on.. Simply make a limit directly from the buffer instance, imo it's a better way. Anyway player.getInventory().destroyItemByItemId( destroy by oid, never from id Quote
Question
L2Mercury
Hello guys, I want that when a players enters in olympiad, exactly when the player gets full hp/mp/cp, to remove an specific item. Thx for help
4 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.