Jump to content

Recommended Posts

Hi, I'm doing a test and i would like to add a new bonus here: mysql player/skill_proto

JT4bbAw.png

there are almost all bonuses, i would like to add a bonus like strong vs sura, or war or animal

Do you know how i can do it? Thank you

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/22055-add-bonus-in-skill_proto-mysql/
Share on other sites

  • Contributor

You can do two things, the first with the SQL designer you can add the variable within the field and the second is that you can also design, place the field as VARCHAR type and then simply add the names you want.

The difference is that if you leave it that way, you should look at the order of the values equally from the server because it will send numbers.

After doing this, you go to skill.cpp and look for:

 

struct SPointOnType
{
	const char * c_pszName;
	int		 iPointOn;
} kPointOnTypes[] = {
And before that:

 

	{ "\n",		POINT_NONE		},
};

You add the bonus you want, for example:
 

{ "RESIST_SHAMAN",     POINT_RESIST_SHAMAN    },



And in your Table replace HP for RESIST_SHAMAN and gg.
Remember you can only use bonus, if you like HP + other, i advise you to use setFlag and insert code, it's more or less as easy, just add an Affect
 

  • Love 2

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.