Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 04:41

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Looking for an answer.

Discussion on Looking for an answer. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 34
Received Thanks: 0
Looking for an answer.

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
xenomco is offline  
Old 07/10/2015, 18:51   #2
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408
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.
pintinho12 is offline  
Old 07/11/2015, 02:28   #3
 
elite*gold: 0
Join Date: Apr 2010
Posts: 34
Received Thanks: 0
Code:
 if (Kernel.GetDistance(attacker.X, attacker.Y, attacked.X, attacked.Y) <= attacked.BattlePower) //changed
     {
   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;
}
stil not working ..
xenomco is offline  
Old 07/11/2015, 06:25   #4
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408
Because I didn't change anything... quoted where would you take a look.. you don't know how to read a code?
pintinho12 is offline  
Old 07/11/2015, 07:01   #5
 
elite*gold: 0
Join Date: Apr 2010
Posts: 34
Received Thanks: 0
Code:
 if (Kernel.GetDistance(attacker.X, attacker.Y, attacked.X, attacked.Y) <= attacked.BattlePower) //changed
     {

i reviewed what is coded and this was the only mistake i saw .

and i saw you didnt changed anything dude .
xenomco is offline  
Old 07/11/2015, 07:06   #6
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408
If you don't want the battle power to count... just remove that line... simple
pintinho12 is offline  
Reply


Similar Threads Similar Threads
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...



All times are GMT +1. The time now is 04:41.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.