Jump to content
  • 0

Java Request, Olympiad Removable Item At Start Of A Match


Question

Posted

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

post-166308-0-89678000-1437037742_thumb.png

4 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted (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 by SweeTs
  • 0
Posted

 

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

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...