No categories assigned

LUA:ApplySpellVisual

Revision as of 20:54, 15 October 2012 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: ApplySpellVisual() = Makes the given spawn play the given spell animation. ==== Syntax ==== ApplySpellVisual(param1, param2) ==== Parameters ==== ; Required ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: ApplySpellVisual()

Makes the given spawn play the given spell animation.


Syntax

ApplySpellVisual(param1, param2)


Parameters

Required - param1 (Spawn), param2 (int32)
param1 is the spawn to play the animation
param2 is the animation id to play


Usage

function hailed(NPC, Spawn)
    ApplySpellVisual(NPC, 869)
end

The NPC will play the falling coins animation used for the lotto.


Notes

The id given by param2 are the id's in reference_spell_effects table in the DB.