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

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


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock