Jump to content

Recommended Posts

Posted

i can just say that there are loads of useless checks, and the useful is missing...

  if (activeChar.isParalyzed() || activeChar.isRooted() || activeChar.isDead()

          || activeChar.isAlikeDead() || activeChar.isConfused() || activeChar.isBetrayed()

          || activeChar.isFakeDeath() || activeChar.isFlying() || activeChar.isMounted()

          || activeChar.isInDuel() || activeChar.isInOlympiadMode() || activeChar.inObserverMode()

          || activeChar.isInJail())

In red are the totally useless checks, and in yellow are checks that arent so useless but still...

The useful check is isInCombat...

 

activeChar.isInDuel()... doesnt make any sense you cant duel flagged... so... think...

activeChar.isInOlympiadMode()... you cant go in oly flagged...

activeChar.isInJail()... jail is a pvp zone.... duh... same like coliseum

activeChar.isAlikeDead() activeChar.isFakeDeath() erm... im not rly sure, but arent those 2 the same?

 

So... revenger, keep one in mind, less checks = better performance

Posted

Cool Shit! i Like dat.

 

thanxxx mate

 

He now is learning, so dont be bad

 

Bro there are more than 200 action ..... i hope will not make 200+ posts :D ;p

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