Ver um Único Post
Antigo 21-05-2010, 11:39 PM   #1
[Video java]adicionando um moD pelo eclipse
Guma Guma está offline 21-05-2010, 11:39 PM

resolvi fase fase um video adicionando um mod
nao sei se fiko bom queria q vissem e falassem o que acharam ..
o que deveria melhorar no video pra eu poder faser melhor ..

o video mostra adicionando o mod e depos copilando..

download:

[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

esse e o mod q foi adicionado no video:

Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
### Eclipse Workspace Patch 1.0
#P trunkasasfsfdgadfgsdafsdf
Index: L2J_Gameserver/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java
===================================================================
--- L2J_Gameserver/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(revision 123)
+++ L2J_Gameserver/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(working copy)
@@ -186,6 +186,11 @@
             notifyPartner(activeChar,activeChar.getPartnerId());
         }
 
+        if (activeChar.isGM() && Config.GM_MESSAGE_ENABLE)
+        {
+ activeChar.sendMessage(Config.GM_MESSAGE);
+        }
+        
         if (activeChar.getAllEffects() != null)
         {
             for (L2Effect e : activeChar.getAllEffects())

Index: L2J_Gameserver/java/net/sf/l2j/Config.java
===================================================================
--- L2J_Gameserver/java/net/sf/l2j/Config.java	(revision 123)
+++ L2J_Gameserver/java/net/sf/l2j/Config.java	(working copy)
@@ -933,6 +933,10 @@
     public static float			ARCHER_VS_LIGHT;
     public static float			ARCHER_VS_ROBE;
           

+    public static boolean GM_MESSAGE_ENABLE;
+    public static String GM_MESSAGE;
   
     // Packet information
     /** Count the amount of packets per minute ? */
     public static boolean  COUNT_PACKETS           = false;
@@ -2061,6 +2065,9 @@
                 ARCHER_VS_LIGHT                 = Float.parseFloat(altSettings.getProperty("ArcherVsHeavy", "2.00"));
                 ARCHER_VS_ROBE                  = Float.parseFloat(altSettings.getProperty("ArcherVsHeavy", "1.80"));
                 
+                GM_MESSAGE_ENABLE               = Boolean.parseBoolean(altSettings.getProperty("EnableGmMessage", "False"));
+                GM_MESSAGE                      = altSettings.getProperty("GmMessage", "Welcome Our GM !");
                
                 // Regen Town Setting
 		ALLOW_REGEN_SYSTEM = Boolean.parseBoolean(customSettings.getProperty("AllowRegenSystemInTown", "False"));
 		REGEN_SYSTEM_CP = Float.parseFloat(customSettings.getProperty("RegenSystemInTownCP", "1.0"));


Index: L2J_Gameserver/config/Extras/custom.properties
===================================================================
--- L2J_Gameserver/config/altSetting.properties	(revision 123)
+++ L2J_Gameserver/config/altSetting.properties	(working copy)
@@ -6,6 +6,10 @@
 # retail types of gameplay into the L2J server.                -
 #---------------------------------------------------------------
 
+#Enable Message For Gms when they log in ?
+EnableGmMessage = False
+GmMessage = Welcome Our GM !

 # Enable Regen System in Towns?
 # Default: False
 AllowRegenSystemInTown = False

Creditos : eu

Se gostaram agradessam e nao esquessam de dar suas opinioes.

 
Avatar de Guma
Guma
Membro - Veterano
Registrado em: Sep 2009
Localização: Florianopolis (sc)
Posts: 591
Nome Real: i'm Guma
Visitas: 1480
Os Seguintes 24 Usuários disseram Obrigado(a) para Guma por gostarem deste post :
Mostrar/Ocultar lista dos que agradeceram

Links Patrocinados
 

Search Engine Optimization by vBSEO 3.3.0