|
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 |
|
|
|
||||||||||||||||||||||||||||||
|
|
|
|
LinkBack | Ferramentas do Tópico | Modos de Exibição |
|
|
#1 (permalink) |
|
Banido
![]() Registrado em: Nov 2009
Localização: Fortaleza-ce
Posts: 325
Agradeceu: 125
Agradecido 203 Vezes em 82 Posts
Nome Real: Allan Alcântara de Alencar
|
mais uma vez aqui, postando um MOD, que pode ajudar bastante! ;p'
então pra quem começa com projeto, ou seu projeto é novo, e precisa de proteções e etc. está ae .. eu não tive tempo de testar então não direi que está 100%, mas creio que esteja bom! kiss Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
Index: C:/Documents and Settings/Pc01/workspace/L2J_NewCore/java/config/l2jmods.properties
===================================================================
--- C:/Documents and Settings/Pc01/workspace/L2J_NewCore/java/config/l2jmods.properties (revision 2796)
+++ C:/Documents and Settings/Pc01/workspace/L2J_NewCore/java/config/l2jmods.properties (working copy)
@@ -161,4 +161,9 @@
#----------------------------------
EnableWarehouseSortingClan = False
EnableWarehouseSortingPrivate = False
-EnableWarehouseSortingFreight = False
\ No newline at end of file
+EnableWarehouseSortingFreight = False
+
+#---------------------------------
+# Walker Protection
+#---------------------------------
+L2WalkerProtection = False
\ No newline at end of file
Index: C:/Documents and Settings/Pc01/workspace/L2J_NewCore/java/net/sf/l2j/Config.java
===================================================================
--- C:/Documents and Settings/Pc01/workspace/L2J_NewCore/java/net/sf/l2j/Config.java (revision 2796)
+++ C:/Documents and Settings/Pc01/workspace/L2J_NewCore/java/net/sf/l2j/Config.java (working copy)
@@ -80,6 +80,7 @@ /******************************************************************************************************************************************************/
/** L2J Property File Definitions End Here**/
/******************************************************************************************************************************************************/
@@ -560,6 +561,8 @@
public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_CLAN;
public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE;
public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT;
+ // L2WalkerProtection
+ public static boolean KICK_L2WALKER;
/** ************************************************** **/
/** L2JMods Settings -End **/
@@ -1767,6 +1770,8 @@
L2JMOD_ENABLE_WAREHOUSESORTING_CLAN = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingClan", "False"));
L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingPrivate", "False"));
L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingFreight", "False"));
+ // L2Walker Protection
+ KICK_L2WALKER = Boolean.parseBoolean(L2JModSettings.getProperty("L2WalkerProtection", "False"));
if (TVT_EVENT_PARTICIPATION_NPC_ID == 0)
{
Index: C:/Documents and Settings/Pc01/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/network/clientpackets/MoveBackwardToLocation.java
===================================================================
--- C:/Documents and Settings/Pc01/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/network/clientpackets/MoveBackwardToLocation.java (revision 2796)
+++ C:/Documents and Settings/Pc01/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/network/clientpackets/MoveBackwardToLocation.java (working copy)
@@ -23,6 +23,9 @@
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.network.serverpackets.ActionFailed;
import net.sf.l2j.gameserver.network.serverpackets.PartyMemberPosition;
+import net.sf.l2j.gameserver.network.SystemMessageId;
+import net.sf.l2j.gameserver.util.IllegalPlayerAction;
+import net.sf.l2j.gameserver.util.Util;
/**
* This class ...
@@ -71,6 +74,12 @@
catch (BufferUnderflowException e)
{
// ignore for now
+ if(Config.KICK_L2WALKER)
+ {
+ L2PcInstance activeChar = getClient().getActiveChar();
+ activeChar.sendPacket(SystemMessageId.HACKING_TOOL);
+ Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " trying to use l2walker!", IllegalPlayerAction.PUNISH_KICK);
+ }
}
}
Index: C:/Documents and Settings/Pc01/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- C:/Documents and Settings/Pc01/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 2796)
+++ C:/Documents and Settings/Pc01/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy)
@@ -11971,4 +11971,13 @@
}
}
}
+
+ /**
+ * @param hacking_tool
+ */
+ public void sendPacket(SystemMessageId hacking_tool)
+ {
+ sendMessage("Please try again after closing unnecessary programs!.");
+
+ }
}
OBS: não sei de quem são os creditos então ... peguei o mod, já sem os créditos, faz tempo que tenho então tai . |
|
|
| Links Patrocinados |
|
|