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

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