FeriusMentus.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. --[[
  2. Script Name : SpawnScripts/PeatBog/FeriusMentus.lua
  3. Script Purpose : Ferius Mentus
  4. Script Author : Scatman
  5. Script Date : 2009.05.10
  6. Script Notes : Updated 1/8/2020 by Shatou
  7. --]]
  8. local QUEST_1 = 513
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, QUEST_1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if HasCompletedQuest(Spawn, QUEST_1) then
  19. Say(NPC, "If I can perfect this, it may be amazingly useful.", Spawn)
  20. elseif HasQuest(Spawn, QUEST_1) then
  21. OnQuest1(NPC, Spawn, conversation)
  22. else
  23. YesYoureHere(NPC, Spawn, conversation)
  24. end
  25. end
  26. -------------------------------------------------------------------------------------------------------------------------
  27. -- QUEST 1
  28. -------------------------------------------------------------------------------------------------------------------------
  29. function YesYoureHere(NPC, Spawn, conversation)
  30. AddConversationOption(conversation, "Why are you so grump?", "SoGrumpy")
  31. AddConversationOption(conversation, "Fine, I'll leave.")
  32. StartConversation(conversation, NPC, Spawn, "Yes, yes, you're here, I'm here, why don't we talk eh? No thanks.")
  33. end
  34. function SoGrumpy(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. AddConversationOption(conversation, "Why do you need frogs?", "WhyNeedFrogs")
  38. StartConversation(conversation, NPC, Spawn, "My research is coming to a stand still! I paid some young lad to go fetch me frogs and just took my money and left! Can you believe that? Now I have no frogs.")
  39. end
  40. function WhyNeedFrogs(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. AddConversationOption(conversation, "Well I could help you collect some frogs.", "ICanCollectFrogs")
  44. StartConversation(conversation, NPC, Spawn, "I already told you! I need them for research! The frogs here secrete a fluid that tastes HORRIBLE. It helps them avoid being eaten. With the influx if 'rehabilitated' ogres coming in, I'm trying to come up with an easy way to remind them not to eat the gnomes or halflings.")
  45. end
  46. function ICanCollectFrogs(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. conversation = CreateConversation()
  49. AddConversationOption(conversation, "I can do this.", "OfferQuest1")
  50. StartConversation(conversation, NPC, Spawn, "You think so? I need some of the glands inside them. I don't expect you to be able to recognize it, so just bring me the whole body. Then of them, in fact.")
  51. end
  52. function OfferQuest1(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. OfferQuest(NPC, Spawn, QUEST_1)
  55. end
  56. function OnQuest1(NPC, Spawn, conversation)
  57. if GetQuestStep(Spawn, QUEST_1) == 2 then
  58. AddConversationOption(conversation, "Yes I did.", "GotFrogs")
  59. else
  60. AddConversationOption(conversation, "No, not yet.")
  61. end
  62. StartConversation(conversation, NPC, Spawn, "Did you get the frogs?")
  63. end
  64. function GotFrogs(NPC, Spawn)
  65. SetStepComplete(Spawn, QUEST_1, 2)
  66. FaceTarget(NPC, Spawn)
  67. conversation = CreateConversation()
  68. AddConversationOption(conversation, "You're welcome.")
  69. StartConversation(conversation, NPC, Spawn, "Ah, perfect! Thanks! So much nicer than the one that ran off earlier. Thank you.")
  70. end