9
3

JanaWindstream.lua 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. --[[
  2. Script Name : SpawnScripts/WillowWood/JanaWindstream.lua
  3. Script Purpose : Jana Windstream
  4. Script Author : Scatman
  5. Script Date : 2009.09.15
  6. Script Notes : Updated by Jabantiz (4/21/2017)
  7. --]]
  8. local ATaskForDavyn = 215
  9. dofile("SpawnScripts/Generic/EcologyEmotes.lua")
  10. function spawn(NPC)
  11. EcologyEmotes(NPC,Spawn)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. if HasCompletedQuest(Spawn, ATaskForDavyn) then
  20. CartTurnUpAnything(NPC, Spawn, conversation)
  21. elseif HasQuest(Spawn, ATaskForDavyn) then
  22. if GetQuestStep(Spawn, ATaskForDavyn) == 2 then
  23. VisitScribe(NPC, Spawn, conversation)
  24. elseif GetQuestStep(Spawn, ATaskForDavyn) > 2 then
  25. CartTurnUpAnything(NPC, Spawn, conversation)
  26. else
  27. ThatsRight(NPC, Spawn)
  28. end
  29. else
  30. ThatsRight(NPC, Spawn)
  31. end
  32. end
  33. function ThatsRight(NPC, Spawn)
  34. Say(NPC, "That's Right! Everything you need can be found in the Scribe's Shop!", Spawn)
  35. end
  36. function CartTurnUpAnything(NPC, Spawn, conversation)
  37. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jana_windstream/qey_village05/quests/jana_windstream/jana_windstream004.mp3", "", "", 708291417, 3807957296, Spawn)
  38. if (HasCompletedQuest(Spawn, ATaskForDavyn)) or (HasQuest(Spawn, ATaskForDavyn) and (GetQuestStep(Spawn, ATaskForDavyn) == 5 or GetQuestStep(Spawn, ATaskForDavyn) == 6)) then
  39. AddConversationOption(conversation, "Yes, it led me to the rabid wolf.", "GoodStillBreathing")
  40. end
  41. AddConversationOption(conversation, "It may have.")
  42. StartConversation(conversation, NPC, Spawn, "Did the cart turn up anything?")
  43. end
  44. function GoodStillBreathing(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. AddConversationOption(conversation, "I agree.")
  48. StartConversation(conversation, NPC, Spawn, "Well, it's good to see you still breathing!")
  49. end
  50. function VisitScribe(NPC, Spawn, conversation)
  51. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jana_windstream/qey_village05/quests/jana_windstream/jana_windstream001.mp3", "", "", 792742459, 2967032366, Spawn)
  52. AddConversationOption(conversation, "Taval Zane said you may know about a rabid wolf that was near here last night.", "dlg_18_1")
  53. AddConversationOption(conversation, "Not today, goodbye!")
  54. StartConversation(conversation, NPC, Spawn, "On your way to visit the scribe?")
  55. end
  56. function dlg_18_1(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jana_windstream/qey_village05/quests/jana_windstream/jana_windstream002.mp3", "", "", 4178186239, 2300907299, Spawn)
  60. AddConversationOption(conversation, "Did you see it?", "NoIDidntSeeIt")
  61. AddConversationOption(conversation, "I will return later to discuss this.")
  62. StartConversation(conversation, NPC, Spawn, "Oh, yes that makes sense.")
  63. end
  64. function NoIDidntSeeIt(NPC, Spawn)
  65. SetStepComplete(Spawn, ATaskForDavyn, 2)
  66. FaceTarget(NPC, Spawn)
  67. conversation = CreateConversation()
  68. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jana_windstream/qey_village05/quests/jana_windstream/jana_windstream003.mp3", "", "", 263260883, 1804076359, Spawn)
  69. AddConversationOption(conversation, "Thanks, I appreciate it.")
  70. StartConversation(conversation, NPC, Spawn, "No, I didn't see it. But when I got here this morning, the cart over there -- on the northern side of the scribe shop -- looked like someone, or something, had gotten in to it. You might want to check that out.")
  71. end