RiviceaGoldwind.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/RiviceaGoldwind.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.04 06:09:40
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. Dialog.New(NPC, Spawn)
  14. Dialog.AddDialog("Oh, hi. Don't mind me, I'm just looking around for interesting items to add to my collection.")
  15. choice = MakeRandomInt(1,3)
  16. if choice == 1 then
  17. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_1_1011.mp3", 0, 0)
  18. elseif choice ==2 then
  19. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_2_1011.mp3", 0, 0)
  20. elseif choice ==3 then
  21. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_3_1011.mp3", 0, 0)
  22. end
  23. PlayFlavor(NPC, "", "", "hello", 0,0, Spawn)
  24. if HasCollectionsToHandIn(Spawn) then
  25. Dialog.AddOption("I have a collection for you.", "TurnIn")
  26. end
  27. Dialog.AddOption("What kind of collections?","Collections")
  28. Dialog.AddOption("Good bye.")
  29. Dialog.Start()
  30. end
  31. function respawn(NPC)
  32. spawn(NPC)
  33. end
  34. function Collections(NPC,Spawn)
  35. FaceTarget(NPC, Spawn)
  36. Dialog.New(NPC, Spawn)
  37. PlayFlavor(NPC, "", "", "nod", 0,0, Spawn)
  38. Dialog.AddDialog("Why, any sort of collection. There's so much out there to find! Just open your eyes and peek under the rocks. If you find anything interesting, let me have a look. Collecting is the only way I seem to relive my youth!")
  39. Dialog.AddOption("I'll keep that in mind.")
  40. Dialog.Start()
  41. end
  42. function TurnIn(NPC,Spawn)
  43. HandInCollections(Spawn)
  44. FaceTarget(NPC, Spawn)
  45. Dialog.New(NPC, Spawn)
  46. PlayFlavor(NPC, "", "", "thanks", 0,0, Spawn)
  47. Dialog.AddDialog("Thank you so much! This will make a fantastic addition to my collections! Please take this for helping me.")
  48. Dialog.AddOption("Okay, bye!")
  49. Dialog.Start()
  50. end