Jump to content

Recommended Posts

Posted

Hello young people, Here is a simple protection.

 

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

method ->  runImpl()

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

Add:
		+	if (activeChar.isInSiege())
        +    {
        +        //Proibe Ress em Sieges
        +        if (skill.getId() == 1016 || skill.getId() == 1254)
        +        {
        +            activeChar.sendMessage("Não é possivel utilizar " + skill.getName() + " durante a Siege!");
        +            activeChar.sendPacket(ActionFailed.STATIC_PACKET);
        +            return;
        +        }
        +   }

 

  • 6 months later...
  • 4 months later...
Posted
On 9/26/2019 at 6:01 AM, kaiserxd said:

Hello young people, Here is a simple protection.

 


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

method ->  runImpl()

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

Add:
		+	if (activeChar.isInSiege())
        +    {
        +        //Proibe Ress em Sieges
        +        if (skill.getId() == 1016 || skill.getId() == 1254)
        +        {
        +            activeChar.sendMessage("Não é possivel utilizar " + skill.getName() + " durante a Siege!");
        +            activeChar.sendPacket(ActionFailed.STATIC_PACKET);
        +            return;
        +        }
        +   }

 

bro still cant use. that code still cant block

i use l2jserver

SV-6670

DP-10490

  • 1 month 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...