9
3

YolaSindlefop.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/YolaSindlefop.lua
  3. Script Purpose : Yola Sindlefop
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local YolaPicnic = 5442
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if GetFactionAmount(Spawn,11)<0 then
  17. FaceTarget(NPC, Spawn)
  18. PlayFlavor(NPC,"","","glare",0,0,Spawn)
  19. else
  20. Dialog.New(NPC, Spawn)
  21. Dialog.AddDialog("Hello there! Isn't this a lovely spot? It's not the vale, but I was too young to really remember much when we left anyway.")
  22. Dialog.AddVoiceover("voiceover/english/yola_sindlefop/qey_village06/yolasindlefop000.mp3", 2042293032, 669099653)
  23. Dialog.AddOption("Here is your food order!", "HandOver")
  24. Dialog.AddOptionRequirement(REQ_QUEST_ON_STEP, YolaPicnic , 1)
  25. Dialog.AddOption("Sorry to hear that.")
  26. Dialog.Start()
  27. end
  28. end
  29. function HandOver(NPC, Spawn)
  30. SetStepComplete(Spawn, YolaPicnic, 1)
  31. FaceTarget(NPC, Spawn)
  32. Dialog.New(NPC, Spawn)
  33. Dialog.AddDialog("Oh, I'm so glad he didn't forget! That Bregun! He's always doing the right thing at the right time! And thank you for delivering it! I'm starving!")
  34. Dialog.AddVoiceover("voiceover/english/yola_sindlefop/qey_village06/yolasindlefop001.mp3", 3230142409, 154316341)
  35. PlayFlavor(NPC, "", "", "thank", 0, 0, Spawn)
  36. Dialog.AddOption("Enjoy.")
  37. Dialog.Start()
  38. PlayFlavor(NPC, "", "", "sit_exit", 0, 0, Spawn)
  39. end