Jump to content

Question

Posted

Hello i have added this CTF System to server..

There is a bug with "Light Purple-Maned Horse Mounting Bracelet".. I can't tell bug but ok..

I want to restrict to summon this item on CTF.. Can anyone help me ?

6 answers to this question

Recommended Posts

  • 0
Posted

Hello i have added this CTF System to server..

There is a bug with "Light Purple-Maned Horse Mounting Bracelet".. I can't tell bug but ok..

I want to restrict to summon this item on CTF.. Can anyone help me ?

id of thet item

  • 0
Posted

open

 

net/sf/l2j/gameserver/network/clientpackets/UseItem.java

 

add in imports

 

import net.sf.l2j.gameserver.model.entity.CTF;

 

and find

 

            if (activeChar.isFishing() && (itemId < 6535 || itemId > 6540))
            {
                // You cannot do anything else while fishing
                SystemMessage sm = new SystemMessage(SystemMessageId.CANNOT_DO_WHILE_FISHING_3);
                getClient().getActiveChar().sendPacket(sm);
                sm = null;
                return;
            }

 

add after

 

            if (activeChar._inEventCTF && CTF._started && itemId == 20058)
            {
                // You cannot use this item on ctf
                SystemMessage sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED);
                getClient().getActiveChar().sendPacket(sm);
                sm = null;
                return;
            }

  • 0
Posted

Hello i have added this CTF System to server..

There is a bug with "Light Purple-Maned Horse Mounting Bracelet".. I can't tell bug but ok..

I want to restrict to summon this item on CTF.. Can anyone help me ?

 

Pro Event you chose >_>

 

That CTF engine is a complete crap, use JFree's.

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..