Rio Posted June 2, 2010 Posted June 2, 2010 need java code for tvt event ...that in every tvt a player has to make 3 kills to take reward ty :) Quote
0 B1ggBoss Posted June 2, 2010 Posted June 2, 2010 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 Quote
0 Rio Posted June 2, 2010 Author Posted June 2, 2010 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 :) Quote
Question
Rio
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
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.