mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
30 lines
No EOL
694 B
Lua
Executable file
30 lines
No EOL
694 B
Lua
Executable file
--[[
|
|
Script Name : SpawnScripts/Commonlands/dervorders.lua
|
|
Script Author : Premierio015
|
|
Script Date : 2021.05.20 03:05:03
|
|
Script Purpose :
|
|
:
|
|
--]]
|
|
|
|
local ConfusionIsTheKey = 444
|
|
|
|
function spawn(NPC)
|
|
SetPlayerProximityFunction(NPC, 15, "SpawnAccess")
|
|
end
|
|
|
|
function SpawnAccess(NPC, Spawn)
|
|
if GetQuestStep(Spawn, ConfusionIsTheKey) == 1 then
|
|
SpawnSet(NPC, "display_hand_icon", 1)
|
|
SpawnSet(NPC, "show_command_icon", 1)
|
|
end
|
|
end
|
|
|
|
function casted_on(NPC, Spawn, SpellName)
|
|
if SpellName == 'Switch the Orders' then
|
|
SetStepComplete(Spawn, ConfusionIsTheKey, 1)
|
|
end
|
|
end
|
|
|
|
function respawn(NPC)
|
|
spawn(NPC)
|
|
end |