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

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