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. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. conversation = CreateConversation()
  14. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/vibia_hail.mp3", "", "", 3079041432, 2894640672, Spawn)
  15. if not HasQuest(Spawn, QUEST) and not HasCompletedQuest(Spawn, QUEST) then
  16. AddConversationOption(conversation, "I was hoping you'd have some work for me.", "work")
  17. end
  18. if GetQuestStep(Spawn, QUEST) == 3 then
  19. AddConversationOption(conversation, "I gathered the ingredients you needed.", "complete")
  20. end
  21. AddConversationOption(conversation, "Thanks, I will have a look.")
  22. StartConversation(conversation, NPC, Spawn, "Please take a look at my wares. Don't hesitate to ask me any questions.")
  23. end
  24. function work(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_initial.mp3", "", "", 439302629, 4168884985, Spawn)
  27. conversation = CreateConversation()
  28. AddConversationOption(conversation, "What do you mean by ''ghost stories?'' ", "dlg01")
  29. AddConversationOption(conversation, "I'm not interested in being anyone's errand boy right now. Good bye.")
  30. 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?")
  31. end
  32. function dlg01(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_initial2.mp3", "", "", 3521735960, 3419399030, Spawn)
  35. conversation = CreateConversation()
  36. AddConversationOption(conversation, "What caves are you talking about?", "dlg02")
  37. AddConversationOption(conversation, "I do not want to test old superstitions. Find someone else.")
  38. 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!")
  39. end
  40. function dlg02(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_initial3.mp3", "", "", 2196718915, 2202525576, Spawn)
  43. conversation = CreateConversation()
  44. AddConversationOption(conversation, "So you need items from the Wailing Caves?", "dlg03")
  45. AddConversationOption(conversation, "The savannahs are haunted and I don't like haunts. Count me out.")
  46. 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.")
  47. end
  48. function dlg03(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_initial4.mp3", "", "", 2569063706, 2826808400, Spawn)
  51. conversation = CreateConversation()
  52. AddConversationOption(conversation, "What ingredients do you need?", "dlg04")
  53. AddConversationOption(conversation, "If it involves scary places, then I refuse. Goodbye.")
  54. 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.")
  55. end
  56. function dlg04(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_initial5.mp3", "", "", 2842679800, 900866920, Spawn)
  59. conversation = CreateConversation()
  60. AddConversationOption(conversation, "What is a Soulspike?", "soulspike")
  61. AddConversationOption(conversation, "Why do you need these ingredients?", "ingredients")
  62. AddConversationOption(conversation, "Soulspike! Forget it. I don't hunt creatures with proper names.")
  63. 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.")
  64. end
  65. function ingredients(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. OfferQuest(NPC, Spawn, QUEST)
  68. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_initial6.mp3", "", "", 1617170611, 1365623066, Spawn)
  69. conversation = CreateConversation()
  70. AddConversationOption(conversation, "Yes, I'm interested. I'll get the items for you.")
  71. AddConversationOption(conversation, "I'm not interested in being anyone's errand boy right now. Good bye.")
  72. 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?")
  73. end
  74. function soulspike(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_initial7.mp3", "", "", 3737977554, 3389137421, Spawn)
  77. conversation = CreateConversation()
  78. AddConversationOption(conversation, "Why do you need these ingredients?", "ingredients")
  79. AddConversationOption(conversation, "Who said I was brave? Count me out.")
  80. 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.")
  81. end
  82. function complete(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_return.mp3", "", "", 1840501091, 1548113784, Spawn)
  85. conversation = CreateConversation()
  86. AddConversationOption(conversation, "Yes, as a matter of fact, I would.", "complete02")
  87. 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?")
  88. end
  89. function complete02(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. SetStepComplete(Spawn, QUEST, 3)
  92. PlayFlavor(NPC, "voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_return2.mp3", "", "", 3395075188, 3798691058, Spawn)
  93. conversation = CreateConversation()
  94. AddConversationOption(conversation, "Good bye.")
  95. StartConversation(conversation, NPC, Spawn, "There you are, then! Now, if you wouldn't mind leaving me be, I've work to finish.")
  96. end
  97. function respawn(NPC)
  98. end