MedicBrendan.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. local conversation = CreateConversation()
  14. if not HasQuest(Spawn, AntiVenomComponentsForBrendan) and not HasCompletedQuest(Spawn, AntiVenomComponentsForBrendan) then
  15. AddConversationOption(conversation, "I don't need any symbols or spells, but perhaps the Temple has need of me in another capacity?", "Option1")
  16. elseif GetQuestStep(Spawn, AntiVenomComponentsForBrendan) == 3 then
  17. AddConversationOption(conversation, "I've brought the poison sacs you requested.", "Option3")
  18. end
  19. AddConversationOption(conversation, "No thanks, just browsing.")
  20. 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.")
  21. end
  22. function Option1(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. local conversation = CreateConversation()
  25. AddConversationOption(conversation, "Great! Sign me up!", "Option3")
  26. AddConversationOption(conversation, "No thanks. Sounds too mundane for me.")
  27. 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.")
  28. end
  29. function Option2(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. local conversation = CreateConversation()
  32. AddConversationOption(conversation, "Very well, I guess I'll be off to the caves then.", "offer")
  33. 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. ")
  34. end
  35. function Option3(NPC, Spawn)
  36. SetStepComplete(Spawn, AntiVenomComponentsForBrendan, 3)
  37. FaceTarget(NPC, Spawn)
  38. local conversation = CreateConversation()
  39. AddConversationOption(conversation, "Just knowing that such a thing is possible is a comfort to me.")
  40. 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.")
  41. end
  42. function offer(NPC, Spawn)
  43. OfferQuest(NPC, Spawn, AntiVenomComponentsForBrendan)
  44. end
  45. function respawn(NPC)
  46. spawn(NPC)
  47. end