Crossbow restriction

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Naonah
Posts: 357
Joined: Sun Apr 04, 2010 11:12 pm

Crossbow restriction

Post by Naonah »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:

Hi :)

As we know crossbow can be equipped only by kamaels.
Do you know in which core file it is coded?

Thank you.
public void l2jserver ()
{
if (you want l2j server == no problems)
use Linux;
else
use Windows;
}
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: Crossbow restriction

Post by SolidSnake »

java/com/l2jserver/gameserver/network/clientpackets/UseItem.java

Code: Select all

                                    }                                    break;                                }                                case Human:                                case Dwarf:                                case Elf:                                case DarkElf:                                case Orc:                                {                                    switch (wpn.getItemType())                                    {                                        case RAPIER:                                        case CROSSBOW:                                        case ANCIENT_SWORD:                                            activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_EQUIP_ITEM_DUE_TO_BAD_CONDITION));                                            return;                                    }                                    break;                                }
Image
User avatar
Naonah
Posts: 357
Joined: Sun Apr 04, 2010 11:12 pm

Re: Crossbow restriction

Post by Naonah »

Thank you :D
public void l2jserver ()
{
if (you want l2j server == no problems)
use Linux;
else
use Windows;
}
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: Crossbow restriction

Post by SolidSnake »

No problem :)
Image
Post Reply