Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 20:53

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

Advertisement



DST_MASTRY_FIRE problem.

Discussion on DST_MASTRY_FIRE problem. within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
DST_MASTRY_FIRE problem.

Hi Elitepvpers,

I have an question about an skill that I want to change.
Its SA_FIREBIRD_L01 I have added DST_MASTRY_FIRE 10 to it.
So that the skill will have an increase of 10% fire damage.

However even if I add 500% its not working.
So I have checked the source
Snippet
int CMover::GetMagicSkillPower( ATTACK_INFO* pInfo )

There it will be calculated how much damage it will do with the DST_MASTRY_FIRE.

So far no luck if I do /sro 17 500 then its working like it should be.

So it can be that its releated to GetParam() function
raventh1984 is offline  
Old 12/11/2015, 18:00   #2
 
Mognakor's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 598
Received Thanks: 465
DST_MASTRY_FIRE is used for selfbuffs. The effect of a targeted spell is applied to the target.

What you are looking for is one of those debuffs used by the lvl 30 mage spells.
Mognakor is offline  
Thanks
1 User
Old 12/11/2015, 20:01   #3
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
The problem with flyff is it only has 2 systems for the spells.

1. Self targeting
2. Other target.

So I need to write an entire code just so that when an caster is casting an fire spell that has an 10% increase in fire it will do the 10% increase in attack without adding and 10% awakening to the weapon or to use an other skill to increase the fire damage like DST_MASTRY_FIRE.

Edit:
I have added DST_RESIST_FIRE and tested it but the first time I hit the npc damage is the same as without it. But the 2nd 3rd etc the damage output will go higher and higher.

So that is something I also don't want.

I hope I make some sence about what I want.
raventh1984 is offline  
Old 12/12/2015, 00:57   #4
 
Mognakor's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 598
Received Thanks: 465
You want a spell to deal more damage? Simply increase the scaling. DST_MASTRY_FIRE has no interaction with the element the target has, it only interacts with the spell.
Mognakor is offline  
Old 12/12/2015, 08:46   #5
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Yeah I know I can increase the spell but I want something like Daiblo has.

So its scaling the damage with the weapon.

Let say Firebird does 193% Weapon damage as Fire.
Electric Shoc does 150% Weapon damage as Electric

Something in those lines.


EDIT:
Problem solved.
I put the DST_MASTRY_FIRE inside PropSkill at Row dwProbability I changed it to the correct row.
And added this snippet inside int CMover::GetMagicSkillPower( ATTACK_INFO* pInfo )
Code:
case ST_FIRE:
		if(pSkillProp->dwDestParam1 == DST_MASTRY_FIRE)
		{
			if( pSkillProp->nAdjParamVal1 != NULL_ID )
			{
				fRatio = pSkillProp->nAdjParamVal1 / 100.0f;
				nATK = (int)(nATK + (nATK * fRatio));
			}
		}
		else
		{
			fRatio	= GetParam( DST_MASTRY_FIRE, 0 ) / 100.0f;
			nATK	= (int)( nATK + (nATK * fRatio) );
		}
		break;
So now the DST_MASTRY_FIRE is working like I would it to be.
raventh1984 is offline  
Reply


Similar Threads Similar Threads
[Problem]Habe ein Problem und zwar spinnt mein VPC etwas(ohne Grund)?!
07/28/2011 - Metin2 Private Server - 10 Replies
Also wie schon gesagt meins Server spinnt wodurch kiks usw. kommen :( ich lade euch die Screens in den Anhang, mit der Hoffnung, dass ihr mir helfen könnt :) wäre echt sehr nice :)



All times are GMT +1. The time now is 20:54.


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.