DaryannStormrider.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. --[[
  2. Script Name : SpawnScripts/Antonica/DaryannStormrider.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.27 09:08:45
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheBalanceOfLife = 5349
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, TheBalanceOfLife)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. if GetDeity(Spawn) == 1 then
  15. if not HasQuest(Spawn, TheBalanceOfLife) and not HasCompletedQuest(Spawn, TheBalanceOfLife) then
  16. Option1(NPC, Spawn)
  17. elseif GetQuestStep(Spawn, TheBalanceOfLife) == 1 then
  18. Quest_Progress(NPC, Spawn)
  19. elseif GetQuestStep(Spawn, TheBalanceOfLife) == 4 then
  20. Option4(NPC, Spawn)
  21. elseif HasCompletedQuest(Spawn, TheBalanceOfLife) then
  22. Quest_Finished(NPC, Spawn)
  23. end
  24. elseif GetDeity(Spawn) ~= 1 then
  25. PlayFlavor(NPC, "", "...", "", 0, 0, Spawn)
  26. Emote(NPC, "doesn't wish to speak with you.")
  27. end
  28. end
  29. function respawn(NPC)
  30. spawn(NPC)
  31. end
  32. function Option1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. local conversation = CreateConversation()
  35. PlayFlavor(NPC, "voiceover/english/daryann_stormrider/qey_village05/quests/daryann_stormrider/daryann001.mp3", "", "", 2350021449, 2306066877, Spawn)
  36. AddConversationOption(conversation, "Do you need help with anything?", "Option2")
  37. AddConversationOption(conversation, "Luckily, I am busy with other tasks. ")
  38. StartConversation(conversation, NPC, Spawn, "I watch over the woodlands and keep nature in balance. Sometimes it's an unpleasant and difficult task, but without hunters, the hunted would overrun our land.")
  39. end
  40. function Option2(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. local conversation = CreateConversation()
  43. PlayFlavor(NPC, "voiceover/english/daryann_stormrider/qey_village05/quests/daryann_stormrider/daryann002.mp3", "", "", 3412334991, 3636507740, Spawn)
  44. AddConversationOption(conversation, "Sounds like that would suit me well.", "Option3")
  45. AddConversationOption(conversation, "Maybe I'll come back later.")
  46. StartConversation(conversation, NPC, Spawn, "Each village has someone who decides which creatures' numbers need culling and what populations are stable. I'm the representative for Windstalker Village. If you wish to help me, I will gladly assign you some tasks.")
  47. end
  48. function Option3(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. local conversation = CreateConversation()
  51. PlayFlavor(NPC, "voiceover/english/daryann_stormrider/qey_village05/quests/daryann_stormrider/daryann003.mp3", "", "smile", 1849804125, 150143999, Spawn)
  52. AddConversationOption(conversation, "I will return.", "offer")
  53. StartConversation(conversation, NPC, Spawn, "Sometimes a population grows rapidly, and we must hunt weak and sickly creatures to ensure others in the population remain healthy. Other times, predators disrupt nature's balance. I need you to hunt sea turtles and darkclaw crabs near our shores and any red tail hawks you come across here in Antonica. Please return to me when you finish.")
  54. end
  55. function Quest_Progress(NPC, Spawn)
  56. PlayFlavor(NPC, "", "Good luck on your hunt, Gaikako.", "", 1689589577, 4560189, Spawn)
  57. end
  58. function Option4(NPC, Spawn)
  59. SetStepComplete(Spawn, TheBalanceOfLife, 4)
  60. FaceTarget(NPC, Spawn)
  61. local conversation = CreateConversation()
  62. PlayFlavor(NPC, "voiceover/english/daryann_stormrider/qey_village05/quests/daryann_stormrider/daryann010.mp3", "", "", 1284135083, 2776970357, Spawn)
  63. AddConversationOption(conversation, "Your request is done.", "Option5")
  64. StartConversation(conversation, NPC, Spawn, "Have you dealt with the creatures?")
  65. end
  66. function Option5(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. local conversation = CreateConversation()
  69. PlayFlavor(NPC, "voiceover/english/daryann_stormrider/qey_village05/quests/daryann_stormrider/daryann011.mp3", "", "", 1936168502, 3017543852, Spawn)
  70. AddConversationOption(conversation, "Thank you, Daryann.")
  71. StartConversation(conversation, NPC, Spawn, "Thank you for your services. You proved to be a valuable member of the community here in Windstalker Village. Good luck in your future endeavors. Please take this small token of our appreciation.")
  72. end
  73. function Quest_Finished(NPC, Spawn)
  74. PlayFlavor(NPC, "", "Thanks to your help. The populations in Antonica are somewhat stabilized. At least, for now.", "", 1689589577, 4560189, Spawn)
  75. end
  76. function offer(NPC, Spawn)
  77. OfferQuest(NPC, Spawn, TheBalanceOfLife)
  78. end