Jump to content

Recommended Posts

Posted

I wrote

        case 10:

               Announcements.getInstance().announceToAll("Player: " + this.getName()+ " is on a Holy Shit!");

               if (!isHero())

               {

                setHero(true);

               Announcements.getInstance().announceToAll("Player: " + this.getName()+ " is getting Hero Status!");

               }

which mean that player get hero if he isnt hero atm(i am noob dev so i dont know if i did it well)

but problem is to player lose hero if he die but if player was already hero, to dont lose it

:S my english sux

Edit: hihi i made it, my first not copyed code

i added :

                if (!isHero())

                {

                isPermaHero = true;

after this:

quakeSystem = 0;

i added this:

if (isPermaHero)

{

  setHero(false);

}

 

and this at beginning:

private boolean isPermaHero = false;

 

working well, now need to do same with skill :S gonna be hard

  • 2 weeks later...
Posted

hmmm any idea to send other announce when the spree guy is killed by other player, for example:

 

Announcements: Mxc has stoped GrisoM's killing spree of 31 kills

 

any idea?

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