mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
32 lines
690 B
Lua
Executable file
32 lines
690 B
Lua
Executable file
--[[
|
|
Script Name : SpawnScripts/Castleview/Cilindari.lua
|
|
Script Purpose : Cilindari <Alchemist>
|
|
Script Author : Scatman
|
|
Script Date : 2009.10.03
|
|
Script Notes :
|
|
--]]
|
|
|
|
dofile("SpawnScripts/Generic/GenericAlchemistVoiceOvers.lua")
|
|
|
|
function spawn(NPC)
|
|
SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
|
|
SetInfoStructString(NPC, "action_state", "alchemy_idle")
|
|
end
|
|
|
|
function respawn(NPC)
|
|
spawn(NPC)
|
|
end
|
|
|
|
function InRange(NPC, Spawn)
|
|
if math.random(0, 100) <= 25 then
|
|
GenericAlchemistHail(NPC, Spawn)
|
|
end
|
|
end
|
|
|
|
function LeaveRange(NPC, Spawn)
|
|
end
|
|
|
|
function hailed(NPC, Spawn)
|
|
FaceTarget(NPC, Spawn)
|
|
GenericAlchemistHail(NPC, Spawn)
|
|
end
|