9
3

JanaWindstream.lua 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. conversation = CreateConversation()
  17. if HasCompletedQuest(Spawn, ATaskForDavyn) then
  18. CartTurnUpAnything(NPC, Spawn, conversation)
  19. elseif HasQuest(Spawn, ATaskForDavyn) then
  20. if GetQuestStep(Spawn, ATaskForDavyn) == 2 then
  21. VisitScribe(NPC, Spawn, conversation)
  22. elseif GetQuestStep(Spawn, ATaskForDavyn) > 2 then
  23. CartTurnUpAnything(NPC, Spawn, conversation)
  24. else
  25. ThatsRight(NPC, Spawn)
  26. end
  27. else
  28. ThatsRight(NPC, Spawn)
  29. end
  30. end
  31. function ThatsRight(NPC, Spawn)
  32. Say(NPC, "That's Right! Everything you need can be found in the Scribe's Shop!", Spawn)
  33. end
  34. function CartTurnUpAnything(NPC, Spawn, conversation)
  35. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jana_windstream/qey_village05/quests/jana_windstream/jana_windstream004.mp3", "", "", 708291417, 3807957296, Spawn)
  36. if (HasCompletedQuest(Spawn, ATaskForDavyn)) or (HasQuest(Spawn, ATaskForDavyn) and (GetQuestStep(Spawn, ATaskForDavyn) == 5 or GetQuestStep(Spawn, ATaskForDavyn) == 6)) then
  37. AddConversationOption(conversation, "Yes, it led me to the rabid wolf.", "GoodStillBreathing")
  38. end
  39. AddConversationOption(conversation, "It may have.")
  40. StartConversation(conversation, NPC, Spawn, "Did the cart turn up anything?")
  41. end
  42. function GoodStillBreathing(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. AddConversationOption(conversation, "I agree.")
  46. StartConversation(conversation, NPC, Spawn, "Well, it's good to see you still breathing!")
  47. end
  48. function VisitScribe(NPC, Spawn, conversation)
  49. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jana_windstream/qey_village05/quests/jana_windstream/jana_windstream001.mp3", "", "", 792742459, 2967032366, Spawn)
  50. AddConversationOption(conversation, "Taval Zane said you may know about a rabid wolf that was near here last night.", "dlg_18_1")
  51. AddConversationOption(conversation, "Not today, goodbye!")
  52. StartConversation(conversation, NPC, Spawn, "On your way to visit the scribe?")
  53. end
  54. function dlg_18_1(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. conversation = CreateConversation()
  57. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jana_windstream/qey_village05/quests/jana_windstream/jana_windstream002.mp3", "", "", 4178186239, 2300907299, Spawn)
  58. AddConversationOption(conversation, "Did you see it?", "NoIDidntSeeIt")
  59. AddConversationOption(conversation, "I will return later to discuss this.")
  60. StartConversation(conversation, NPC, Spawn, "Oh, yes that makes sense.")
  61. end
  62. function NoIDidntSeeIt(NPC, Spawn)
  63. SetStepComplete(Spawn, ATaskForDavyn, 2)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jana_windstream/qey_village05/quests/jana_windstream/jana_windstream003.mp3", "", "", 263260883, 1804076359, Spawn)
  67. AddConversationOption(conversation, "Thanks, I appreciate it.")
  68. 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.")
  69. end