Difference between revisions of "LUA:ApplySpellVisual"

(Created page with "= LUA Functions: ApplySpellVisual() = Makes the given spawn play the given spell animation. ==== Syntax ==== ApplySpellVisual(param1, param2) ==== Parameters ==== ; Required ...")
 
 
Line 1: Line 1:
= LUA Functions: ApplySpellVisual() =
+
{{LUAFunction
Makes the given spawn play the given spell animation.
+
|Name = ApplySpellVisual
 
+
|Description = Makes the given spawn play the given spell animation.
 
+
|Param1 = Spawn
==== Syntax ====
+
|Param1Desc = is the spawn to play the animation
ApplySpellVisual(param1, param2)
+
|Param2 = int32
 
+
|Param2Desc = is the animation id to play
 
+
|Example =
==== Parameters ====
 
; Required - ''param1'' (Spawn), ''param2'' (int32)
 
: ''param1'' is the spawn to play the animation
 
: ''param2'' is the animation id to play
 
 
 
 
 
==== Usage ====
 
 
<pre>
 
<pre>
 
function hailed(NPC, Spawn)
 
function hailed(NPC, Spawn)
Line 19: Line 12:
 
end
 
end
 
</pre>
 
</pre>
 
+
|ExampleDesc = The NPC will play the falling coins animation used for the lotto.
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.
 
+
}}
 
 
== Notes ==
 
The id given by ''param2'' are the id's in reference_spell_effects table in the DB.
 

Latest revision as of 12:07, 30 January 2021


LUA:AllFunctions - ApplySpellVisual

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


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


Example

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.