|
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 - Recruta
![]() Registrado em: Apr 2011
Posts: 1
Agradeceu: 3
Agradecido 0 Vezes em 0 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
![]()
|
Bem pessoal,vim postar pra vocês uma pacote de proteções para enchantar, Meu Primeiro Post
Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
### Eclipse Workspace Patch 1.0
#P L2JWind_Gameserver
#by BrunoBR
Index: java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java (revision 5117)
+++ java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java (working copy)
@@ -69,6 +69,121 @@
activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION));
return;
}
+ if(activeChar.isInCraftMode())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while Crafting");
+ return;
+ }
+ if(activeChar.isTeleporting())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while You Teleporting");
+ return;
+ }
+ if(activeChar.isDead())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while You Are Dead");
+ return;
+ }
+ if(activeChar.isSleeping())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while You Are In Sleep");
+ return;
+ }
+ if(activeChar.isParalyzed())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while You Are In Para");
+ return;
+ }
+
+ if(activeChar.isCastingNow())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while Casting");
+ return;
+ }
+
+ if(activeChar.isMoving())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while moving");
+ return;
+ }
+
+ if(activeChar.isProcessingTransaction())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while trading");
+ return;
+ }
+
+ if(activeChar.isStunned())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while stunned");
+ return;
+ }
+
+ if(activeChar.isMounted())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while mounted");
+ return;
+ }
+
+ if(activeChar.isFakeDeath())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while fake death");
+ return;
+ }
+
+ if(activeChar.isInJail())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while in jail");
+ return;
+ }
+
+ if(activeChar.isCursedWeaponEquiped())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while cursed weapon");
+ return;
+ }
+
+ if(activeChar.isInWater())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while in water");
+ return;
+ }
+
+ if(activeChar.isFlying())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while flying");
+ return;
+ }
+
+ if(activeChar.isFishing())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while fishing");
+ return;
+ }
+
+ if(activeChar.isSitting())
+ {
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendMessage("Can't enchant while sitting");
+ return;
+ }
+
if(item.isWear())
{
Util.handleIllegalPlayerAction(activeChar,"Player "+activeChar.getName()+" tried to enchant a weared Item", IllegalPlayerAction.PUNISH_KICK);
Bom Uso ! |
|
|
| Links Patrocinados |
|
|
#2 |
|
www.l2jlive-project.com
![]() Registrado em: May 2011
Localização: Italia - Florença
Posts: 1,222
Agradeceu: 175
Agradecido 393 Vezes em 249 Posts
Nome Real: Fábio Costa da Silva
|
Poderia por mais explicações sobre o uso dele porque muitas pessoas irão ver e ficaram sem entender !
|
|
|
|
|
|
#3 | ||||||||||||||
|
Membro - Sargento
![]() Registrado em: Apr 2009
Posts: 38
Agradeceu: 33
Agradecido 4 Vezes em 2 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
|
isso são restrições de enchant, provavelmente se você adcionar todas o char só vai enchantar se tiver imóvel, "parado".
|
||||||||||||||
|
|
|
||||||||||||||
|
|
#4 |
|
www.l2jlive-project.com
![]() Registrado em: May 2011
Localização: Italia - Florença
Posts: 1,222
Agradeceu: 175
Agradecido 393 Vezes em 249 Posts
Nome Real: Fábio Costa da Silva
|
Eu conheço a proteção amigo to falando pra ele explica mais porque vai ter pessoas que não sabem o que ela faz por isso pedi !
|
|
|
|