eq2emu-content/SpawnScripts/Castleview/GilcirithElensar.lua
2024-10-26 11:37:28 +00:00

31 lines
No EOL
962 B
Lua
Executable file

--[[
Script Name : SpawnScripts/Castleview/GilcirithElensar.lua
Script Purpose : Gilcirith Elensar
Script Author : Scatman
Script Date : 2009.10.03
Script Notes :
--]]
dofile("SpawnScripts/Generic/GenericVoiceOvers.lua")
dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
function spawn(NPC)
SetInfoStructString(NPC, "action_state", "ponder")
end
function respawn(NPC)
spawn(NPC)
end
function hailed(NPC, Spawn)
FaceTarget(NPC, Spawn)
if GetFactionAmount(Spawn,11) <0 then
FactionChecking(NPC, Spawn, faction)
else
conversation = CreateConversation()
-- PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gilcirith_elensar/qey_village04/newbie_path_froglok/gilcirithelensar004.mp3", "", "", 259212641, 3674286430) Doesn't Play.
GenericHail(NPC, Spawn)
AddConversationOption(conversation, "Thank you.")
StartConversation(conversation, NPC, Spawn, "Welcome, traveler.")
end
end