You are viewing an old version of this page. Return to the latest version.
Version of 16:55, 15 October 2012 by I need to Update My Profile
Difference between revisions of "LUA:AddSkillBonus"
(Created page with "= LUA Functions: AddSkillBonus() = Adds a bonus to the given skill ==== Syntax ==== AddSkillBonus(param1, param2, param3) ==== Parameters ==== ; Required - ''param1'' (Spawn)...") |
|||
| Line 26: | Line 26: | ||
== Notes == | == Notes == | ||
''param2'' refers to the skills table in the DB. | ''param2'' refers to the skills table in the DB. | ||
| + | |||
| + | If this function is used in a spell script the target param (''param1'') will be overwritten by the code to use the spells targets. | ||
Revision as of 17:01, 15 October 2012
LUA Functions: AddSkillBonus()
Adds a bonus to the given skill
Syntax
AddSkillBonus(param1, param2, param3)
Parameters
- Required - param1 (Spawn), param2 (int32), param3 (sint32)
- param1 is the spawn receiving the bonus
- param2 is the skill id
- param3 is the bonus value
Usage
function cast(Caster, Target)
AddSkillBonus(Caster, 1, 15)
end
Adds 15 points to skill 1 to the caster of the spell.
Notes
param2 refers to the skills table in the DB.
If this function is used in a spell script the target param (param1) will be overwritten by the code to use the spells targets.