VibiaValens.lua 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. --[[
  2. Script Name : SpawnScripts/NorthFreeport/VibiaValens.lua
  3. Script Author : premierio015
  4. Script Date : 2020.07.10 05:07:25
  5. Script Purpose :
  6. :
  7. --]]
  8. QUEST = 572
  9. function spawn(NPC)
  10. ProvidesQuest(NPC,QUEST)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. conversation = CreateConversation()
  15. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/vibia_hail.mp3", "", "", 3079041432, 2894640672, Spawn)
  16. if not HasQuest(Spawn, QUEST) and not HasCompletedQuest(Spawn, QUEST) then
  17. AddConversationOption(conversation, "I was hoping you'd have some work for me.", "work")
  18. end
  19. if GetQuestStep(Spawn, QUEST) == 3 then
  20. AddConversationOption(conversation, "I gathered the ingredients you needed.", "complete")
  21. end
  22. AddConversationOption(conversation, "Thanks, I will have a look.")
  23. StartConversation(conversation, NPC, Spawn, "Please take a look at my wares. Don't hesitate to ask me any questions.")
  24. end
  25. function work(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_initial.mp3", "", "", 439302629, 4168884985, Spawn)
  28. conversation = CreateConversation()
  29. AddConversationOption(conversation, "What do you mean by ''ghost stories?'' ", "dlg01")
  30. AddConversationOption(conversation, "I'm not interested in being anyone's errand boy right now. Good bye.")
  31. StartConversation(conversation, NPC, Spawn, "You're in luck. It just so happens that I need someone like you; someone who's not afraid of a few ghost stories. I need you to acquire some important items for me. I'll pay you, of course. Interested?")
  32. end
  33. function dlg01(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_initial2.mp3", "", "", 3521735960, 3419399030, Spawn)
  36. conversation = CreateConversation()
  37. AddConversationOption(conversation, "What caves are you talking about?", "dlg02")
  38. AddConversationOption(conversation, "I do not want to test old superstitions. Find someone else.")
  39. StartConversation(conversation, NPC, Spawn, "Old legends say that the caverns are haunted. It's all superstitious rubbish, of course! The way everyone cowers in fear at the mention of the caves, you'd think they'd never heard of the walking dead before those silly legends!")
  40. end
  41. function dlg02(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_initial3.mp3", "", "", 2196718915, 2202525576, Spawn)
  44. conversation = CreateConversation()
  45. AddConversationOption(conversation, "So you need items from the Wailing Caves?", "dlg03")
  46. AddConversationOption(conversation, "The savannahs are haunted and I don't like haunts. Count me out.")
  47. StartConversation(conversation, NPC, Spawn, "I'm talking about the Wailing Caves. What other haunted caverns are there? Despite the rumors you may have heard, the caverns are no more haunted than the savannah.")
  48. end
  49. function dlg03(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_initial4.mp3", "", "", 2569063706, 2826808400, Spawn)
  52. conversation = CreateConversation()
  53. AddConversationOption(conversation, "What ingredients do you need?", "dlg04")
  54. AddConversationOption(conversation, "If it involves scary places, then I refuse. Goodbye.")
  55. StartConversation(conversation, NPC, Spawn, "Precisely! I need someone to venture into the caverns and gather a few ingredients for me. The task shouldn't be too difficult for someone like you.")
  56. end
  57. function dlg04(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_initial5.mp3", "", "", 2842679800, 900866920, Spawn)
  60. conversation = CreateConversation()
  61. AddConversationOption(conversation, "What is a Soulspike?", "soulspike")
  62. AddConversationOption(conversation, "Why do you need these ingredients?", "ingredients")
  63. AddConversationOption(conversation, "Soulspike! Forget it. I don't hunt creatures with proper names.")
  64. StartConversation(conversation, NPC, Spawn, "Oh, just a bit of seep bile from a primordial and the venom sac of a rare spider called Soulspike. Hardly a worthy task for one with such ... worldly experience, but still, I humble myself to ask for your services.")
  65. end
  66. function ingredients(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. OfferQuest(NPC, Spawn, QUEST)
  69. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_initial6.mp3", "", "", 1617170611, 1365623066, Spawn)
  70. conversation = CreateConversation()
  71. AddConversationOption(conversation, "Yes, I'm interested. I'll get the items for you.")
  72. AddConversationOption(conversation, "I'm not interested in being anyone's errand boy right now. Good bye.")
  73. StartConversation(conversation, NPC, Spawn, "A client of mine has requested a very... interesting potion from me. Of course I'm more than capable of brewing it, but only if I have those ingredients. So, are you interested in the job?")
  74. end
  75. function soulspike(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_initial7.mp3", "", "", 3737977554, 3389137421, Spawn)
  78. conversation = CreateConversation()
  79. AddConversationOption(conversation, "Why do you need these ingredients?", "ingredients")
  80. AddConversationOption(conversation, "Who said I was brave? Count me out.")
  81. StartConversation(conversation, NPC, Spawn, "Soulspike is a Wailing Spider, one of the species that live in the caverns; he's a bit larger than the rest. His venom is said to be incredibly potent, though encountering Soulspike is extremely rare. Still, nothing for a brave adventurer to fear.")
  82. end
  83. function complete(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_return.mp3", "", "", 1840501091, 1548113784, Spawn)
  86. conversation = CreateConversation()
  87. AddConversationOption(conversation, "Yes, as a matter of fact, I would.", "complete02")
  88. StartConversation(conversation, NPC, Spawn, "Oh, wonderful and just in time! My client was inquiring about the status of his commission. Well, I suppose you want your payment?")
  89. end
  90. function complete02(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. SetStepComplete(Spawn, QUEST, 3)
  93. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_return2.mp3", "", "", 3395075188, 3798691058, Spawn)
  94. conversation = CreateConversation()
  95. AddConversationOption(conversation, "Good bye.")
  96. StartConversation(conversation, NPC, Spawn, "There you are, then! Now, if you wouldn't mind leaving me be, I've work to finish.")
  97. end
  98. function respawn(NPC)
  99. end