Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server > Flyff PServer Guides & Releases
You last visited: Today at 15:44

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

Advertisement



[Guide] Ameliorate skill in source

Discussion on [Guide] Ameliorate skill in source within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2012
Posts: 104
Received Thanks: 48
[Guide] Ameliorate skill in source

Hello,

I show to you how to ameliortae the power of a skill directly in source.

This is more convenient than edit propSkillAdd '-'

Go in your WORLDSERVER folder, and open AttackArbitter.cpp.

Search it :

Quote:
int CAttackArbiter::OnAfterDamage( ATTACK_INFO* pInfo, int nDamage )
And in this function, add this (just an example) :

Quote:
if( pInfo->GetSkill() == SI_VAG_ONE_CLEANHIT );
{
nDamage = nDamage * 2;
}
Damage of SI_VAG_ONE_CLEANHIT skill are multiplied by 2.

Winter'
WinterWave is offline  
Thanks
3 Users
Old 11/10/2012, 19:51   #2
 
Mognakor's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 598
Received Thanks: 465
Nothing special and it's also worse than using the ressource cause it will make your server run slower even if it's just a bit.
Mognakor is offline  
Old 11/10/2012, 20:17   #3
 
elite*gold: 0
Join Date: Nov 2012
Posts: 104
Received Thanks: 48
It's just a tip, and server run slower if you put 500~ things like that.
WinterWave is offline  
Thanks
2 Users
Old 11/11/2012, 18:14   #4
 
elite*gold: 0
Join Date: Oct 2012
Posts: 108
Received Thanks: 29
Nice , good idea, is good
SourceShop is offline  
Thanks
1 User
Old 11/11/2012, 23:07   #5
 
Мarvіn's Avatar
 
elite*gold: 6
Join Date: Nov 2012
Posts: 1,470
Received Thanks: 2,222
Why you use this function?

I'm using this one (already used by galalab for spiritbombs)

Quote:
CMover::GetDamageMultiplier
Quote:
case SI_ELE_STF_THUNDERBOLT:
factor *= 1.5;
break;
Мarvіn is offline  
Thanks
1 User
Old 11/12/2012, 19:51   #6
 
Pumaaa's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 569
Received Thanks: 695
If ya want to do this properly, just edit the LoadPropaddskill function.

if( propAddSkill.dwID == SI_VAG_ONE_CLEANHIT );
{
propAddSkill.dwAbilityMin =* 2;
propAddSkill.dwAbilityMax =* 2;
}

Would be the snippet for example.

This would only affect your client/server loadspeed minimally and wouldn't be called on each attack.
Pumaaa is offline  
Thanks
1 User
Old 11/12/2012, 20:32   #7
 
elite*gold: 0
Join Date: Nov 2012
Posts: 104
Received Thanks: 48
Thanks Marvin and Pumaa for council. =)
WinterWave is offline  
Old 11/13/2012, 18:56   #8
 
Mognakor's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 598
Received Thanks: 465
Quote:
Originally Posted by Pumaaa View Post
If ya want to do this properly, just edit the LoadPropaddskill function.

if( propAddSkill.dwID == SI_VAG_ONE_CLEANHIT );
{
propAddSkill.dwAbilityMin =* 2;
propAddSkill.dwAbilityMax =* 2;
}

Would be the snippet for example.

This would only affect your client/server loadspeed minimally and wouldn't be called on each attack.
Also would have to be in the LoadPropSkill function for dwReferStat1 and/or dwReferStat2 to adjust damage growth per Stat point.
Mognakor is offline  
Old 11/16/2012, 02:04   #9
 
xMootie's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 208
Received Thanks: 486
Quote:
Originally Posted by Mognakor View Post
Nothing special and it's also worse than using the ressource cause it will make your server run slower even if it's just a bit.
I agree, it is worse than using resource. However, not because of the extra binary operation.

It's less convenient than resource editing because it requires source access. If you're running a proper server, not all administrators should have access to source code. If an administrator wants to make a modification without asking the developer to modify the source code, resource is very useful. That's the point of having resource if you haven't realized.

On top of the convenience of using resource, it's also more organized to keep data such as skill stats in resource. It makes it easier to modify skills in the future because you don't have to check both the source multipliers and the resource stats.

That being said, it would be best if all skill multipliers were done in either resource scripting(such as lua) or static resource data. The v15 source does indeed have damage logic in source, which is inconvenient for production.
xMootie is offline  
Thanks
2 Users
Old 11/16/2012, 21:48   #10
 
elite*gold: 0
Join Date: Nov 2012
Posts: 104
Received Thanks: 48
It's for local server, the access to source is not present ^^

I agree, it would be best, but it's more practice i think to do that with a multiplier in source.
WinterWave is offline  
Reply


Similar Threads Similar Threads
Lvl ,Fertigkeiten u. Meso verdien Guide/Helpfull Train, Skill a. gain Mesos Guide
01/05/2012 - MapleStory - 1 Replies
Lvl Plätze von Lvl 10-200 Lvl 0 - 10 = Anfangs / Tutorial Quests^ Lvl 10 - 18 Blaue Schleifen Schweine rechts von Nautilus. Lvl 18-25 Golems / Mix Golems in der nähe von Henesys Lvl 25-30 Aligatoren in der nähe von Kerningstadt Lvl 30-35 Pilzschloss Quests Lvl 30-50 Karneval Party Quest Lvl 35-50 CDs im Kerningstadt Einkaufszentrum Lvl 45-55 Drachen im Schläfrigen Wald
[GUIDE] How to Skill Guide für alle Klassen (Teil 1/2 Krieger und Ninjas)
12/23/2010 - Metin2 Guides & Templates - 42 Replies
So hier ist mein erster Guide :cool: hoffe er gefällt euch :D 1. Der Krieger 1.1 Der Körper Krieger Die Vorteile des Körper-Kriegers ( KK ) sind Schnelligkeit, und der Dmg den dieser Char reinzimmern kann.
[GUIDE] How to Skill Guide für alle Klassen (Teil 1/2 Krieger und Ninjas)
06/20/2010 - Metin2 Guides & Templates - 3 Replies
So hier ist mein erster Guide hoffe er gefällt euch 1. Der Krieger 1.1 Der Körper Krieger Die Vorteile des Körper-Kriegers ( KK ) sind Schnelligkeit, und der Dmg den dieser Char reinzimmern kann.
[Guide]My Guide How Add Skill Ninja in Client 5065
07/14/2009 - CO2 PServer Guides & Releases - 9 Replies
Hello All Now Your Need Skill Ninja in Client 5065 My followers can Talk My On Yahoo [email protected] Now For Your Guilde My in Yahoo How Activation Katana And Tilmsian in Client 5065......



All times are GMT +1. The time now is 15:45.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.