Register for your free account! | Forgot your password?

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

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

Advertisement
Bitcoin Dice Game


[Help] Spells Damage Error

Discussion on [Help] Spells Damage Error within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2006
Posts: 439
Received Thanks: 44
[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.



Soulfly25 is offline  
Old 05/25/2020, 22:02   #2
 
elite*gold: 0
Join Date: Sep 2007
Posts: 601
Received Thanks: 125
Quote:
Originally Posted by Soulfly25 View Post

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 View Post
Code:
 public static uint CalculateLevell(uint Damage, byte SpellLevel)
        {
            Damage += (uint)(Damage * (SpellLevel * 2) / 100);
            return Damage;
        }


StarBucks is offline  
Old 05/26/2020, 02:17   #3
 
elite*gold: 0
Join Date: Jul 2009
Posts: 713
Received Thanks: 278
Quote:
Originally Posted by StarBucks View Post
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);
pintinho12 is offline  
Old 05/26/2020, 03:24   #4
 
elite*gold: 0
Join Date: Jul 2011
Posts: 42
Received Thanks: 21
Quote:
Originally Posted by pintinho12 View Post
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)}");


Latyos is offline  
Thanks
1 User
Old 05/26/2020, 03:57   #5
 
elite*gold: 0
Join Date: Sep 2007
Posts: 601
Received Thanks: 125
Quote:
Originally Posted by pintinho12 View Post
ahm
Exactly, he needs to post that function
StarBucks is offline  
Old 05/27/2020, 12:42   #6
 
elite*gold: 0
Join Date: Mar 2006
Posts: 439
Received Thanks: 44
Quote:
Originally Posted by pintinho12 View Post
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.
Soulfly25 is offline  
Old 05/27/2020, 19:03   #7
 
elite*gold: 0
Join Date: Sep 2007
Posts: 601
Received Thanks: 125
What is your OnPlayer function returning for AnimationObj? what is DbSpell, what is Clientspell?


StarBucks is offline  
Reply



« Conquer 1.0 classic server | Login screen modification? »

Similar Threads 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 +2. The time now is 04:13.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

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