Skip to content

Little help

Featured Replies

Hello all i make a code for auto flag on attack mob rb etc... and this work only on attack melee , and my question how to make a code for give flag on all attack melee skill summon etc?

      // custom pvp flag
      if (target instanceof L2MonsterInstance &&((L2MonsterInstance) target).getNpcId() == 202020) 
      {
         setPvpFlagLasts(System.currentTimeMillis() + Config.PVP_NORMAL_TIME);
         if (getPvpFlag() == 0)
        {
           startPvPFlag();
         }
         return;
      }

 

  • Author

bump who can help me?

You should have a overridden method like onAttack and that would handle everything. 

  • Author
What is the method?a this is problem
  • Author

Who can help me ? Bump

  • Author

On this method add to this Code and work? 

player.updatePvPStatus();
		}		

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.