Jump to content
  • 0

3 kills reward on tvt


Question

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 :)

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...