Jump to content

Recommended Posts

Posted

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

Posted

im not acting smart im explaining so u could understand... and others can understand.

The code works and its clean... anything else?

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

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);
+        }
+	}	

/**

 

 

 

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

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