mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
627 B
627 B
Function: CastSpell(target, spell_id, spell_tier, caster, custom_cast_time)
Description:
Casts a spell on the specified target with the spell_id and spell_tier specified.
Parameters:
target(Spawn) - Spawn object representingtarget.spell_id(uint32) - Integer valuespell_id.spell_tier(uint8) - Integer valuespell_tier.caster(Spawn) - Spawn object representingcaster.custom_cast_time(uint16) - Integer valuecustom_cast_time.
Returns: None.
Example:
-- From ItemScripts/abasicfirework.lua
function used(Item, Player)
CastSpell(Player, 5003, 1)
end