Fixar ataque do monge
2 participantes
Página 1 de 1
Fixar ataque do monge
Handel.cs
Procure: :case 0x28af
Procure: :case 0x28af
- Código:
case 0x28af:
if (Time32.Now >= this.attacker.WhilrwindKick.AddMilliseconds(0x5dc))
{
this.attacker.WhilrwindKick = Time32.Now;
if (Kernel.GetDistance(this.attacker.X, this.attacker.Y, x, y) <= 3)
{
if (CanUseSpell(spell, this.attacker.Owner))
{
PrepareSpell(spell, this.attacker.Owner);
use = new SpellUse(true)
{
Attacker = this.attacker.UID,
SpellID = spell.ID,
SpellLevel = 0,
X = (ushort)Kernel.Random.Next(3, 10),
Y = 0
};
if (Kernel.GetDistance(this.attacker.X, this.attacker.Y, x, y) > 3)
{
this.attacker.AttackPacket = null;
return;
}
for (num25 = 0; num25 < this.attacker.Owner.Screen.Objects.Length; num25++)
{
if (num25 >= this.attacker.Owner.Screen.Objects.Length)
{
break;
}
var obj3 = this.attacker.Owner.Screen.Objects[num25];
if ((obj3 != null) && ((obj3.MapObjType == MapObjectType.Monster) || (obj3.MapObjType == MapObjectType.Player)))
{
attacker = obj3 as Entity;
if ((Kernel.GetDistance(this.attacker.X, this.attacker.Y, attacker.X, attacker.Y) <= spell.Range) && CanAttack(this.attacker, attacker, spell, this.attack.AttackType == 0x1c))
{
power = Calculate.Melee(this.attacker, attacker, spell, ref this.attack);
use.Effect1 = this.attack.Effect1;
ReceiveAttack(this.attacker, attacker, this.attack, power, spell);
attacker.Stunned = true;
attacker.StunStamp = Time32.Now;
use.Targets.Add(attacker.UID, power);
}
}
}
this.attacker.AttackPacket = null;
this.attacker.Owner.SendScreen(use, true);
use.Targets = new SafeDictionary<uint, SpellUse.DamageClass>();
this.attacker.AttackPacket = null;
return;
}
this.attacker.AttackPacket = null;
}
this.attacker.AttackPacket = null;
return;
}
this.attacker.AttackPacket = null;
return;
Re: Fixar ataque do monge
aqui na messi v11 diz que esse case nao existe na handle.cs
arnaldo1- Iniciante
- Mensagens : 5
Pontos : 7
Reputação : 0
Data de inscrição : 25/02/2014
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos