Difference between revisions of "LUA:GetSpell"

(Created page with "{{LUAFunction |Name = GetSpell |Description = Get spell |Param1 = int32 |Param1Desc = is the spell id |Param2 = int8 |Param2Desc = is the tier of the spell |Param3 = string |P...")
 
(No difference)

Latest revision as of 11:07, 19 June 2022


LUA:AllFunctions - GetSpell

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Get spell

Syntax

GetSpell(param1, param2, param3)

Parameters

Required - param1 (int32), param2 (int8), param3 (string)
param1 is the spell id
param2 is the tier of the spell
param3 is the spell custom script file.


Example

function hailed(NPC, Player)
	GetSpell(1, 1, custom.lua)
end

An NPC with this script get the spell with an id of 1 and the tier of 1 with a custom script named custom.lua