9
3

OlgaMacleod.lua 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/OlgaMacleod.lua
  3. Script Purpose : Olga Macleod
  4. Script Author : theFoof
  5. Script Date : 2013.09.01
  6. Script Notes :
  7. --]]
  8. local FrozenChowder = 88
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, FrozenChowder)
  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, FrozenChowder) and not HasQuest(Spawn, FrozenChowder) then
  19. PlayFlavor(NPC, "olga_macleod/halas/new_halas/olga_macleod/olga_macleod_001.mp3", "", "", 183975505, 4113739209, Spawn)
  20. AddConversationOption(conversation, "I'm " .. GetName(Spawn) .. ", pleased to meet you.", "Quest1Chat_1")
  21. StartConversation(conversation, NPC, Spawn, "I'm Olga MacLeod, and you are?")
  22. elseif GetQuestStep(Spawn, FrozenChowder) == 1 or GetQuestStep(Spawn, FrozenChowder) == 2 then
  23. AddConversationOption(conversation, "Where can I find the halasian reeds and the frozen pincers?", "Quest1Chat_4")
  24. StartConversation(conversation, NPC, Spawn, "Did you collect the ingredients I asked for?")
  25. elseif GetQuestStep(Spawn, FrozenChowder) == 3 then
  26. AddConversationOption(conversation, "I did indeed.", "Quest1Chat_5")
  27. StartConversation(conversation, NPC, Spawn, "Did you collect the ingredients I asked for?")
  28. else
  29. PlayFlavor(NPC, "", "Thanks for helping me with the chowder!", "hello", 0, 0, Spawn)
  30. end
  31. end
  32. function Quest1Chat_1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. PlayFlavor(NPC, "olga_macleod/halas/new_halas/olga_macleod/olga_macleod_003.mp3", "", "", 2540192341, 2605234909, Spawn)
  36. AddConversationOption(conversation, "Can I get you something.", "Quest1Chat_2")
  37. StartConversation(conversation, NPC, Spawn, "Aye there. I'm on break from working at The Stone Hammer. It's a pity there isn't anything to eat.")
  38. end
  39. function Quest1Chat_2(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. conversation = CreateConversation()
  42. PlayFlavor(NPC, "olga_macleod/halas/new_halas/olga_macleod/olga_macleod_004.mp3", "", "", 902632382, 378214084, Spawn)
  43. AddConversationOption(conversation, "Really?", "Quest1Chat_3")
  44. StartConversation(conversation, NPC, Spawn, "No, the only thing that hits the spot on a day like this is my recipe for frozen pincer chowder. It's very delicious, I'm going to make it for the New Halas City Festival.")
  45. end
  46. function Quest1Chat_3(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. conversation = CreateConversation()
  49. PlayFlavor(NPC, "olga_macleod/halas/new_halas/olga_macleod/olga_macleod_005.mp3", "", "", 2856769449, 2240854922, Spawn)
  50. AddConversationOption(conversation, "I could gather them for you.", "OfferFrozenChowder")
  51. AddConversationOption(conversation, "What a pity.")
  52. StartConversation(conversation, NPC, Spawn, "Yes. I'd make it now, but I don't have time to go and gather the ingredients myself.")
  53. end
  54. function Quest1Chat_4(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. conversation = CreateConversation()
  57. AddConversationOption(conversation, "Thanks again, sometimes I forget these things!")
  58. StartConversation(conversation, NPC, Spawn, "The halasian reeds and the frozen pincers are down near the water's edge at the Erollis Dock, east of New Halas.")
  59. end
  60. function Quest1Chat_5(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. conversation = CreateConversation()
  63. AddConversationOption(conversation, "Here you go.", "Quest1Chat_6")
  64. StartConversation(conversation, NPC, Spawn, "Great, hand them over and I'll get to cooking!")
  65. end
  66. function Quest1Chat_6(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. conversation = CreateConversation()
  69. AddConversationOption(conversation, "It smells delicious", "Quest1Chat_7")
  70. StartConversation(conversation, NPC, Spawn, "Thank Marr this cooks up fast. I'll be able to have a bowl before I must get back to work.")
  71. end
  72. function Quest1Chat_7(NPC, Spawn)
  73. SetStepComplete(Spawn, FrozenChowder, 3)
  74. AddSpawnAccess(GetSpawn(NPC, 4701842), Spawn)
  75. FaceTarget(NPC, Spawn)
  76. conversation = CreateConversation()
  77. AddConversationOption(conversation, NPC, Spawn, "Thanks Olga!")
  78. StartConversation(conversation, NPC, Spawn, "There! Go ahead, ladle yourself some chowder.")
  79. end
  80. function OfferFrozenChowder(NPC, Spawn)
  81. OfferQuest(NPC, Spawn, FrozenChowder)
  82. end