9
3

Jaharin.lua 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/Jaharin.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.03.15 09:03:34
  5. Script Purpose :
  6. :
  7. --]]
  8. local CantWeAllJustGetAlong = 448
  9. local AHardManToPlease = 450
  10. function spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. if GetQuestStep(Spawn, CantWeAllJustGetAlong) == 1 then
  15. local conversation = CreateConversation()
  16. AddConversationOption(conversation, "I have come to speak with you about Ferink.", "Option1")
  17. StartConversation(conversation, NPC, Spawn, "What are you doing in here?")
  18. elseif GetQuestStep(Spawn, AHardManToPlease) == 2 then
  19. Option4(NPC, Spawn)
  20. else
  21. PlayFlavor(NPC, "", "Yes?...", "glare", 1689589577, 4560189)
  22. end
  23. end
  24. function Option1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. local conversation = CreateConversation()
  27. AddConversationOption(conversation, "But they love each other. Can't you see how unhappy she is without him?", "Option2")
  28. StartConversation(conversation, NPC, Spawn, "Ferink? Oh you mean the rat? Don't bother. Amoora needs a proper feline fellow, not some ... snack.")
  29. end
  30. function Option2(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. local conversation = CreateConversation()
  33. AddConversationOption(conversation, "She seems to disagree. What can I do to convince you of the truth?", "Option3")
  34. StartConversation(conversation, NPC, Spawn, "Love? Bah, I care not for the feelings of some mouse. Amoora will get over it.")
  35. end
  36. function Option3(NPC, Spawn)
  37. SetStepComplete(Spawn, CantWeAllJustGetAlong, 1)
  38. FaceTarget(NPC, Spawn)
  39. local conversation = CreateConversation()
  40. AddConversationOption(conversation, "Fine, fine. This isn't over, though.")
  41. StartConversation(conversation, NPC, Spawn, "The truth? The truth is my patience is at an end. Leave my home before I need to get... nasty.")
  42. end
  43. function Option4(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. local conversation = CreateConversation()
  46. AddConversationOption(conversation, "I barely did anything at all. It was mostly Ferink.", "Option5")
  47. StartConversation(conversation, NPC, Spawn, "Such a battle! We were barely able to hold them off the north hut. I saw what you did for us.")
  48. end
  49. function Option5(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. local conversation = CreateConversation()
  52. AddConversationOption(conversation, "I would say you are in both of our debts, wouldn't you?", "Option6")
  53. StartConversation(conversation, NPC, Spawn, "You are too modest a warrior. We are in your debt.")
  54. end
  55. function Option6(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. local conversation = CreateConversation()
  58. AddConversationOption(conversation, "And what else do you suppose?", "Option7")
  59. StartConversation(conversation, NPC, Spawn, "Yes, yes... I suppose so.")
  60. end
  61. function Option7(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. local conversation = CreateConversation()
  64. AddConversationOption(conversation, "Exactly! So you are going to get out of their way then?", "Option8")
  65. StartConversation(conversation, NPC, Spawn, "Well, I suppose that if he does care for Amoora enough to risk his scrawny little neck for us, then he can't be all bad.")
  66. end
  67. function Option8(NPC, Spawn)
  68. SetStepComplete(Spawn, AHardManToPlease, 2)
  69. FaceTarget(NPC, Spawn)
  70. local conversation = CreateConversation()
  71. AddConversationOption(conversation, "He will be greatly pleased. Thank you, Jaharin.")
  72. StartConversation(conversation, NPC, Spawn, "Of course, go tell the rat... er... Ferink that he is welcome to feast this evening... Oh, and it won't be rat on the menu...")
  73. end
  74. function respawn(NPC)
  75. spawn(NPC)
  76. end