Jump to content

[Share]Custom PvP Related Hero Status + Announce including


Recommended Posts

omg dude.. u just add in increasePvpKills() the call method: parsePvPCustomHero().

And its instantly after pvp doooh... besides that u dont need that check into increasePvpKills() if u can use it in parsePvPCustomHero(), it keeps the code clean... lolz

And also isHero is not a null check wtf ?:D that !ishero has to return false so that a normal hero dosent get parsed for nothing... and also its there if the player is already hero by pvp.. to skip the parsing method that way its more efficient.. dooh >.>

 

dont try to act that smart...shit act number1 congratz

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...
  • 8 months later...

Code for epilogue

 

		// Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
		sendPacket(new UserInfo(this));
		sendPacket(new ExBrExtraUserInfo(this));
	}
}

+	//Custom Hero
+	public void parsePvPCustomHero()
+       {
+        if (!isHero() && getPvpKills() >= 5000)
+        {
+           //announce & message ONLY when they reach 5000 pvp.
+           sendMessage("You are now a server hero for beign so great fighter!");
+           setHero(true);
+        }
+	}	

/**

 

 

 

Link to comment
Share on other sites

  • 1 year later...

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
Reply to this topic...

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