KnightCaptainSantis.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : SpawnScripts/PeatBog/KnightCaptainSantis.lua
  3. Script Author : Shatou
  4. Script Date : 2020.01.08 03:01:22
  5. Script Purpose :
  6. :
  7. --]]
  8. local BOG_SLUDGE_HUNT_QUEST_ID = 514
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, BOG_SLUDGE_HUNT_QUEST_ID)
  11. end
  12. function respawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. local conversation = CreateConversation()
  17. if not HasQuest(Spawn, BOG_SLUDGE_HUNT_QUEST_ID) and not HasCompletedQuest(Spawn, BOG_SLUDGE_HUNT_QUEST_ID) then
  18. AddConversationOption(conversation, "What kind of trouble is out there?", "Option1")
  19. AddConversationOption(conversation, "I didn't have any trouble making it this far.")
  20. StartConversation(conversation, NPC, Spawn, "Good day to you. I've been hearing reports that the Peat Bog here isn't safe right now. I hope you didn't have any trouble if you came through this way.")
  21. end
  22. if HasQuest(Spawn, BOG_SLUDGE_HUNT_QUEST_ID) then
  23. if GetQuestStep(Spawn, BOG_SLUDGE_HUNT_QUEST_ID) == 2 then
  24. SetStepComplete(Spawn, BOG_SLUDGE_HUNT_QUEST_ID, 2)
  25. AddConversationOption(conversation, "It feels good to make the area a little bit safer.")
  26. StartConversation(conversation, NPC, Spawn, "You are truly valuable to Qeynos. I'm already receiving optimistic reports that the Bog Sludge are finally under control. Please accept this reward for a job well done.")
  27. end
  28. end
  29. end
  30. function Option1(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. local conversation = CreateConversation()
  33. AddConversationOption(conversation, "A few sludges shouldn't be a problem for me.", "Option2")
  34. AddConversationOption(conversation, "I don't feel like going into that bog right now. Maybe another time. ")
  35. StartConversation(conversation, NPC, Spawn, "The Bog Sludges have swelled in number, spreading like pestilence. This vermin has become a serious menace to the refugees here. The Sludges must be exterminated for the safety of the people. I hope you're not too squeamish for such a job. ")
  36. end
  37. function Option2(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. local conversation = CreateConversation()
  40. OfferQuest(NPC, Spawn, BOG_SLUDGE_HUNT_QUEST_ID)
  41. AddConversationOption(conversation, "Sounds good. I'll get right on it.")
  42. StartConversation(conversation, NPC, Spawn, "Excellent! Slay several sludges here and report back to me. I will reward you for your service to Qeynos. ")
  43. end