No categories assigned

LUA:GetSpell


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