Jump to content

[SHARE] Null PvP Flag Command


Recommended Posts

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

Link to comment
Share on other sites

Yes indeed , but you can delete thoose you don't want ... its what your server is about , :P

Link to comment
Share on other sites

  • 5 weeks later...
  • 4 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...