|
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 | ||||||||||||||
|
Jesus Te Ama, Mas EU Não!
![]() Registrado em: Oct 2008
Localização: 45º 33º 34º N | 122º 41º 41º W DESTINATION: ANYWHERE Adidas
Posts: 4,133
Agradeceu: 837
Agradecido 6,058 Vezes em 2,106 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
![]()
Nome Real: Anderson Andrade
|
Config.java
Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
public static float RATE_XP;
public static float RATE_SP;
+ public static float SATURDAY_RATE_XP;
+ public static float SATURDAY_RATE_SP;
RATE_XP = Float.parseFloat(server.getProperty("RateXp", "1."));
RATE_SP = Float.parseFloat(server.getProperty("RateSp", "1."));
+ SATURDAY_RATE_XP = Float.parseFloat(server.getProperty("SaturDayXp", "2."));
+ SATURDAY_RATE_SP = Float.parseFloat(server.getProperty("SaturDaySp", "2."));
Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
# =================================================================
# RATES
# =================================================================
# Rate control
RateXp = 1.
RateSp = 1.
+ SaturDayXp = 2.
+ SaturDaySp = 2.
Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
_ /**
_ * Return the Exp Reward of this L2Npc contained in the L2NpcTemplate (modified by _RATE_XP).<BR><BR>
_ */
_ public int getExpReward()
_ {
_ return (int) (getTemplate().rewardExp * Config.RATE_XP);
_ }
+ private int Savvato()
+ {
+ return Calendar.SATURDAY;
+ }
+ /**
+ * Return the Exp Reward of this L2Npc contained in the L2NpcTemplate (modified by +RATE_XP).<BR><BR>
+ */
+ public int getExpReward()
+ {
+ if(Savvato() != 0)
+ return (int) (getTemplate().rewardExp * Config.SATURDAY_RATE_XP);
+ else
+ return (int) (getTemplate().rewardExp * Config.RATE_XP);
+
+ }
_ /**
_ * Return the SP Reward of this L2Npc contained in the L2NpcTemplate (modified by _RATE_SP).<BR><BR>
_ */
_ public int getSpReward()
_ {
_ return (int) (getTemplate().rewardSp * Config.RATE_SP);
_ }
+ /**
+ * Return the SP Reward of this L2Npc contained in the L2NpcTemplate (modified by +RATE_SP).<BR><BR>
+ */
+ public int getSpReward()
+ {
+ if(Savvato() != 0)
+ return (int) (getTemplate().rewardExp * Config.SATURDAY_RATE_SP);
+ else
+ return (int) (getTemplate().rewardSp * Config.RATE_SP);
+ }
|
||||||||||||||
|
|
|||||||||||||||
| O seguinte membro ao lado disse Obrigado(a) a : Setokaiba por gostar deste Post : |
CavaleiroNegro (04-10-2013)
|
| Links Patrocinados |