Есть баг с Агументацией , нужен двуручник и щит - в двуручник агументируем - одеваем щит - вуаля - скилы и статы агумента остались,и так хоть скок двуручей сделайте... и статы и скилы будут множится
CREDITS : V3ndetta[ME}
- Код:
/**
*
* useitem.java
*
*/
- Код:
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;
}
+ L2Weapon curwep = activeChar.getActiveWeaponItem();
+ if (curwep != null)
+ {
+ if ((curwep.getItemType() == L2WeaponType.DUAL) && (item.getItemType() == L2WeaponType.NONE))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.BOW) && (item.getItemType() == L2WeaponType.NONE))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.BIGBLUNT) && (item.getItemType() == L2WeaponType.NONE))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.BIGSWORD) && (item.getItemType() == L2WeaponType.NONE))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.POLE) && (item.getItemType() == L2WeaponType.NONE))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.DUALFIST) && (item.getItemType() == L2WeaponType.NONE))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.DAGGER) && (item.getItemType() == L2WeaponType.DUALFIST))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.DAGGER) && (item.getItemType() == L2WeaponType.POLE))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.DAGGER) && (item.getItemType() == L2WeaponType.BIGBLUNT))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.DAGGER) && (item.getItemType() == L2WeaponType.BIGSWORD))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.DAGGER) && (item.getItemType() == L2WeaponType.BOW))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.DAGGER) && (item.getItemType() == L2WeaponType.DUAL))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.SWORD) && (item.getItemType() == L2WeaponType.DUALFIST))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.SWORD) && (item.getItemType() == L2WeaponType.POLE))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.SWORD) && (item.getItemType() == L2WeaponType.BIGBLUNT))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.SWORD) && (item.getItemType() == L2WeaponType.BIGSWORD))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.SWORD) && (item.getItemType() == L2WeaponType.BOW))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.SWORD) && (item.getItemType() == L2WeaponType.DUAL))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.BLUNT) && (item.getItemType() == L2WeaponType.DUALFIST))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.BLUNT) && (item.getItemType() == L2WeaponType.POLE))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.BLUNT) && (item.getItemType() == L2WeaponType.BIGBLUNT))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.BLUNT) && (item.getItemType() == L2WeaponType.BIGSWORD))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.BLUNT) && (item.getItemType() == L2WeaponType.BOW))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ else if ((curwep.getItemType() == L2WeaponType.BLUNT) && (item.getItemType() == L2WeaponType.DUAL))
+ {
+ activeChar.sendMessage("You are not allowed to do this.");
+ return;
+ }
+ }
// Char cannot use item when dead
if (activeChar.isDead())
{
SystemMessage sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED);
sm.addItemName(itemId);
getClient().getActiveChar().sendPacket(sm);
sm = null;
return;
}
CREDITS : V3ndetta[ME}