Jump to content

Add bonus in skill_proto mysql


Recommended Posts

  • 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
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.