|
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 - Karma
![]() Registrado em: Sep 2009
Localização: Rio Verde GO
Posts: 383
Agradeceu: 265
Agradecido 274 Vezes em 113 Posts
Nome Real: Paulo Eduardo Ferreira
|
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)
{
|
|
|
| Os Seguintes 3 Usuários disseram Obrigado(a) para B1Z4R0 por gostarem deste post : |
Kinho! (18-10-2010), llJuniorll (17-10-2010) |
| Links Patrocinados |
|
|
#2 |
|
Banido
![]() Registrado em: Jun 2010
Posts: 117
Agradeceu: 47
Agradecido 96 Vezes em 44 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
![]()
|
Desculpe!
Achei o MOD massa mais surgiu uma duvida: Tipo si eu colocar -1 - desativado! e si eu coocar +5, so pode echante ate +5? Ou eu coloco 5 ? |
|
|
|
|
|
#3 |
|
Banido
![]() Registrado em: Sep 2009
Localização: Na Frente do PC =p
Posts: 2,094
Agradeceu: 701
Agradecido 1,875 Vezes em 902 Posts
Nome Real: Rodrigo R. Camellini
|
@Kinho!
vc coloca o valor exemplo 7 dai so podera itens ate +7 ou seja se colocar 5 os itens so poderao ser usadoa te +5 |
|
|
|
|
|
#4 | ||||||||||||||
|
Membro - Recruta
![]() Registrado em: Feb 2010
Posts: 5
Agradeceu: 0
Agradecido 0 Vezes em 0 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
![]()
|
Thx!!!!!!!!!!!!!
|
||||||||||||||
|
|
|
||||||||||||||
| O seguinte membro ao lado disse Obrigado(a) a : thiago2659 por gostar deste Post : |
|