BrotherGarvis.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : SpawnScripts/VerminSnye/BrotherGarvis.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.05.17 10:05:57
  5. Script Purpose : Brother Garvis Dialogue
  6. Script Notes : Offer's Quest "Serving the Prime Healer(535)
  7. --]]
  8. local ServingThePrimeHealer = 535
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange", Spawn)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. if not HasCompletedQuest(Spawn, ServingThePrimeHealer) and not HasQuest(Spawn, ServingThePrimeHealer) then
  18. PlayFlavor(NPC, "", "The Prime Healer is still among us! Who will assist me with his work?", "", 1689589577, 4560189, Spawn)
  19. end
  20. end
  21. function LeaveRange(NPC, Spawn)
  22. end
  23. function hailed(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. conversation = CreateConversation()
  26. PlayFlavor(NPC, "voiceover/english/brother_garvis/qey_catacomb02/brothergarvis001.mp3", "", "", 4278326302, 2101075855, Spawn)
  27. AddConversationOption(conversation, "I'll keep that in mind.")
  28. if not HasQuest(Spawn, ServingThePrimeHealer) and not HasCompletedQuest(Spawn, ServingThePrimeHealer) then
  29. AddConversationOption(conversation, "I'll help you with your work.", "help")
  30. elseif GetQuestStep(Spawn, ServingThePrimeHealer) == 3 then
  31. AddConversationOption(conversation, "I have all the venom sacs you need.", "appreciated")
  32. end
  33. StartConversation(conversation, NPC, Spawn, "We must continue curing afflictions and healing wounds. It's the will of the Prime Healer.")
  34. end
  35. function help(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. conversation = CreateConversation()
  38. PlayFlavor(NPC, "voiceover/english/brother_garvis/qey_catacomb02/brothergarvis002.mp3", "", "", 3214755639, 3818612787, Spawn)
  39. AddConversationOption(conversation, "I can handle it.", "hardwork")
  40. AddConversationOption(conversation, "On second thought, I'll decline.")
  41. StartConversation(conversation, NPC, Spawn, "Excellent! Excellent! However, I must warn you. We have a lot of hard work ahead of us. The catacombs are dangerous, and I don't want someone volunteering unwittingly.")
  42. end
  43. function hardwork(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. OfferQuest(NPC, Spawn, ServingThePrimeHealer)
  47. PlayFlavor(NPC, "voiceover/english/brother_garvis/qey_catacomb02/brothergarvis003.mp3", "", "", 3876476820, 1082290589, Spawn)
  48. AddConversationOption(conversation, "I will collect what you need.")
  49. StartConversation(conversation, NPC, Spawn, "Very good. I know you can or I wouldn't have asked. I need you to collect venom sacs from poisonous serpents down in the catacombs. This deed serves the healers two fold. You will eliminate the threat the snakes pose and will provide us with venom to create a serum for combating the snakes' deadly toxins.")
  50. end
  51. function appreciated(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. SetStepComplete(Spawn, ServingThePrimeHealer, 3)
  54. conversation = CreateConversation()
  55. PlayFlavor(NPC, "voiceover/english/brother_garvis/qey_catacomb02/brothergarvis004.mp3", "", "", 961993195, 2444216878, Spawn)
  56. AddConversationOption(conversation, "Thank you.")
  57. StartConversation(conversation, NPC, Spawn, "Excellent! These will go a long way to curing the sick. You served the Prime Healer well. Take this as a token of our appreciation. Your work is appreciated.")
  58. end