How could i unmount the steed when i attack to players (pk)? and when i use all skills? because steeds ruining the pvp.
btw source is 5165
btw source is 5165
case ExtraEffect.Fly:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Fly;
C.AddBuff(B);
if (C.StatEff.Contains(StatusEffectEn.Ride))
{
C.StatEff.Remove(StatusEffectEn.Ride);
}
break;
obviously addQuote:
so this is about skills what about normal attack?
if (C.StatEff.Contains(StatusEffectEn.Ride))
{
C.StatEff.Remove(StatusEffectEn.Ride);
}
Ok i did that and now it works good for skills but what about when attacking a player? i meant how do i dismount the steed when attacking a player?Quote:
In skill.cs search for:
case ExtraEffect.Fly:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Fly;
C.AddBuff(B);
}
break;
Just need to add this code:
if (C.StatEff.Contains(StatusEffectEn.Ride))
{
C.StatEff.Remove(StatusEffectEn.Ride);
}
finally code is :
Edit: You find more skills in the skills.cs >.<'Code:case ExtraEffect.Fly: { Buff B = new Buff(); B.Eff = Info.ExtraEff; B.Lasts = Info.EffectLasts; B.Value = Info.EffectValue; B.Started = DateTime.Now; B.StEff = StatusEffectEn.Fly; C.AddBuff(B); if (C.StatEff.Contains(StatusEffectEn.Ride)) { C.StatEff.Remove(StatusEffectEn.Ride); } break;
Quote:
Error 1 The name 'C' does not exist in the current context C:\JusticeCo\Beta\PacketHandling\Attack.cs 69 29 NewestCOServer
Error 2 The name 'StatusEffectEn' does not exist in the current context C:\JusticeCo\Beta\PacketHandling\Attack.cs 69 48 NewestCOServer
Error 3 The name 'C' does not exist in the current context C:\JusticeCo\Beta\PacketHandling\Attack.cs 71 29 NewestCOServer
Error 4 The name 'StatusEffectEn' does not exist in the current context C:\JusticeCo\Beta\PacketHandling\Attack.cs 71 46 NewestCOServer
Must add a reference.Quote:
already tried and i get error messages
case ExtraEffect.Ride:
{
if ((C.StatEff.Contains(StatusEffectEn.ShurikenVortex)) || (C.StatEff.Contains(StatusEffectEn.FatalStrike)) || (C.StatEff.Contains(StatusEffectEn.Fly)))
{
C.Stamina -= 0;
return;
}
if (!User.StatEff.Contains(StatusEffectEn.Ride))
User.StatEff.Add(StatusEffectEn.Ride);
else
User.StatEff.Remove(StatusEffectEn.Ride);
User.Vigor = User.MaxVigor;
break;
}