mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
30 lines
No EOL
701 B
Lua
Executable file
30 lines
No EOL
701 B
Lua
Executable file
--[[
|
|
Script Name : SpawnScripts/CrowsTomb/smashedbarrel2.lua
|
|
Script Author : Premierio015
|
|
Script Date : 2021.10.03 06:10:25
|
|
Script Purpose :
|
|
:
|
|
--]]
|
|
|
|
function spawn(NPC)
|
|
SetPlayerProximityFunction(NPC, 10, "InRange", Spawn)
|
|
end
|
|
|
|
function InRange(NPC, Spawn)
|
|
local zone = GetZone(Spawn)
|
|
local taskmaster = GetSpawnByLocationID(zone, 434503)
|
|
if GetTempVariable(taskmaster, "spoken") == "2" then
|
|
SpawnSet(NPC, "show_command_icon", 1)
|
|
SpawnSet(NPC, "display_hand_icon", 1)
|
|
end
|
|
end
|
|
|
|
function casted_on(NPC, Spawn, SpellName)
|
|
if SpellName == 'clean' then
|
|
Despawn(NPC)
|
|
end
|
|
end
|
|
|
|
function respawn(NPC)
|
|
spawn(NPC)
|
|
end |