9
3

DibbleRootweaver.lua 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. --[[
  2. Script Name : SpawnScripts/TheRuinsofVarsoon/DibbleRootweaver.lua
  3. Script Purpose : Dibble Rootweaver
  4. Script Author : Dorbin
  5. Script Date : 2022.01.22
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local HalfPint = 5448
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. ProvidesQuest(NPC, HalfPint)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. if not HasQuest(Spawn, HalfPint) and not HasCompletedQuest(Spawn,HalfPint)then
  18. local choice = math.random(1,2)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "voiceover/english/dibble_rootweaver/varsoon/030_halfling_male_dibble_rootweaver_aoi_00_b74acb43.mp3", "Oh!? Did I hear something? Hello? Anybody there!", "peer", 318278760, 343204042, Spawn)
  21. elseif choice == 2 then
  22. PlayFlavor(NPC, "voiceover/english/dibble_rootweaver/varsoon/030_halfling_male_dibble_rootweaver_aoi_01_bd03e30f.mp3", "Do be careful, adventurer. It's dreadful down here.", "wave", 652077101, 2601145137, Spawn)
  23. AddTimer(NPC, 100000, "InRange",1,Spawn)
  24. end
  25. end
  26. function LeaveRange(NPC, Spawn)
  27. end
  28. function hailed(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. if not HasQuest(Spawn, HalfPint) and not HasCompletedQuest(Spawn,HalfPint)then
  32. PlayFlavor(NPC, "voiceover/english/dibble_rootweaver/varsoon/dibble_rootweaver/dibble_rootweaver001.mp3", "", "", 3675279916, 1794610415, Spawn)
  33. AddConversationOption(conversation, "What do you need?","WhatNeed")
  34. AddConversationOption(conversation, "No you may not.")
  35. StartConversation(conversation, NPC, Spawn, "Am I ever in a pickle! May I be so bold as to ask for your assistance?")
  36. else
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. PlayFlavor(NPC, "voiceover/english/dibble_rootweaver/varsoon/dibble_rootweaver/dibble_rootweaver002.mp3", "", "", 4209059986, 1434611010, Spawn)
  40. AddConversationOption(conversation, "Fine have it your way.", "dlg_3_1")
  41. StartConversation(conversation, NPC, Spawn, "Please don't waste your time with me. I'm sure I'll figure a way out of here.")
  42. end
  43. end
  44. end
  45. function dlg_1_5 (NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. OfferQuest(NPC, Spawn, HalfPint)
  48. end
  49. function WhatNeed(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. PlayFlavor(NPC, "voiceover/english/dibble_rootweaver/varsoon/dibble_rootweaver/dibble_rootweaver004.mp3", "", "", 480715574, 1552997346, Spawn)
  53. AddConversationOption(conversation, "What research is a halfling doing down here?","dlg_1_2")
  54. AddConversationOption(conversation, "I've heard enough.")
  55. StartConversation(conversation, NPC, Spawn, "Oh no, no, not for me. That would be rude. It's far too late for me, but you could aid in the research I was conducting down here. It's very important, more important than little ol' me. ")
  56. end
  57. function dlg_1_2(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. PlayFlavor(NPC, "voiceover/english/dibble_rootweaver/varsoon/dibble_rootweaver/dibble_rootweaver005.mp3", "", "", 3065266222, 2445669156, Spawn)
  61. AddConversationOption(conversation, "What, escape?", "dlg_1_3")
  62. StartConversation(conversation, NPC, Spawn, "I was down here collecting material components for someone very dear. Just when I had finished, and was on my way out, these guards apprehended me. How embarrassing for me. Oh, how I dread to think that I let my sweet dear down. What do you say? Will you help me?")
  63. end
  64. function dlg_1_3(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. PlayFlavor(NPC, "voiceover/english/dibble_rootweaver/varsoon/dibble_rootweaver/dibble_rootweaver006.mp3", "", "", 3360260430, 2594499977, Spawn)
  68. AddConversationOption(conversation, "Alright, I will help.", "dlg_1_4")
  69. StartConversation(conversation, NPC, Spawn, "By Bristlebane's belly, no! Haven't you been listening? I need you to recover all of the components I gathered and make sure that my sweet receives them. Will you do this?")
  70. end
  71. function dlg_1_4(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. conversation = CreateConversation()
  74. PlayFlavor(NPC, "voiceover/english/dibble_rootweaver/varsoon/dibble_rootweaver/dibble_rootweaver007.mp3", "", "", 3554591931, 3863234032, Spawn)
  75. AddConversationOption(conversation, "I'll do what I can.", "dlg_1_5")
  76. StartConversation(conversation, NPC, Spawn, "Splendid! I'll write down everything that was taken from me in your journal. Once you recover them, take them to Armorer Peona; you'll find her in the Baubbleshire village in Qeynos.")
  77. end