Jump to content

[Share]Hero Shine on PvP kills


Vago

Recommended Posts

Besides, Vago, whats the point of the return ?

public void setHeroAura (boolean heroAura)
+   {
+      isPVPHero = heroAura;
+      return;
+   }

Its a one line method, the return isn't needed since the method would return on its own.

The use of the return statement by itself is a bit nonsense since the return type is void, hence, there is no return, you are supposed to use the return statement when you want the method to stop or freeze,e.g.

if(getObjectId() == null ) return ; //avoid npes

Link to comment
Share on other sites

If you wanna be a pernament hero .. Lol thats just dumb.Its supposed to be after restart and if you wanna be a permanent hero just write in enterworld.java this :

activeChar.setHero(true); and you're done..

Link to comment
Share on other sites

oh man, you real dumb as i see... I write this code in 4 page, and you say, its inmosible, and you again post my code, and now saying its posible...

 

Look at 4 page...

 

Little fix, if you want be permenant hero after restart you must add in EnterWorld.java

 

	if (activeChar.getPvpKills() > 500)
	{
	activeChar.setHero(true);
	}

 

And thank you Vago for your hero shine code, becouse it working perfect :)

 

I don't have any to say... Out of this post...

 

 

 

Link to comment
Share on other sites

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now



×
×
  • Create New...