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 17-10-2010, 03:21 PM   #1
B1Z4R0
Membro - Karma
 
Avatar de B1Z4R0
 
Registrado em: Sep 2009
Localização: Rio Verde GO
Posts: 383
Agradeceu: 265
Agradecido 274 Vezes em 113 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Sistema
Meu Estado:
Enviar mensagem via Windows Live Messenger para B1Z4R0
Nome Real: Paulo Eduardo Ferreira

Inventório de B1Z4R0

Padrão Limite Enchant em Olympiad

Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
trunk/L2KS_GameServer/config/altsettings.properties (revision 140)
+++ trunk/L2KS_GameServer/config/altsettings.properties (revision 145)
@@ -252,6 +252,10 @@
 # How many week 1 Olympiad cycle should last, default = 4
 AltOlyWeeks = 4
 
+# This is the limit of enchantment of items in olympiad mode 
+# if set this to 5 , then players with equipment more than +5 cannot join 
+OlyMaxEnchant = -1
+
--- trunk/L2KS_GameServer/java/net/sf/l2j/Config.java (revision 141)
+++ trunk/L2KS_GameServer/java/net/sf/l2j/Config.java (revision 145)
@@ -283,6 +283,7 @@
     public static long  ALT_OLY_WPERIOD;
     public static long  ALT_OLY_VPERIOD;
 	public static int   ALT_OLY_WEEKS;
+	public static int   ALT_OLY_ENCHANT_LIMIT;
 
     /** Manor Refresh Starting time */
     public static int ALT_MANOR_REFRESH_TIME;
@@ -1874,6 +1875,7 @@
                 ALT_OLY_IWAIT                                       = Long.parseLong(altSettings.getProperty("AltOlyIWait","300000"));
                 ALT_OLY_WPERIOD                                     = Long.parseLong(altSettings.getProperty("AltOlyWPeriod","604800000"));
                 ALT_OLY_VPERIOD                                     = Long.parseLong(altSettings.getProperty("AltOlyVPeriod","86400000"));
+                ALT_OLY_ENCHANT_LIMIT                               = Integer.parseInt(altSettings.getProperty("OlyMaxEnchant", "-1"));
 
                 ALT_MANOR_REFRESH_TIME                              = Integer.parseInt(altSettings.getProperty("AltManorRefreshTime","20"));
     	        ALT_MANOR_REFRESH_MIN                               = Integer.parseInt(altSettings.getProperty("AltManorRefreshMin","00"));

--- trunk/L2KS_GameServer/java/net/sf/l2j/gameserver/skills/funcs/FuncEnchant.java (revision 4)
+++ trunk/L2KS_GameServer/java/net/sf/l2j/gameserver/skills/funcs/FuncEnchant.java (revision 145)
@@ -18,7 +18,9 @@
  */
 package net.sf.l2j.gameserver.skills.funcs;
 
+import net.sf.l2j.Config;
 import net.sf.l2j.gameserver.model.L2ItemInstance;
+import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
 import net.sf.l2j.gameserver.skills.Env;
 import net.sf.l2j.gameserver.skills.Stats;
 import net.sf.l2j.gameserver.templates.L2Item;
@@ -50,6 +52,21 @@
             overenchant = enchant - 3;
             enchant = 3;
         }
+        
+        if (env.player != null && env.player instanceof L2PcInstance) 
+        { 
+         	L2PcInstance player = (L2PcInstance)env.player; 
+         	if (player.isInOlympiadMode() && Config.ALT_OLY_ENCHANT_LIMIT >= 0 && (enchant + overenchant) > Config.ALT_OLY_ENCHANT_LIMIT) 
+         	{ 
+         		if (Config.ALT_OLY_ENCHANT_LIMIT > 3) 
+         		overenchant = Config.ALT_OLY_ENCHANT_LIMIT - 3; 
+         	else 
+         	{ 
+         		overenchant = 0; 
+         		enchant = Config.ALT_OLY_ENCHANT_LIMIT; 
+         		 } 
+         	} 
+         }
 
         if (stat == Stats.MAGIC_DEFENCE || stat == Stats.POWER_DEFENCE)
         {

Arquivos Anexados
Tipo de Arquivo: txt Enchant.txt (3.0 KB, 38 visualizações) Baixar
B1Z4R0 está offline  
Os Seguintes 3 Usuários disseram Obrigado(a) para B1Z4R0 por gostarem deste post :
Kinho! (18-10-2010), llJuniorll (17-10-2010)
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.