I'm trying to put this in the core but it shows me a mistake, you could find it easily but the thing is that I'm not a java knower so I need your help.
I'm sure that it's a simple syntax mistake, but as I said, I can't find it!
public void increasePvpKills()
{
// Add karma to attacker and increase its PK counter
setPvpKills(getPvpKills() + 1);
// Increase the kill count for a special hero aura
heroConsecutiveKillCount++;
// If heroConsecutiveKillCount > 4 (5+ kills) give hero aura
if(heroConsecutiveKillCount > 29)
switch(heroConsecutiveKillCount){
case 30:
setHeroAura(true);
Announcements.getInstance().announceToAll("" + this.getName()+ " went on a Killing Spree with 30 kills in row.");
break;
case 60:
Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating with 60 kills in row, somebody kill him! ");
default:
;
}
// Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
sendPacket(new UserInfo(this));
sendPacket(new ExBrExtraUserInfo(this));
}
/**
* Increase pk count, karma and send the info to the player
*
* @param targLVL : level of the killed player
* @param increasePk : true if PK counter should be increased too
*/
The red ";" it's the underlined error.
Edit: Forgot tell you that I'm using L2J Latest Revision, Gracia Final[/s]
Edit2:
I fixed it and updated it on the quote above but I still want to make it apart from the aura, hero aura to give hero skills to the player too, is that possible?
yes i have some attachments but they are totally disorganized, i added posts i could find that were made after the backup ive got. there still are some left to do.
when ill have the time ill update them.
old thread was locked and i couldnt update the url.
Question
Statique
I'm trying to put this in the core but it shows me a mistake, you could find it easily but the thing is that I'm not a java knower so I need your help.
I'm sure that it's a simple syntax mistake, but as I said, I can't find it!
The red ";" it's the underlined error.
Edit: Forgot tell you that I'm using L2J Latest Revision, Gracia Final[/s]
Edit2:
I fixed it and updated it on the quote above but I still want to make it apart from the aura, hero aura to give hero skills to the player too, is that possible?
12 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now