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
Voltar   Secret Experience > Área L2J > [L2J] Downloads > [Lineage] Java Mods
Registrar Loteria VIPStaff SERegras do fórum Comunidade Arcade Postados Hoje Pesquisar Experience
   

Secret Experience.NET   Secret Experience Corporation - Welcome To The Real World
     Anúncios SE

 
 
Ferramentas do Tópico Modos de Exibição
Prev Post Anterior   Próximo Post Next
Antigo 15-01-2011, 11:12 PM   #1
Mazokista
Membro - Veterano
 
Avatar de Mazokista
 
Registrado em: Dec 2009
Posts: 1,335
Agradeceu: 490
Agradecido 803 Vezes em 427 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Sistema
Rate Designer: Iniciante
Meu Estado:
Enviar mensagem via Windows Live Messenger para Mazokista
Nome Real: Roberto

Inventório de Mazokista

Icon2 Mensagem após o Restart

Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
Index: C:/Documents and Settings/ROBERTO/workspace/L2Brasil/Trunk//L2Brasil//L2Brasil_CORE/java/config/*********.properties
===================================================================
--- C:/Documents and Settings/ROBERTO/workspace/L2Brasil/Trunk//L2Brasil//L2Brasil_CORE/java/config/*********.properties        (revision 3)
+++ C:/Documents and Settings/ROBERTO/workspace/L2Brasil/Trunk//L2Brasil//L2Brasil_CORE/java/config/*********.properties        (working copy)
 PMText1 = Welcome to our server!
 PMText2 = Visit our web http://projeto.*********.com

 # Announce Admin Name At Login
 # This script will announce when GM/Admin login.
 AnnounceGMLogin = False

@@ -36,6 +36,7 @@
-#Abort/Restart/Shutdown Setting
-#When the server restarts/aborts shutdown-restart/shutdowns it will say , Server "x" is restarting/shutdowning
-ServerName = *********

# Disable Raidboss Petrification
DisableRaidBossPetrification = True
Index: C:/Documents and Settings/ROBERTO/workspace/L2Brasil/Trunk/L2Brasil/L2Brasil_CORE/java/com/it/br/config.java
===================================================================
--- C:/Documents and Settings/ROBERTO/workspace/L2Brasil/Trunk/L2Brasil/L2Brasil_CORE/java/com/it/br/config.java        (revision 3)
+++ C:/Documents and Settings/ROBERTO/workspace/L2Brasil/Trunk/L2Brasil/L2Brasil_CORE/java/com/it/br/config.java        (working copy)

@@ -36,6 +36,7 @@

    public static String  PM_FROM;
    public static String  PM_TEXT1;
    public static String  PM_TEXT2;
-   public static String  SERVERNAME;
    public static boolean ALLOW_L2WALKER_PROTECTION;
@@ -306,6 +306,7 @@
              PM_FROM = *********.getProperty("PMFrom", "Server");
              PM_TEXT1 = *********.getProperty("PMText1", "Welcome to our server");
              PM_TEXT2 = *********.getProperty("PMText2", "Visit our web http://Your.Web.Adress");
-                 SERVERNAME = *********.getProperty("ServerName", "*********");
              ALLOW_L2WALKER_PROTECTION = Boolean.parseBoolean(*********.getProperty("L2WalkerProtection", "False"));
                                  
                                  
@@ -666,6 +666,7 @@
        else if (pName.equalsIgnoreCase("TvTEventParticipationTime")) TVT_EVENT_PARTICIPATION_TIME = Integer.parseInt(pValue);
        else if (pName.equalsIgnoreCase("TvTEventRunningTime")) TVT_EVENT_RUNNING_TIME = Integer.parseInt(pValue);
        else if (pName.equalsIgnoreCase("TvTEventParticipationNpcId")) TVT_EVENT_PARTICIPATION_NPC_ID = Integer.parseInt(pValue);
-       else if (pName.equalsIgnoreCase("ServerName")) SERVERNAME = (pValue);
        else if (pName.equalsIgnoreCase("MinKarma")) KARMA_MIN_KARMA = Integer.parseInt(pValue);
        else if (pName.equalsIgnoreCase("MaxKarma")) KARMA_MAX_KARMA = Integer.parseInt(pValue);
        else if (pName.equalsIgnoreCase("XPDivider")) KARMA_XP_DIVIDER = Integer.parseInt(pValue);



Index: C:/Documents and Settings/ROBERTO/workspace/L2Brasil/Trunk/L2Brasil/L2Brasil_CORE/java/com/it/br/gameserver/Shutdown.java
===================================================================
--- C:/Documents and Settings/ROBERTO/workspace/L2Brasil/Trunk/L2Brasil/L2Brasil_CORE/java/com/it/br/gameserver/Shutdown.java   (revision 3)
+++ C:/Documents and Settings/ROBERTO/workspace/L2Brasil/Trunk/L2Brasil/L2Brasil_CORE/java/com/it/br/gameserver/Shutdown.java   (working copy)
@@ -36,6 +36,7 @@
 import com.it.br.gameserver.model.Olympiad.Olympiad;
 import com.it.br.gameserver.network.L2GameClient;
 import com.it.br.gameserver.network.serverpackets.ServerClose;
