|
You last visited: Today at 19:27
Advertisement
[Help] Spells Damage Error
Discussion on [Help] Spells Damage Error within the CO2 Private Server forum part of the Conquer Online 2 category.
05/24/2020, 10:15
|
#1
|
elite*gold: 0
Join Date: Mar 2006
Posts: 603
Received Thanks: 69
|
[Help] Spells Damage Error
Hi guys,
I am getting a problem on spells damage the problem is, if my spells get leveled it's getting damage decrease. The more spell level it increase the more the spell damage decreasing. How can I get this done?
Code:
MsgSpellAnimation.SpellObj AnimationObj;
Calculate.Magic.OnPlayer(user.Player, attacked, DBSpell, out AnimationObj);
AnimationObj.Damage = Calculate.Base.CalculateLevel(AnimationObj.Damage, ClientSpell.Level);
ReceiveAttack.Player.Execute(AnimationObj, user, attacked);
MsgSpell.Targets.Enqueue(AnimationObj);
here is the based
Code:
public static uint CalculateLevell(uint Damage, byte SpellLevel)
{
Damage += (uint)(Damage * (SpellLevel * 2) / 100);
return Damage;
}
What could be the problem here?
Thank you.
|
|
|
05/25/2020, 22:02
|
#2
|
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
|
Quote:
Originally Posted by Soulfly25
Code:
MsgSpellAnimation.SpellObj AnimationObj;
Calculate.Magic.OnPlayer(user.Player, attacked, DBSpell, out AnimationObj);
AnimationObj.Damage = Calculate.Base.CalculateLevel(AnimationObj.Damage, ClientSpell.Level);
ReceiveAttack.Player.Execute(AnimationObj, user, attacked);
MsgSpell.Targets.Enqueue(AnimationObj);
|
Not enough information for us to tell you anything. Also, the function below isn't called in your snippet above. Are you looking at the correct function?
Quote:
Originally Posted by Soulfly25
Code:
public static uint CalculateLevell(uint Damage, byte SpellLevel)
{
Damage += (uint)(Damage * (SpellLevel * 2) / 100);
return Damage;
}
|
|
|
|
05/26/2020, 02:17
|
#3
|
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408
|
Quote:
Originally Posted by StarBucks
Not enough information for us to tell you anything. Also, the function below isn't called in your snippet above. Are you looking at the correct function?
|
ahm
Quote:
|
AnimationObj.Damage = Calculate.Base.CalculateLevel(AnimationObj.Damage, ClientSpell.Level);
|
|
|
|
05/26/2020, 03:24
|
#4
|
elite*gold: 0
Join Date: Jul 2011
Posts: 96
Received Thanks: 76
|
Quote:
Originally Posted by pintinho12
ahm
|
CalculateLevell != CalculateLevel
Anyways, it's not rocket science. Just debug it by printing damage value in every step, see where the damage is getting reduced.
Code:
Console.WriteLine($"Calculate magic on player: {Calculate.Magic.OnPlayer(user.Player, attacked, DBSpell, out AnimationObj)}");
Console.WriteLine($"Calculate level damage: {Calculate.Base.CalculateLevel(AnimationObj.Damage, ClientSpell.Level)}");
|
|
|
05/26/2020, 03:57
|
#5
|
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
|
Quote:
Originally Posted by pintinho12
ahm
|
Exactly, he needs to post that function
|
|
|
05/27/2020, 12:42
|
#6
|
elite*gold: 0
Join Date: Mar 2006
Posts: 603
Received Thanks: 69
|
Quote:
Originally Posted by pintinho12
ahm
|
Sorry, my bar they are the same based I just renamed the other 1 but they are the same function just like the other one.
|
|
|
05/27/2020, 19:03
|
#7
|
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
|
What is your OnPlayer function returning for AnimationObj? what is DbSpell, what is Clientspell?
|
|
|
 |
Similar Threads
|
TrackMe |Ability Tracker|Cooldown|Damage|Summoner Spells
05/31/2015 - League of Legends Hacks, Bots, Cheats & Exploits - 1 Replies
Presenting TrackMe.
What TrackMe does is basically track all opponents abilities and summoner spells as well as damage.
http://i.imgur.com/V87VMpK.png
Interface inspiration from League#
Things TrackMe will track from your enemies:
-Ability Cooldowns
|
Damage Damage Damage
02/28/2012 - Mabinogi Hacks, Bots, Cheats & Exploits - 3 Replies
Because of poor English grammar may be a bit strange
May I ask what damage accumulated or MOD
|
An Spells andere Spells haften mit WPE/Make other effects to Spells with WPe
12/18/2008 - World of Warcraft - 0 Replies
Hi,
Ich hab das ma hier gelesen das man an manche Instant-Spells andere effekte anhängen kann, kann das nochma einer posten? bzw die Addresse schickn wo das schon stand
Hi,
i have read here that i add other effects to Instant-Spells with Wpe, can that any1 post again? Or send the Address where this where post
|
[Rq] Paladin Spells -> DK Spells :D
12/21/2007 - World of Warcraft - 8 Replies
Heidiho..
Da ich es kaum erwarten kann bis mein Paladin endlich den Weg zum Todesritter antreten werden kann, hab ich mich dazu entschieden meinen Paladin in einen Todesritter zu verändern.
Leider hab ich keinerlei Ahnung =( Auch wenn ich weiß das dass sicher viele interessieren würde ;)) Es sollten folgende Sachen geändert werden:
Spells
Mount
Armor
|
[Mage] Normale Fire Spells in Felfire Spells
04/20/2007 - World of Warcraft - 14 Replies
Hi Leute.
Bin erst gestern auf dieses Forum gestoßen und war sofort von euch begeistert :P
Hab mir gleich mal den Model Change Thread angeguckt und auch schon ausprobiert. Illusionäre Rute in ein Raid Epic verwandelt, hat super geklappt.
So, jetz mal zum Thema hier: Es gibt ja diese Felfire Spells... die sehen so aus wie die Spells vom Magier (Fireball, Pyroblast, Blast Wave ect.) nur eben in Grün. Und ich will die Spells von meinem Mage Twink in diese Felfire Spells umwandeln. Aber wie...
|
All times are GMT +1. The time now is 19:28.
|
|