Jump to content
  • 0

3 kills reward on tvt


Question

Posted

need java code for tvt event ...that in every tvt a player has to make 3 kills to take reward ty :)

2 answers to this question

Recommended Posts

  • 0
Posted

First, healers wouldnt get any reward...but here we go

 

1) Create a map<objectId, kills> (on event start, all players would get registered into the map with 0 kills)

2) on reward (theres 2 methods, 1 for team 1, other for team 2), check:

if(map.get(player.getObjectId()) >= 3)
{
          do reward...
}

3) At event end, clear the map

  • 0
Posted

i`m sorry can u do it more analizing plz i`m newbie at java :'( ..i mean where this goes? and in wich line..for example:

java/net/sf/l2j/Config.java

and after which line i have to set urs..

ty :)

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