AliceSwamprunner.lua 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/AliceSwamprunner.lua
  3. Script Purpose : Alice Swamprunner
  4. Script Author : theFoof
  5. Script Date : 2013.09.02
  6. Script Notes :
  7. --]]
  8. local KestrelPie = 90
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, KestrelPie)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if not HasCompletedQuest(Spawn, KestrelPie) and not HasQuest(Spawn, KestrelPie) then
  19. PlayFlavor(NPC, "alice_swamprunner/halas/new_halas/alice_swamprunner/alice_swamprunner_001.mp3", "", "", 3199488336, 2249135127, Spawn)
  20. AddConversationOption(conversation, "Nice to meet you Alice, I'm " .. GetName(Spawn) .. ".", "Quest1Chat_1")
  21. StartConversation(conversation, NPC, Spawn, "Hello stranger! Welcome to Ravens' Roost. You can call me Alice Swamprunner.")
  22. elseif GetQuestStep(Spawn, KestrelPie) == 1 or GetQuestStep(Spawn, KestrelPie) == 2 then
  23. AddConversationOption(conversation, "Where can I find the kestrels and the ice shrooms?", "Quest1Chat_4")
  24. StartConversation(conversation, NPC, Spawn, "Have you brought me the ingredients?")
  25. elseif GetQuestStep(Spawn, KestrelPie) == 3 then
  26. AddConversationOption(conversation, "I have the meat and shrooms that you requested.", "Quest1Chat_5")
  27. StartConversation(conversation, NPC, Spawn, "Have you brought me the ingredients?")
  28. elseif GetQuestStep(Spawn, KestrelPie) == 4 then
  29. PlayFlavor(NPC, "", "Well go on, try one!", "beckon", 0, 0, Spawn)
  30. else
  31. PlayFlavor(NPC, "", "Thanks for your help with the kestrel pot pie.", "thanks", 0, 0, Spawn)
  32. end
  33. end
  34. function Quest1Chat_1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. PlayFlavor(NPC, "alice_swamprunner/halas/new_halas/alice_swamprunner/alice_swamprunner_003.mp3", "", "", 1636835603, 1296919818, Spawn)
  38. AddConversationOption(conversation, "I can always find time to help if help is needed.", "Quest1Chat_2")
  39. StartConversation(conversation, NPC, Spawn, "A pleasure. Are you busy?")
  40. end
  41. function Quest1Chat_2(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayFlavor(NPC, "alice_swamprunner/halas/new_halas/alice_swamprunner/alice_swamprunner_004.mp3", "", "", 3609415990, 2721638648, Spawn)
  45. AddConversationOption(conversation, "Kestrels are no problem for me.", "Quest1Chat_3")
  46. StartConversation(conversation, NPC, Spawn, "I am making my kestrel pot pie for the New Halas City Festival. The problem is, I'm not a hunter and the downy kestrels are already giving the guards a hard time so I cannot imagine how I would fare with the birds.")
  47. end
  48. function Quest1Chat_3(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. conversation = CreateConversation()
  51. PlayFlavor(NPC, "alice_swamprunner/halas/new_halas/alice_swamprunner/alice_swamprunner_005.mp3", "", "", 3894141515, 2250215460, Spawn)
  52. AddConversationOption(conversation, "Sure, I don't mind the exercise.", "OfferKestrelPie")
  53. AddConversationOption(conversation, "I'm not running all over New Halas to help you cook dinner.")
  54. StartConversation(conversation, NPC, Spawn, "Well, if you are going to collect kestrel meat, would you mind picking me up some ice shrooms? You can find the ice shrooms in the cave leading to the Erollis Dock, and the kestrels are at the south entrance to New Halas.")
  55. end
  56. function Quest1Chat_4(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. AddConversationOption(converstion, "I shall return once I have collected the ingredients.")
  60. StartConversation(conversation, NPC, Spawn, "You can find the ice shrooms in the cave leading to the Erollis Dock, and the kestrels are at the south entrance to New Halas.")
  61. end
  62. function Quest1Chat_5(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. AddConversationOption(conversation, "It sounds yummy.", "Quest1Chat_6")
  66. StartConversation(conversation, NPC, Spawn, "I have already prepared the pie and crust and the rest of the gravy filling. Now to grill up the meat and ice shrooms and add them.")
  67. end
  68. function Quest1Chat_6(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. AddConversationOption(conversation, "I can't wait.", "Quest1Chat_7")
  72. StartConversation(conversation, NPC, Spawn, "It is indeed. Now to cook it and it will be ready to eat.")
  73. end
  74. function Quest1Chat_7(NPC, Spawn)
  75. AddSpawnAccess(GetSpawn(NPC, 4701845), Spawn)
  76. SetStepComplete(Spawn, KestrelPie, 3)
  77. FaceTarget(NPC, Spawn)
  78. conversation = CreateConversation()
  79. AddConversationOption(conversation, "I will! Thanks, Alice.")
  80. StartConversation(conversation, NPC, Spawn, "There, finished! Go ahead, take a slice!")
  81. end
  82. function OfferKestrelPie(NPC, Spawn)
  83. OfferQuest(NPC, Spawn, KestrelPie)
  84. end