Jump to content

Recommended Posts

Hello guys,

As the title says, I'm trying to find a way to halve buffs' value when given to someone else other than me (the caster - mage). For example if my Natures Enchantment normally offers 100AV, I want to keep the entire value for mages (100AV) and half (50AV) for anyone else.

In my limited coding knowledge, I should create a SKILL_FLAG, but char_skill.cpp is still a bit confusing for a newbie. Official did something similar in their 17.5 Update afaik, so if anyone has any idea about how to implement such a flag, it would be wonderful. 

Thanks!

 

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Premium

No need for flags or anything, it's just simple math:
 

(buffvalue)*(0.5+0.5*isself)

isself should be a variable set in skill.cpp already, if not:

poly.SetVar("isself", (bool)(victim == ch));

 

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.