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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock