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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



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