Intrepid Posted December 16, 2009 Posted December 16, 2009 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 Quote
Setekh Posted December 16, 2009 Posted December 16, 2009 im not acting smart im explaining so u could understand... and others can understand. The code works and its clean... anything else? Quote
Mitjuh Posted January 1, 2010 Posted January 1, 2010 its a cool option but wont this create lots of lag? Quote
Intrepid Posted January 1, 2010 Posted January 1, 2010 its a cool option but wont this create lots of lag? no Quote
isabella Posted January 18, 2010 Posted January 18, 2010 Very Nice... Ty for sharing it with us..GJ Quote
beenery Posted October 1, 2010 Posted October 1, 2010 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); + } + } /** Quote
+cs.tribal Posted October 5, 2010 Posted October 5, 2010 Well i dont like the idea? Why to reward someone for earning karma? Quote
magneto30 Posted September 23, 2012 Posted September 23, 2012 hello i am noob and i was wondering where can i find l2pcistance ? Quote
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.