MedicBrendan.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/MedicBrendan.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.09.25 06:09:39
  5. Script Purpose :
  6. :
  7. --]]
  8. local AntiVenomComponentsForBrendan = 5362
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, AntiVenomComponentsForBrendan)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. if GetFactionAmount(Spawn,11) <0 then
  15. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  16. else
  17. PlayFlavor(NPC, "voiceover/english/medic_brendan/qey_north/medicbrendan.mp3", "", "cast_priest_buff_02", 1794353050, 4094124176, Spawn)
  18. local conversation = CreateConversation()
  19. if not HasQuest(Spawn, AntiVenomComponentsForBrendan) and not HasCompletedQuest(Spawn, AntiVenomComponentsForBrendan) then
  20. AddConversationOption(conversation, "I don't need any symbols or spells, but perhaps the Temple has need of me in another capacity?", "Option1")
  21. elseif GetQuestStep(Spawn, AntiVenomComponentsForBrendan) == 3 then
  22. AddConversationOption(conversation, "I've brought the poison sacs you requested.", "Option3")
  23. end
  24. AddConversationOption(conversation, "No thanks, just browsing.")
  25. StartConversation(conversation, NPC, Spawn, "May the light of the Prime Healer guide you. My spells and religious symbols will aid you in your quest to further the cause of good. Please, come closer, adventurer.")
  26. end
  27. end
  28. function Option1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. local conversation = CreateConversation()
  31. PlayFlavor(NPC, "voiceover/english/medic_brendan/qey_north/medicbrendan000.mp3", "", "ponder", 869579765, 1262448220, Spawn)
  32. AddConversationOption(conversation, "Great! Sign me up!", "Option2")
  33. AddConversationOption(conversation, "No thanks. Sounds too mundane for me.")
  34. StartConversation(conversation, NPC, Spawn, "Another capacity? Well, we do need help gathering components for our potions. We supply the guards with an antidote in case something poisonous attacks them on their rounds.")
  35. end
  36. function Option2(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. PlayFlavor(NPC, "voiceover/english/medic_brendan/qey_north/medicbrendan001.mp3", "", "agree", 2024395365, 2524293328, Spawn)
  39. local conversation = CreateConversation()
  40. AddConversationOption(conversation, "Very well, I guess I'll be off to the caves then.", "offer")
  41. StartConversation(conversation, NPC, Spawn, "Splendid! Now, pay close attention. We need the venom sacs of white spiders and albino cave snakes. I'll write down in your journal the amount we need and where you can find them. ")
  42. end
  43. function Option3(NPC, Spawn)
  44. SetStepComplete(Spawn, AntiVenomComponentsForBrendan, 3)
  45. PlayFlavor(NPC, "voiceover/english/medic_brendan/qey_north/medicbrendan002.mp3", "", "agree", 2789605189, 2708866418, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. local conversation = CreateConversation()
  48. AddConversationOption(conversation, "Just knowing that such a thing is possible is a comfort to me.")
  49. StartConversation(conversation, NPC, Spawn, "Wonderful! These samples will do nicely! Don't be surprised if one day these very venom sacs save the life of one of our guards.")
  50. end
  51. function offer(NPC, Spawn)
  52. OfferQuest(NPC, Spawn, AntiVenomComponentsForBrendan)
  53. end
  54. function respawn(NPC)
  55. spawn(NPC)
  56. end