GilcirithElensar.lua 962 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/Castleview/GilcirithElensar.lua
  3. Script Purpose : Gilcirith Elensar
  4. Script Author : Scatman
  5. Script Date : 2009.10.03
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericVoiceOvers.lua")
  9. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  10. function spawn(NPC)
  11. SetInfoStructString(NPC, "action_state", "ponder")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. if GetFactionAmount(Spawn,11) <0 then
  19. FactionChecking(NPC, Spawn, faction)
  20. else
  21. conversation = CreateConversation()
  22. -- PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gilcirith_elensar/qey_village04/newbie_path_froglok/gilcirithelensar004.mp3", "", "", 259212641, 3674286430) Doesn't Play.
  23. GenericHail(NPC, Spawn)
  24. AddConversationOption(conversation, "Thank you.")
  25. StartConversation(conversation, NPC, Spawn, "Welcome, traveler.")
  26. end
  27. end