GherranaCobbleblork.lua 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. --[[
  2. Script Name : SpawnScripts/ButcherblockMountains/GherranaCobbleblork.lua
  3. Script Purpose : Gherrana Cobbleblork
  4. Script Author : jakejp
  5. Script Date : 2018.06.07
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local FeathersForGherrana = 279
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, FeathersForGherrana)
  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 HasCompletedQuest(Spawn, FeathersForGherrana) == false and HasQuest(Spawn, FeathersForGherrana) == false and CanReceiveQuest(Spawn, FeathersForGherrana) then
  19. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1023.mp3", "", "", 0, 0, Spawn)
  20. AddConversationOption(conversation, "Excuse me?", "dlg_5_1")
  21. StartConversation(conversation, NPC, Spawn, "To fly about the heavens is all this gnome wants to do!")
  22. elseif GetQuestStep(Spawn, FeathersForGherrana) == 1 then
  23. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1023.mp3", "", "", 0, 0, Spawn)
  24. Say(NPC, "Feathers! I need more scavenger feathers!")
  25. elseif GetQuestStep(Spawn, FeathersForGherrana) == 2 then
  26. SetStepComplete(Spawn, FeathersForGherrana, 2)
  27. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  28. AddConversationOption(conversation, "Glad to be of help!")
  29. StartConversation(conversation, NPC, Spawn, "Neato! Look at all these feathers! Wonderful, just wonderful! Here you are. Take this for your efforts. Oh, Jondy and I will be flying along in no time!")
  30. elseif HasCompletedQuest(Spawn, FeathersForGherrana) == true then
  31. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1023.mp3", "", "", 0, 0, Spawn)
  32. else
  33. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1023.mp3", "", "", 0, 0, Spawn)
  34. end
  35. end
  36. function dlg_5_1(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  40. AddConversationOption(conversation, "I've heard of aviaks before. What of them?", "dlg_5_2")
  41. StartConversation(conversation, NPC, Spawn, "You see out there? Waaaaaaaay out there, up high? That's the home of the Kragplooms, a tribe of aviaks that have lived in the Butcherblock Mountains for hundreds of years.")
  42. end
  43. function dlg_5_2(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  47. AddConversationOption(conversation, "Are the Kragplooms peaceful?", "dlg_5_3")
  48. StartConversation(conversation, NPC, Spawn, "It has been said that hundreds of years ago, they once lived atop the trees here in giant platforms. What a sight that must have been! Now though, after the cataclysm, the Kragploom have flocked to that mesa up there near those huge crystalline formations.")
  49. end
  50. function dlg_5_3(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  54. AddConversationOption(conversation, "How is that?", "dlg_5_4")
  55. StartConversation(conversation, NPC, Spawn, "Peaceful? Ha! Not exactly. You see the Kragplooms are a bit xenophobic... That means distrustful of others. Um, anyways they tend to attack anyone who gets near them. This of course has hindered the flying contraption my husband and I are working on.")
  56. end
  57. function dlg_5_4(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  61. AddConversationOption(conversation, "Perhaps I could help you?", "dlg_5_5")
  62. StartConversation(conversation, NPC, Spawn, "Well, my husband is off in Freeport collecting iksar scales which he has told me is quite a difficult task. But, I think my task is even harder!")
  63. end
  64. function dlg_5_5(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  68. AddConversationOption(conversation, "Sure, if the price is right.", "GiveFeathersForGherrana")
  69. AddConversationOption(conversation, "Forget it. Sounds too dangerous!")
  70. StartConversation(conversation, NPC, Spawn, "Well my first task is to gather up a crate of kittens, which I've already done and shipped back to my laboratory. I'm having a heck of a time getting all the feathers I need, however. Would you mind gathering some feathers from the Kragploom scavengers?")
  71. end
  72. function dlg_5_6(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. conversation = CreateConversation()
  75. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  76. AddConversationOption(conversation, "Off I go!")
  77. StartConversation(conversation, NPC, Spawn, "Splendid! You might have an easier time getting them than I did. When I asked the Kragplooms themselves, they tried to eat me! Can you believe that! Me! I don't taste very good... At least I don't think I do. Anyways I'll need a great deal of feathers, so you better start now. Oh, and you will be fully compensated for your efforts.")
  78. end
  79. function dlg_5_7(NPC, Spawn)
  80. FaceTarget(NPC, Spawn)
  81. conversation = CreateConversation()
  82. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  83. AddConversationOption(conversation, "Glad to be of help!")
  84. StartConversation(conversation, NPC, Spawn, "Neato! Look at all these feathers! Wonderful, just wonderful! Here you are. Take this for your efforts. Oh, Jondy and I will be flying along in no time!")
  85. end
  86. function GiveFeathersForGherrana(NPC, Spawn)
  87. OfferQuest(NPC, Spawn, FeathersForGherrana)
  88. end