|
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 |
|
Banido
![]() Registrado em: Nov 2009
Localização: Fortaleza-ce
Posts: 325
Agradeceu: 125
Agradecido 203 Vezes em 82 Posts
Nome Real: Allan Alcântara de Alencar
|
Correção de Chances de Blow ter 100%
mod bem simples e ÓTIMO PRA QUALQUER SERVIDOR! valeeu. Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
--- trunk/L2J-Mack_IL/L2J-Mack_GameServer/java/com/l2dot/gameserver/handler/skillhandlers/Blow.java (revision 5)
+++ trunk/L2J-Mack_IL/L2J-Mack_GameServer/java/com/l2dot/gameserver/handler/skillhandlers/Blow.java (revision 22)
@@ -49,11 +49,18 @@
private static final SkillType[] SKILL_IDS = {SkillType.BLOW};
private int _successChance;
- public final static int FRONT = 50;
- public final static int SIDE = 60;
- public final static int BEHIND = 70;
+ public static int FRONT = 50;
+ public static int SIDE = 60;
+ public static int BEHIND = 70;
- public void useSkill(L2Character activeChar, L2Skill skill, L2Object[] targets){
+ public void useSkill(L2Character activeChar, L2Skill skill, L2Object[] targets)
+ {
+ if(skill.getId() == 30)
+ {
+ FRONT = 0;
+ SIDE = 0;
+ BEHIND = 70;
+ }
if(activeChar.isAlikeDead())
return;
for(int index = 0;index < targets.length;index++)
--- trunk/L2J-Mack_IL/L2J-Mack_GameServer/java/com/l2dot/gameserver/handler/skillhandlers/Pdam.java (revision 5)
+++ trunk/L2J-Mack_IL/L2J-Mack_GameServer/java/com/l2dot/gameserver/handler/skillhandlers/Pdam.java (revision 22)
@@ -233,8 +233,22 @@
player.sendPacket(smsg);
}
- else
- target.reduceCurrentHp(damage, activeChar);
+ else if(skill.getId() == 30)
+ {
+ double Hpdam = 0;
+
+ if (damage >= target.getCurrentHp())
+ {
+ target.setCurrentHp(0);
+ target.doDie(activeChar);
+ }
+ else
+ {
+ Hpdam = (target.getCurrentHp() - damage);
+ target.setCurrentHp(Hpdam);
+ }
+ }
+ else target.reduceCurrentHp(damage, activeChar);
}
else
{
|
|
|
| Links Patrocinados |