+import com.it.br.gameserver.network.serverpackets.SystemMessage;
 
 /**
  *
@@ -65,6 +66,17 @@
      * @param seconds       seconds untill shutdown
      * @param restart       true if the server will restart after shutdown
      */
+        
+    @SuppressWarnings("deprecation")
+    private void SendServerQuit(int seconds)
+    {
+       for (L2PcInstance player : L2World.getInstance().getAllPlayers())
+       {
+         SystemMessage sysm = new SystemMessage(1);
+         sysm.addNumber(seconds);
+         player.sendPacket(sysm);
+       }
+     }
 
     public void startTelnetShutdown(String IP, int seconds, boolean restart)
     {
@@ -82,13 +94,28 @@
 
         if(_shutdownMode > 0)
         {
-            _an.announceToAll("Attention players!");
-            _an.announceToAll("Server is " + MODE_TEXT[_shutdownMode] + " in "+seconds+ " seconds!");
-            if(_shutdownMode == 1 || _shutdownMode == 2)
-            {
-                _an.announceToAll("Please, avoid to use Gatekeepers/SoE");
-                _an.announceToAll("during server " + MODE_TEXT[_shutdownMode] + " procedure.");
-            }
+           switch (seconds)
+          {
+             case 540:
+             case 480:
+             case 420:
+             case 360:
+             case 300:
+             case 240:
+             case 180:
+             case 120:
+             case 60:
+             case 30:
+             case 10:
+             case 5:
+             case 4:
+             case 3:
+             case 2:
+             case 1:
+             break;
+             default:
+             SendServerQuit(seconds);
+           }
         }
 
         if (_counterInstance != null)
@@ -306,17 +333,32 @@
 
         if(_shutdownMode > 0)
         {
-            _an.announceToAll("Attention players!");
-            _an.announceToAll("Server " + Config.SERVERNAME + " " + MODE_TEXT[_shutdownMode] + " in "+seconds+ " seconds!");
-            if(_shutdownMode == 1 || _shutdownMode == 2)
-            {
-                _an.announceToAll("Please, avoid to use Gatekeepers/SoE");
-                _an.announceToAll("during server " + MODE_TEXT[_shutdownMode] + " procedure.");
-            }
+             switch (seconds)
+          {
+             case 540:
+             case 480:
+             case 420:
+             case 360:
+             case 300:
+             case 240:
+             case 180:
+             case 120:
+             case 60:
+             case 30:
+             case 10:
+             case 5:
+             case 4:
+             case 3:
+             case 2:
+             case 1:
+             break;
+             default:
+             SendServerQuit(seconds);
+          }
         }
 
                if (_counterInstance != null)
-                {
+        {
                        _counterInstance._abort();
                }
 
@@ -375,19 +417,23 @@
 
                                switch (_secondsShut)
                                {
-                                   case 540:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 9 minutes.");break;
-                                   case 480:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 8 minutes.");break;
-                                   case 420:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 7 minutes.");break;
-                                   case 360:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 6 minutes.");break;
-                                   case 300:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 5 minutes.");break;
-                                   case 240:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 4 minutes.");break;
-                                   case 180:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 3 minutes.");break;
-                                   case 120:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 2 minutes.");break;
+                                   case 540:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 9 minutes.");SendServerQuit(540);break;
+                                   case 480:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 8 minutes.");SendServerQuit(540);break;
+                                   case 420:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 7 minutes.");SendServerQuit(540);break;
+                                   case 360:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 6 minutes.");SendServerQuit(540);break;
+                                   case 300:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 5 minutes.");SendServerQuit(540);break;
+                                   case 240:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 4 minutes.");SendServerQuit(540);break;
+                                   case 180:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 3 minutes.");SendServerQuit(540);break;
+                                   case 120:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 2 minutes.");SendServerQuit(540);break;
                                    case 60:
                                    LoginServerThread.getInstance().setServerStatus(ServerStatus.STATUS_DOWN); //avoids new players from logging in
-                                   _an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 1 minute.");break;
-                                   case 30:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 30 seconds.");break;
-                                   case 5:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 5 seconds, please delog NOW !");break;
+                    _an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 1 minute.");SendServerQuit(60);break;
+                    case 30:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 30 seconds.");SendServerQuit(30);break;
+                    case 5:_an.announceToAll("The server is " + MODE_TEXT[_shutdownMode] + " in 5 seconds, please delog NOW !");SendServerQuit(5);break;
+                    case 4:SendServerQuit(4);break;
+                    case 3:SendServerQuit(3);break;
+                    case 2:SendServerQuit(2);break;
+                    case 1:SendServerQuit(1);break;
                                }
 
                                _secondsShut--;
Creditos Pela modificacao : Mazokista

Arquivos Anexados
Tipo de Arquivo: txt Mod.txt (10.1 KB, 39 visualizações) Baixar
Mazokista está offline  
Os Seguintes 5 Usuários disseram Obrigado(a) para Mazokista por gostarem deste post :
alessandroht (06-02-2011), fetish (15-01-2011), ManoeL-ADM (16-01-2011), Rodolfo! (10-03-2011), xdavison (09-04-2011)
Links Patrocinados
 


Regras para Posts
Você não pode postar novos tópicos
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar seus posts

Código [IMG] Sim
Código HTML Não

Ir para...


Horários baseados na GMT -3. Agora são 11:59 PM.