No categories assigned

LUA:ProcessSpell

LUA Functions: ProcessSpell()

Makes the given spawn cast on the given target using the spell list assigned in the DB


Syntax

ProcessSpell(param1, param2, param3)


Parameters

Required - param1 (Spawn), param2 (Spawn), param3 (float)
param1 is the spawn casting
param2 is the target
param3 is the distance between the two spawns

Usage

function hailed(NPC, Spawn)
    ProcessSpell(NPC, Spawn, GetDistance(NPC, Spawn))
end

This will make the spawn try to cast a spell on the player who hails it

Notes

Returns a bool, true if a spell started to be cast