Enter the code to another brand
Quote:
#region Riding
case 7001:
{
if (!attacker.Owner.Equipment.Free(12))
{
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = spell.ID;
suse.SpellLevel = spell.Level;
suse.X = X;
suse.Y = Y;
if (attacker.ContainsFlag(Update.Flags.Ride))
{
attacker.RemoveFlag(Update.Flags.Ride);
}
else
{
if (attacker.Owner.Map.ID == 1039 && attacker.Owner.Equipment.TryGetItem((byte)12).Plus < 6)
break;
if (attacker.Stamina >= 100 && (attacker.Owner.QualifierGroup == null || attacker.Owner.QualifierGroup != null && !attacker.Owner.QualifierGroup.Inside))
{
attacker.AddFlag(Update.Flags.Ride);
attacker.Stamina -= 100;
Network.GamePackets.Vigor vigor = new Network.GamePackets.Vigor(true);
vigor.Amount = attacker.Owner.Vigor;
vigor.Send(attacker.Owner);
}
}
suse.Targets.Add(attacker.UID, 0);
attacker.Owner.Screen.SendScreen(suse, true);
}
break;
}
and go to Handle
and search if (attacker.ContainsFlag(Update.Flags.Ride))
Enter the code to another brand
Quote:
if (attacker.ContainsFlag(Update.Flags.Ride))
{
if (attack.AttackType != Attack.Magic)
if (!attacker.Owner.Equipment.Free(18))
{
}
else
{
attacker.RemoveFlag(Update.Flags.Ride);
}
else
if (!attacker.Owner.Equipment.Free(18))
{
}
else
{
if (!(SpellID == 7003 || SpellID == 7002))
attacker.RemoveFlag(Update.Flags.Ride);
}
}
and search #region Stamina
Quote:
#region Stamina
if (Now > this.StaminaStamp.AddMilliseconds(500))
{
if (Owner.Vigor < Owner.MaxVigor)
{
Owner.Vigor += (ushort)(3 + (Owner.Entity.Action == Game.Enums.ConquerAction.Sit ? 2 : 0));
{
Network.GamePackets.Vigor vigor = new Network.GamePackets.Vigor(true);
vigor.Amount = Owner.Vigor;
vigor.Send(Owner);
}
}
if (!this.ContainsFlag(Network.GamePackets.Update.Fla gs.Fly))
{
int limit = 0;
if (this.HeavenBlessing > 0)
limit = 50;
if (this.Stamina != 100 + limit)
{
if (this.Action == Game.Enums.ConquerAction.Sit)
{
if (this.Stamina <= 93 + limit)
{
this.Stamina += 7;
}
else
{
if (this.Stamina != 100 + limit)
this.Stamina = (byte)(100 + limit);
}
}
else
{
if (this.Stamina <= 97 + limit)
{
this.Stamina += 3;
}
else
{
if (this.Stamina != 100 + limit)
this.Stamina = (byte)(100 + limit);
}
}
}
this.StaminaStamp = Now;
}
}
#endregion