Jump to content

Block Skills Teleport (Warp, Blink, Shadow Step) with Ward


kaiserxd

Recommended Posts

Hello young people, Here is a simple protection.

Block skill use equipped ward during territory war.

In -> l2jserver/gameserver/network/clientpackets/RequestMagicSkillUse.java

method ->  runImpl()

search for:

 		// Check the validity of the skill
        if (skill != null)
        {

Add:
        +	if (activeChar.isInSiege())
        +    {
        +        //Block Shadow Step, Blink and Warp with Ward
        +        if (skill.getId() == 628 || skill.getId() == 1448 || skill.getId() == 821)
        +        {
        +            //check player equiped ward
        +            if (activeChar.isCombatFlagEquipped())
        +            {
        +                activeChar.sendMessage("not use skill with a ward!");
        +                activeChar.sendPacket(ActionFailed.STATIC_PACKET);
        +                return;
        +            }
        +       }
        +   }

 

Link to comment
Share on other sites

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