|
Você não é registrado, por favor registre-se para ter acesso ao conteúdo completo. Caso seja registrado, efetue login. Esqueceu sua senha? Clique aqui Recomendamos o uso do Mozilla Firefox para uma melhor visualização. |
|
| Início | Postados Hoje | Marcar Fóruns Como Lidos | Álbums | Banidos | SE Team | Medalhas |
|
|||||||
| Registrar | Loteria VIP | Staff SE | Regras do fórum | Comunidade | Arcade | Postados Hoje | Pesquisar | Experience |
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
![]() |
|
|
Ferramentas do Tópico | Modos de Exibição |
|
|
#1 |
|
Membro - Veterano
![]() Registrado em: Dec 2009
Posts: 1,335
Agradeceu: 490
Agradecido 803 Vezes em 427 Posts
Nome Real: Roberto
|
Esse Mod faz com qui Mago nao Usse Set Heavy Ow Light Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
Index: CORE/java/config/customs.ini
====================================================================
--- CORE/java/config/customs.ini (revision 203)
+++ CORE/java/config/customs.ini (revision 210)
@@ -175,7 +175,9 @@
# Default: False
GMTradeRestrictedItems = False
-# Heavy Equipment Restriction
+# Heavy/Light Equipment Restriction
+# IF False , Mage Classes Won't Be Able To Use Heavy/Lights Armors
+AllowMageUseHeavyOrLight = False
# IF False , Dagger Classes Won't Be Able To Use Heavy Armors
AllowDaggersUseHeavy = True
# IF False , Archer Classes Won't Be Able To Use Heavy Armors
Index: CORE/java/l2j/umbrella/il/Config.java
====================================================================
--- CORE/java/l2j/umbrella/il/Config.java (revision 208)
+++ CORE/java/l2j/umbrella/il/Config.java (revision 210)
@@ -574,6 +574,7 @@
public static int MAX_SPEED;
public static int MAX_PCRIT_RATE;
public static int MAX_MCRIT_RATE;
+ public static boolean ALLOW_MAGE_USE_HEAVY_OR_LIGHT;
public static boolean ALLOW_DAGGERS_WEAR_HEAVY;
public static boolean ALLOW_ARCHERS_WEAR_HEAVY;
public static boolean ALLOW_SAME_IP_NOT_GIVE_PVP_POINT;
@@ -1020,6 +1021,7 @@
MAX_SPEED = Integer.parseInt(Customs.getProperty("MaxSpeed", "250"));
MAX_PCRIT_RATE = Integer.parseInt(Customs.getProperty("MaxPCritRate", "500"));
MAX_MCRIT_RATE = Integer.parseInt(Customs.getProperty("MaxMCritRate", "300"));
+ ALLOW_MAGE_USE_HEAVY_OR_LIGHT = Boolean.parseBoolean(Customs.getProperty("AllowMageUseHeavyOrLight", "True"));
ALLOW_DAGGERS_WEAR_HEAVY = Boolean.parseBoolean(Customs.getProperty("AllowDaggersUseHeavy", "True"));
ALLOW_ARCHERS_WEAR_HEAVY = Boolean.parseBoolean(Customs.getProperty("AllowArchersUseHeavy", "True"));
ALT_SUBCLASS_LEVEL = Integer.parseInt(Customs.getProperty("AltSubClassLevel", "40"));
Index: CORE/java/l2j/umbrella/il/gameserver/network/clientpackets/UseItem.java
====================================================================
--- CORE/java/l2j/umbrella/il/gameserver/network/clientpackets/UseItem.java (revision 208)
+++ CORE/java/l2j/umbrella/il/gameserver/network/clientpackets/UseItem.java (revision 210)
@@ -189,7 +189,7 @@
if (Config.BOW_TANK_RESTRICTION)
{
int classid = activeChar.getClassId().getId();
- if (!activeChar.isInOlympiadMode() && (classid == 88 || classid == 89 || classid == 6 || classid == 90 || classid == 91 || classid == 100 || classid == 99 || classid == 113 || classid == 114))
+ if (!activeChar.isGM() && !activeChar.isInOlympiadMode() && (classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6 || classid == 19 || classid == 20 || classid == 21 || classid == 32 || classid == 33 || classid == 34 || classid == 44 || classid == 45 || classid == 46 || classid == 47 || classid == 48 || classid == 53 || classid == 54 || classid == 55 || classid == 56 || classid == 57 || classid == 88 || classid == 89 || classid == 90 || classid == 99 || classid == 100 || classid == 106 || classid == 107 || classid == 113 || classid == 114 || classid == 117 || classid == 118))
{
if (item.getItemType() == L2WeaponType.BOW)
{
@@ -200,7 +200,7 @@
}
if (Config.DEBUG)
- _log.finest(activeChar.getObjectId() + ": use item " + _objectId);
+ _log.finest(activeChar.getObjectId() + ": use item " + _objectId);
if (item.isEquipable())
{
@@ -316,6 +316,16 @@
return;
}
}
+
+ if (!Config.ALLOW_MAGE_USE_HEAVY_OR_LIGHT)
+ if (activeChar.getClassId().getId() == 10 || activeChar.getClassId().getId() == 11 || activeChar.getClassId().getId() == 12 || activeChar.getClassId().getId() == 13 || activeChar.getClassId().getId() == 14 || activeChar.getClassId().getId() == 15 || activeChar.getClassId().getId() == 16 || activeChar.getClassId().getId() == 17 || activeChar.getClassId().getId() == 25 || activeChar.getClassId().getId() == 26 || activeChar.getClassId().getId() == 27 || activeChar.getClassId().getId() == 28 || activeChar.getClassId().getId() == 29 || activeChar.getClassId().getId() == 30 || activeChar.getClassId().getId() == 38 || activeChar.getClassId().getId() == 39 || activeChar.getClassId().getId() == 40 || activeChar.getClassId().getId() == 41 || activeChar.getClassId().getId() == 42 || activeChar.getClassId().getId() == 43 || activeChar.getClassId().getId() == 49 || activeChar.getClassId().getId() == 50 || activeChar.getClassId().getId() == 51 || activeChar.getClassId().getId() == 52 || activeChar.getClassId().getId() == 94 || activeChar.getClassId().getId() == 95 || activeChar.getClassId().getId() == 96 || activeChar.getClassId().getId() == 97 || activeChar.getClassId().getId() == 98 || activeChar.getClassId().getId() == 103 || activeChar.getClassId().getId() == 104 || activeChar.getClassId().getId() == 105 || activeChar.getClassId().getId() == 110 || activeChar.getClassId().getId() == 111 || activeChar.getClassId().getId() == 112 || activeChar.getClassId().getId() == 115 || activeChar.getClassId().getId() == 116)
+ {
+ if (item.getItemType() == L2ArmorType.HEAVY || item.getItemType() == L2ArmorType.LIGHT)
+ {
+ activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_EQUIP_ITEM_DUE_TO_BAD_CONDITION));
+ return;
+ }
+ }
if (!Config.ALLOW_ARCHERS_WEAR_HEAVY)
if (activeChar.getClassId().getId() == 9 || activeChar.getClassId().getId() == 92 || activeChar.getClassId().getId() == 24 || activeChar.getClassId().getId() == 102 || activeChar.getClassId().getId() == 37 || activeChar.getClassId().getId() == 109)
Creditos : Manoel-Adm,Mazokista |
|
|
| Links Patrocinados |
|
|
#2 |
|
playstation
![]() Registrado em: Dec 2008
Localização: Belo Horizonte
Posts: 1,284
Agradeceu: 118
Agradecido 1,503 Vezes em 772 Posts
Nome Real: Marcelo
|
Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
+ if (!Config.ALLOW_MAGE_USE_HEAVY_OR_LIGHT)
+ if (activeChar.getClassId().getId() == 10 || activeChar.getClassId().getId() == 11 || activeChar.getClassId().getId() == 12 || activeChar.getClassId().getId() == 13 || activeChar.getClassId().getId() == 14 || activeChar.getClassId().getId() == 15 || activeChar.getClassId().getId() == 16 || activeChar.getClassId().getId() == 17 || activeChar.getClassId().getId() == 25 || activeChar.getClassId().getId() == 26 || activeChar.getClassId().getId() == 27 || activeChar.getClassId().getId() == 28 || activeChar.getClassId().getId() == 29 || activeChar.getClassId().getId() == 30 || activeChar.getClassId().getId() == 38 || activeChar.getClassId().getId() == 39 || activeChar.getClassId().getId() == 40 || activeChar.getClassId().getId() == 41 || activeChar.getClassId().getId() == 42 || activeChar.getClassId().getId() == 43 || activeChar.getClassId().getId() == 49 || activeChar.getClassId().getId() == 50 || activeChar.getClassId().getId() == 51 || activeChar.getClassId().getId() == 52 || activeChar.getClassId().getId() == 94 || activeChar.getClassId().getId() == 95 || activeChar.getClassId().getId() == 96 || activeChar.getClassId().getId() == 97 || activeChar.getClassId().getId() == 98 || activeChar.getClassId().getId() == 103 || activeChar.getClassId().getId() == 104 || activeChar.getClassId().getId() == 105 || activeChar.getClassId().getId() == 110 || activeChar.getClassId().getId() == 111 || activeChar.getClassId().getId() == 112 || activeChar.getClassId().getId() == 115 || activeChar.getClassId().getId() == 116)
+ {
+ if (item.getItemType() == L2ArmorType.HEAVY || item.getItemType() == L2ArmorType.LIGHT)
+ {
+ activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_EQUIP_ITEM_DUE_TO_BAD_CONDITION));
+ return;
+ }
+ }
Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
+ if (!Config.ALLOW_MAGE_USE_HEAVY_OR_LIGHT && activeChar.isMageClass())
__________________
Há! Só posso rir de quem quer vender o que mal sabe fazer... Quer ser respondido direito!? Não faça perguntas idiotas. (Y) |
|
|
|
| Os Seguintes 2 Usuários disseram Obrigado(a) para paytaly por gostarem deste post : |
ManoeL-ADM (26-11-2010), Mazokista (26-11-2010)
|
|
|
#3 |
|
Banido
![]() Registrado em: Sep 2009
Localização: Na Frente do PC =p
Posts: 2,094
Agradeceu: 701
Agradecido 1,875 Vezes em 902 Posts
Nome Real: Rodrigo R. Camellini
|
So por Curiosidade, vcs nao esquecerao os Magos que tem como Skill Passivas outros Sets nao ne ou seja, bloqueando assim a chance de eles atuarem com 100% do seu potencial, ou seja colocando esse mod por exemplo vc inibira o Dominator por exemplo assim que soltar 3 magias e esgotar sua mana de colocar ums et Heavy ou light para ganhar seus bonus passivos e ativos e continuar uma luta na olly por exemplo como fighter
ou seja uma faca de 2 gumes |
|
|
|
|
|
#4 | |||||||||||||||
|
Membro - Veterano
![]() Registrado em: Nov 2008
Posts: 561
Agradeceu: 657
Agradecido 137 Vezes em 103 Posts
Nome Real: ManoeL
|
@paytaly
e pra fight ficaria como? Citação:
|
|||||||||||||||
|
|
|
|||||||||||||||
|
|
#5 |
|
playstation
![]() Registrado em: Dec 2008
Localização: Belo Horizonte
Posts: 1,284
Agradeceu: 118
Agradecido 1,503 Vezes em 772 Posts
Nome Real: Marcelo
|
Pensa mais um pouco. Se o Player não é Mago, obviamente é Fighter...
Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
!activeChar.isMageClass()
__________________
Há! Só posso rir de quem quer vender o que mal sabe fazer... Quer ser respondido direito!? Não faça perguntas idiotas. (Y) |
|
|
|
| Os Seguintes 2 Usuários disseram Obrigado(a) para paytaly por gostarem deste post : |
Inspector (26-11-2010), ManoeL-ADM (27-11-2010) |