9
3

AssistantWilabus.lua 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. --[[
  2. Script Name : SpawnScripts/Blackburrow/AssistantWilabus.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.07.12 04:07:29
  5. Script Purpose :
  6. :
  7. --]]
  8. local GnollBrew = 5638
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, GnollBrew)
  11. SetPlayerProximityFunction(NPC, 10, "InRange")
  12. end
  13. function InRange(NPC, Spawn)
  14. if not HasQuest(Spawn, GnollBrew) and not HasCompletedQuest(Spawn, GnollBrew) then
  15. PlayFlavor(NPC, "voiceover/english/assistant_wilabus/blackburrow/021_assistant_wilabus_g1_aoi_unfamiliar_15f241f5.mp3", "Looks like another one of those adventurous types, doesn't it Fribden? I wonder if they fell down the waterfall again.", "", 179082550, 1176156900, Spawn)
  16. elseif HasCompletedQuest(Spawn, GnollBrew) then
  17. PlayFlavor(NPC, "voiceover/english/assistant_wilabus/blackburrow/021_assistant_wilabus_g1_aoi_qst_complete_2138130b.mp3", "Cheers, mate!", "", 2066944300, 865360987, Spawn)
  18. end
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. if not HasQuest(Spawn, GnollBrew) and not HasCompletedQuest(Spawn, GnollBrew) then
  23. Option0(NPC, Spawn)
  24. elseif GetQuestStep(Spawn, GnollBrew) == 1 then
  25. Progress(NPC, Spawn)
  26. elseif GetQuestStep(Spawn, GnollBrew) == 2 then
  27. Option2(NPC, Spawn)
  28. elseif HasCompletedQuest(Spawn, GnollBrew) then
  29. Completed(NPC, Spawn)
  30. end
  31. end
  32. function Option0(NPC, Spawn)
  33. PlayFlavor(NPC, "voiceover/english/assistant_wilabus/blackburrow/assistant_wilabus001.mp3", "", "", 2482291365, 4056630983, Spawn)
  34. local conversation = CreateConversation()
  35. AddConversationOption(conversation, "What are you talking about?", "Option1")
  36. AddConversationOption(conversation, "I must be on my way.")
  37. StartConversation(conversation, NPC, Spawn, "Traveling with Master Fribden has opened my eyes to the world. It has also shown me the devastation inflicted upon Norrath. It's also left me very thirsty... What I wouldn't give for some more of that gnoll brew.")
  38. end
  39. function Progress(NPC, Spawn)
  40. PlayFlavor(NPC, "voiceover/english/assistant_wilabus/blackburrow/assistant_wilabus002.mp3", "", "", 1467650489, 3734789281, Spawn)
  41. local conversation = CreateConversation()
  42. AddConversationOption(conversation, "I'll be back when I've got the brew.")
  43. StartConversation(conversation, NPC, Spawn, "What! No jug? Ah, just as well. I'm a bit busy cataloging these rock formations.")
  44. end
  45. function Option1(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. local conversation = CreateConversation()
  48. PlayFlavor(NPC, "voiceover/english/assistant_wilabus/blackburrow/assistant_wilabus004.mp3", "", "", 2034660216, 316945089, Spawn)
  49. AddConversationOption(conversation, "Yeah I'll get the brew.", "offer")
  50. AddConversationOption(conversation, "Not right now. ")
  51. StartConversation(conversation, NPC, Spawn, "I've done a bit of exploring down here myself and found a brewery. Yeah, no fooling! But watch out for the gnolls there, they're far more unpleasant than the others. Say ... I'll make it worth your while if you fetch me a jug of their brew.")
  52. end
  53. function Option2(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. local conversation = CreateConversation()
  56. PlayFlavor(NPC, "voiceover/english/assistant_wilabus/blackburrow/assistant_wilabus003.mp3", "", "", 2300388685, 1085966704, Spawn)
  57. AddConversationOption(conversation, "Right, and my compensation?", "Option3")
  58. StartConversation(conversation, NPC, Spawn, "Ooh! Is that what I think it is? And it's filled to the top, woo hoo! This will surely make the time click on by. ")
  59. end
  60. function Option3(NPC, Spawn)
  61. SetStepComplete(Spawn, GnollBrew, 2)
  62. FaceTarget(NPC, Spawn)
  63. local conversation = CreateConversation()
  64. PlayFlavor(NPC, "voiceover/english/assistant_wilabus/blackburrow/assistant_wilabus006.mp3", "", "", 2599326032, 753804023, Spawn)
  65. AddConversationOption(conversation, "Thanks.")
  66. StartConversation(conversation, NPC, Spawn, "Oh my, yes. Of course, I don't have any coin on me. What good would coin do me down here? What I do have, on the other hand, are these stones. They're in the rough, but I'm sure you can fetch a grand price for them.")
  67. end
  68. function Completed(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. local conversation = CreateConversation()
  71. PlayFlavor(NPC, "voiceover/english/assistant_wilabus/blackburrow/assistant_wilabus007.mp3", "", "", 3156701985, 3555511002, Spawn)
  72. AddConversationOption(conversation, "Enjoy. ")
  73. StartConversation(conversation, NPC, Spawn, "Thanks again, chum! Aside from the occasional gnoll hair, it's not too bad. It's got a wicked bite to it.")
  74. end
  75. function offer(NPC, Spawn)
  76. OfferQuest(NPC, Spawn, GnollBrew)
  77. end
  78. function respawn(NPC)
  79. spawn(NPC)
  80. end