ConversionSpellHandler & MagicConversionSpellHandler

Share files with other Dawn of Light users

Moderator: Support Team

ConversionSpellHandler & MagicConversionSpellHandler

Postby scorpargain » Wed Nov 14, 2012 8:48 pm

hi all
i have find a hudge error on the orriginal Conversion.cs

i have fix it, and now that display the real damage done with absorb on attacker and the Result damage on target.

exemple for 5% conversion

the attacker do 500 damage and the conversion spell absorbe 50 damage
the attacked see in log xxx attack you for 450 damage
you gain 50 converted mana
you gain 50 converted endurence

when you make a spell the % of conversion need to be a value not a damage.
Attachments
Conversion.rar
(2.3 KiB) Downloaded 164 times
Go to Forum for more infomations
Allez sur le Forum pour plus d'informations
[url=daoc://62.141.46.228:10300]CONNECT[/url]
User avatar
scorpargain
DOL Novice
 
Posts: 58
Joined: Tue Nov 08, 2011 8:56 am

Re: ConversionSpellHandler & MagicConversionSpellHandler

Postby Graveen » Thu Nov 15, 2012 9:37 am

Thank you. What was the original issue ? :)
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: ConversionSpellHandler & MagicConversionSpellHandler

Postby scorpargain » Sat Nov 17, 2012 8:50 am

look like close too

when i have try the previous conversion i have add message to attacker and message to player for display all variable, and nost of time got 0 for answer, so not good.

with this version you got a value.

i have test with 90% conversion for see

and the damage on the attacker screen say : you hit for 500 but a magical barrier abs 450 damage.

on attacked screen you see player attack you for 50 damage, you gain 450 mana from conversion and 450 endurence from conversion
Go to Forum for more infomations
Allez sur le Forum pour plus d'informations
[url=daoc://62.141.46.228:10300]CONNECT[/url]
User avatar
scorpargain
DOL Novice
 
Posts: 58
Joined: Tue Nov 08, 2011 8:56 am

Re: ConversionSpellHandler & MagicConversionSpellHandler

Postby geshi » Sat Nov 17, 2012 12:23 pm

The current Conversion works fine if you set the spell damage to the percent...

The only problem with it is that it does not reduce the damage like it should.. since the
Code: Select all
ad.Damage -= damageConverted;
line is in an if statement which will never fire, it just needs to be moved down about 4 lines then it will all be okay..
geshi
Contributor
 
Posts: 1826
Joined: Tue Oct 21, 2008 9:16 pm


Return to “%s” User Files

Who is online

Users browsing this forum: No registered users and 1 guest