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 04:40

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

Advertisement



[Release] Leveling Pets w/ Mob Kills

Discussion on [Release] Leveling Pets w/ Mob Kills within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
Naltalah's Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 308
Received Thanks: 372
[Release] Leveling Pets w/ Mob Kills

Hi again.

After a question once came up on how to do it I tried it myself and I'm actually using this system myself.

Basically what this system does: Pet EXP no longer goes up automatically but instead the player has to kill mobs for pet exp. There's a lot of customization which can be done to change how much exp the pet gets. You can find it in the comments.

DpClient.cpp

Mover.cpp

Mover.h

MoverSkill.cpp Only add this if you want to add Pet-Tonics

AttackArbiter.cpp

DPSrvr.cpp Only implement this, if you dont want eggs to be leveled by using Pet Feed


VersionCommon.h (Neuz)
PHP Code:
#define        __SYS_PETLEVELING_MOBKILL 
VersionCommon.h (WorldServer)
PHP Code:
#define        __SYS_PETLEVELING_MOBKILL
#ifdef        __SYS_PETLEVELING_MOBKILL
#define        PET_BASE_EXP 25.0f
#endif 
You can add the Tonics yourself, just create items with the following Item Kinds: IK1_SYSTEM IK2_SYSTEM IK3_SCROLL

Explanation on modifiers:

In the VersionCommon.h the Base EXP for the pet is defined. It is 25.0f is 0.025% Pet EXP.

Increase this on your behalf, since there are many multiplicators you can change in the Mover.cpp

Just go to the function AddPetExpOnKill and take a look at the values there.

Currently it is set to 5% Pet EXP for a boss kill, x1.2 EXP for a giant kill, x1.2 EXP if the monster is 10 or more levels above the player, x1.25 EXP for dungeon mobs, +25% for the weak Pet Tonics and +50% for the strong Tonic.

All fine and dandy, where you can really make exp explode is what comes next: Differentiating pet levels. Currently Eggs and D-Level get 12.5x Base-EXP, C-Level gets 7x, B-Level 3.5x and A-Level gets base-exp.

Please note that the values for the base-exp can be changed indiviually depending on if the player is in a dungeon or not.

Do whatever you want with this. As always, feedback on how to improve the code is welcome.
I bet there are some flaws or possible optimizations, I'd be glad to hear them.
Naltalah is offline  
Thanks
13 Users
Old   #2
 
elite*gold: 0
Join Date: Oct 2011
Posts: 41
Received Thanks: 1
Nice, thank you for release
comcem is offline  
Old   #3
 
elite*gold: 0
Join Date: Jul 2018
Posts: 225
Received Thanks: 46
Great release , thank you .
LookAtTheFlower is offline  
Old   #4
 
Naltalah's Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 308
Received Thanks: 372
Sorry for the necro, updated a bug in AttackArbiter.cpp
Naltalah is offline  
Thanks
2 Users
Old   #5
 
Groxy101's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 21
Received Thanks: 9
Quote:
Originally Posted by Naltalah View Post
Sorry for the necro, updated a bug in AttackArbiter.cpp
What did you change? I already had your code implemented, and it's exactly the same. The only thing you changed is where to add the code (before, after). But that's the same spot..
Groxy101 is offline  
Old   #6
 
Naltalah's Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 308
Received Thanks: 372
Quote:
Originally Posted by Groxy101 View Post
What did you change? I already had your code implemented, and it's exactly the same. The only thing you changed is where to add the code (before, after). But that's the same spot..
In the original release, the AddPetExpOnKill was added in OnDiedPVP, rather than OnDied in AttackArbiter.cpp
Naltalah is offline  
Old   #7
 
Groxy101's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 21
Received Thanks: 9
Quote:
Originally Posted by Naltalah View Post
In the original release, the AddPetExpOnKill was added in OnDiedPVP, rather than OnDied in AttackArbiter.cpp
Ahh... Now I understand. I already had it added on OnDied, instead of OnDiedPVP, because they have the same code you told me to search for in your original post.

Maybe add: search for "void CAttackArbiter::OnDied()" at the AttackArbiter.cpp part.
Groxy101 is offline  
Reply


Similar Threads Similar Threads
[Selling] New Season ★ Power Leveling 1-70 Paragon Leveling EU/US ★ Trusted ★ [Hand Leveling]
09/01/2015 - Diablo 3 Trading - 12 Replies
SEASON IV NA CHAR http://i.imgur.com/AeksmvG.png EU CHAR http://i.imgur.com/K7TC8U5.jpg http://i.imgur.com/mpVjYry.png
[HOW TO] Mob proto.xml Mob Names - Mob Proto.txt Help me
03/25/2015 - Metin2 Private Server - 2 Replies
Hi Metin2 Dev Mob proto.xml How to Mob Names.txt - Mob Proto.txt Converts ? Help Me :( How Mob Names.txt - Mob Proto.txt ? help me :( <Mob vnum="34012" name="아기 팬더" locale_name="아기 팬더" type="1" rank="5" battle_type="0" level="1" size="0" gold_min="0" gold_max="0" exp="10" max_hp="120" regen_cycle="3" regen_percent="1" def="4" ai_flag="0" setRaceFlag="0" setImmuneFlag="43" st="0" dx="0" ht="0" iq="0" damage_min="0" damage_max="0" attack_speed="100" move_speed="100"...
[Selling] WoD 90-100 Power leveling, Profession Leveling, Battle Pet Leveling and Achievements
12/13/2014 - World of Warcraft Trading - 2 Replies
Power Leveling: Order - Price 90-100 - 50$ Profession Leveling: Order - Price Gathering Professions 1-700 - 30$ Gathering Professions 600-700 - 10$ Production Professions 1-700 - 80$ Production Professions 600-700 - 30$
WTS/T 200k kills, 90k kills, 30k kills Haven accounts.
01/28/2014 - Shaiya Trading - 8 Replies
1) AoL - 200k kills maxed mage set w/ 4x weapons 2x tops, everything fully rerolled, gets around 6.15k magic power, all weapons linked with pains, 2x 80 weapons, lv80 shield, cape, 3.15k def, 1.3k wis, 55k hp. 2) UoF - 90k kills - Clean account with 90k kills. 3) UoF - 30k kills - Clean account with 30k kills. Only taking offers, prefer donations for Shaiya Tactics



All times are GMT +1. The time now is 04:40.


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

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