Jump to content

Little Stuff on Give Exp


Recommended Posts

Hi metin 2 dev , yesterday i was checking how give_exp works.

 

And i founded a lot of thing that you can manage for your server.

 

First of all you have to open char_battle.cpp and find

static void GiveExp(LPCHARACTER from, LPCHARACTER to, int iExp)

Well in this function you have all about the single attribution of exp on character.

 

 

-1)Change 10% max exp from mob.

 

Found this:

iExp = MIN(to->GetNextExp() / 10, iExp);

and replace with this if you want to give more of 10%

iExp = MIN(to->GetNextExp() / 5, iExp);

   you can replace 5 with all numbers < 10.

 

If you want to give less then 10% max exp replace

iExp = MIN(to->GetNextExp() / 20, iExp);

  you can replace 20 with all numbers > 10.

 

But there is a limit on max exp from mob with the self level.

iExp = MIN(to->GetNextExp() / 1, iExp);

How to solve this?

 

Just comment the line =D.

 

 

-2)Change value of exp ring and his exp rate.

   Found

if (to->IsEquipUniqueItem(UNIQUE_ITEM_DOUBLE_EXP))
			iExp += iExp * 50 / 100;

Change UNIQUE_ITEM_DOUBLE_EXP with whatever value you want or open unique_item.h and change value

to UNIQUE_ITEM_DOUBLE_EXP

Change  50 with whatever value you want

 

Ex:

if (to->IsEquipUniqueItem(70006))
			iExp += iExp * 75 / 100;
  • Love 6
Link to comment
Share on other sites

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.