se patch corrige o bug de usar shield ao trocar de arma e o augment continuar.
Creditos: L2jteon.Código:Index: /trunk/L2JTeon/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java===================================================================--- /trunk/L2JTeon/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java (revision 423) +++ /trunk/L2JTeon/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java (revision 444)@@ -168,4 +168,40 @@ if (itemId == 57) 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.BIGSEORD) && (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; + } + } + if (activeChar.isFishing() && ((itemId < 6535) || (itemId > 6540))) {
Última edição por UnderZone; 14-03-2012 às 02:25 PM.
Há 1 usuários navegando neste tópico. (0 registrados e 1 visitantes)
Marcadores