Hello everyone , i am trying to make the skill WarCry to be based on Battle Power and not on Steed (+) or Lineage and i have edited the skill but is stil not working like i want to could anyone look into what i have edited and to help with an ( idea , answer or something to guide me trough this ) .
Here is the skill .
Code:
#region WarCry
case 7003:
{//WarCry
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = spell.ID;
suse.SpellLevel = spell.Level;
suse.X = X;
suse.Y = Y;
ConquerItem attackedSteed = null, attackerSteed = null;
foreach (Interfaces.IMapObject _obj in attacker.Owner.Screen.Objects)
{
if (_obj == null)
continue;
if (_obj.MapObjType == MapObjectType.Player && _obj.UID != attacker.UID)
{
attacked = _obj as Entity;
if ((attackedSteed = attacked.Owner.Equipment.TryGetItem(ConquerItem.St eed)) != null)
{
if ((attackerSteed = attacker.Owner.Equipment.TryGetItem(ConquerItem.St eed)) != null)
{
if (Kernel.GetDistance(attacker.X, attacker.Y, attacked.X, attacked.Y) <= attackedSteed.Plus)
{
if (CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
{
suse.AddTarget(attacked.UID, 0, attack);
if (attacked.BattlePower < attacker.BattlePower)
attacked.RemoveFlag(Update.Flags.Ride);
else if (attacked.BattlePower == attacker.BattlePower)
attacked.RemoveFlag(Update.Flags.Ride);
else
suse.Targets[attacked.UID].Hit = false;
}
}
}
}
}
}
attacker.Owner.SendScreen(suse, true);
break;
}
#endregion
WarCry is the one that makes everybody go down from the Steed alright?
This might be handled server side, since you don't need to click over a target to Spook it.
After reading your code, you really can't find out where to edit?
Code:
// you seriously can't figure out the error on the line below?
if (Kernel.GetDistance(attacker.X, attacker.Y, attacked.X, attacked.Y) <= attackedSteed.Plus)
{
if (CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
{
suse.AddTarget(attacked.UID, 0, attack);
if (attacked.BattlePower <= attacker.BattlePower)
attacked.RemoveFlag(Update.Flags.Ride);
else
suse.Targets[attacked.UID].Hit = false;
}
}
I even changed a few lines of this, because that code was and still so ******* ugly.
Read it & Answer it if you know the answer 03/18/2014 - Dekaron Private Server - 5 Replies You know the characters you see at the login screen? How do I change so that they wear other gear, and dance.. etc?
The developer characters which I have in my database, the ones that if I change to that they have 1m dil then all newly made characters start with 1m.
How do I go to those characters and change the stuffs they wear etc? I want them to already have all the skills mastered, so you only need to level the skills up and put them in the bars.
Read my other post too if you're...
[S]Answer to a short question [B] 3 e*gold for a good answer 03/18/2013 - elite*gold Trading - 6 Replies Vorab nochmal kurz : ich war mir nicht ganz sicher wohin damit , deshalb habe ich daraus nen trade gemacht.
I have a short question , on my PS3 i have 19.01€ PSN , Infamous 2 costs 19.99€.I was wondering if their had been a way to buy it.For example with 5% lower price code or something like this.I have 170 e*gold if this could help.
Thanks
Ich habe eine kurze Frage : Ich möchte auf meiner PS3 Infamous 2 aus dem PSN Store kaufen , ich habe aber nur 19,01€ auf dem Account und das game...
can any 1 answer me pls ? 12/26/2011 - CO2 Private Server - 1 Replies now i had make an static ip and opend ports and it done
note:i use a computer on a network
how i make it work on this pc
1-make and static ip for each pC
2-or i can make it in this pc
[WHY!?] Answer This One 12/17/2011 - Rappelz Private Server - 5 Replies Why did you remove my OPEN-BETA Redemption thread and SEVERAL other posts of mine without notice? This is beginning to become very silly that the moderators here are acting like such children. If you want me gone that bad why don't you just man up and say it? Stop playing kids game, how pitiful is that. All because your on some power trip because you're a LOL-MOD at EPVP.
For real, this is not the actions one would naturally expect from a MODERATOR TEAM!!!
How many of my posts do you...