9
3

Riki.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/Riki.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.03.15 05:03:16
  5. Script Purpose :
  6. :
  7. --]]
  8. local CantWeAllJustGetALong = 448
  9. local TheLoverbirdsRoost = 449
  10. function spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. if GetQuestStep(Spawn, QUEST) == 2 then
  15. local conversation = CreateConversation()
  16. AddConversationOption(conversation, "Wait, I am here to talk to you about your son.", "Option1")
  17. StartConversation(conversation, NPC, Spawn, "Yes? I'm sorry, we don't need any more supplies until the end of the month. Good day.")
  18. elseif GetQuestStep(Spawn, TheLoverbirdsRoost) == 2 then
  19. local conversation = CreateConversation()
  20. AddConversationOption(conversation, "I have something you might find interesting.", "Option4")
  21. StartConversation(conversation, NPC, Spawn, "You again? You just don't get it, do you?")
  22. else
  23. PlayFlavor(NPC, "", "What do you want?", "glare", 1689589577, 4560189)
  24. end
  25. end
  26. function Option1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. local conversation = CreateConversation()
  29. AddConversationOption(conversation, "Yes. He asked me to try to talk to you about Amoora.", "Option2")
  30. StartConversation(conversation, NPC, Spawn, "Ferink? What about him? Is he still moping by the river about that cat?")
  31. end
  32. function Option2(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. local conversation = CreateConversation()
  35. AddConversationOption(conversation, "She is no killer. The kerrans are a noble race and she is a wonderful person, er... cat. I have met her and she is very much in love with Ferink.", "Option3")
  36. StartConversation(conversation, NPC, Spawn, "Don't say her name to me! It's ridiculous, really, being in love with a killer for goodness' sakes!")
  37. end
  38. function Option3(NPC, Spawn)
  39. SetStepComplete(Spawn, QUEST, 2)
  40. FaceTarget(NPC, Spawn)
  41. local conversation = CreateConversation()
  42. AddConversationOption(conversation, "If I must.")
  43. StartConversation(conversation, NPC, Spawn, "Love? Children know nothing of love! It's out of the question! Now, since you are wasting both of our time here, please leave me be. I have the day's chores to see to.")
  44. end
  45. function Option4(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. local conversation = CreateConversation()
  48. AddConversationOption(conversation, "I went to see Jojo, and he told me a story of kindness and honor. Can you guess who the main character was?", "Option5")
  49. StartConversation(conversation, NPC, Spawn, "I highly doubt you have anything I would find interesting.")
  50. end
  51. function Option5(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. local conversation = CreateConversation()
  54. AddConversationOption(conversation, "Does the name Duia sound familiar? I bet it does. How quickly we forget those that have helped us in the past.", "Option6")
  55. StartConversation(conversation, NPC, Spawn, "I'm listening...")
  56. end
  57. function Option6(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. local conversation = CreateConversation()
  60. AddConversationOption(conversation, "I do. You mean that you were wrong about him, as you are wrong about Amoora. Isn't that what you were trying to say? Oh, and he also asked me to give you this.", "Option7")
  61. StartConversation(conversation, NPC, Spawn, "Duia... Duia... oh... well, yes but he was an exception... I mean, they are not all like him. Such a kind man, er, cat... Well, you know what I mean.")
  62. end
  63. function Option7(NPC, Spawn)
  64. SetStepComplete(Spawn, TheLoverbirdsRoost, 2)
  65. FaceTarget(NPC, Spawn)
  66. local conversation = CreateConversation()
  67. AddConversationOption(conversation, "Wonderful! You won't be disappointed with this decision. I will go tell him.")
  68. StartConversation(conversation, NPC, Spawn, "A rememberance necklace! Oh, it's just gorgeous. I must send him my thanks. Sigh... I suppose sometimes the wisdom of children is overlooked by the ways of the elders. I will give this Amoora a chance. Tell Ferink he has my blessing.")
  69. end
  70. function respawn(NPC)
  71. spawn(NPC)
  72. end