awearyKorshaman.lua 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. --[[
  2. Script Name : SpawnScripts/Freeport/awearyKorshaman.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.08.08 06:08:07
  5. Script Purpose :
  6. :
  7. --]]
  8. local QUEST = 573
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, QUEST)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange", Spawn)
  12. end
  13. function InRange(NPC, Spawn)
  14. if not HasQuest(Spawn, QUEST) and not HasCompletedQuest(Spawn, QUEST) then
  15. PlayFlavor(NPC, "", "Please help me... hear my story and offer me succor.", "beg", 1689589577, 4560189, Spawn)
  16. end
  17. end
  18. function LeaveRange(NPC, Spawn)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. if not HasQuest(Spawn, QUEST) and not HasCompletedQuest(Spawn, QUEST) then
  23. conversation = CreateConversation()
  24. PlayFlavor(NPC, "a_weary_kor_shaman/rivervale/a_froglok_kor_shaman001.mp3", "", "", 78117922, 557751502, Spawn)
  25. AddConversationOption(conversation, "What are you? How did you get here?", "dlg01")
  26. AddConversationOption(conversation, "Then I've no wish to speak with you.")
  27. StartConversation(conversation, NPC, Spawn, "Thank you for taking the time to speak with me... others here have been less than kind. Apparently my race is not welcome within these walls.")
  28. elseif HasQuest(Spawn, QUEST) and GetQuestStep(Spawn, QUEST) == 1 then
  29. PlayFlavor(NPC, "", "Have you found her yet? Have you found Kraofla?", "", 1689589577, 4560189, Spawn)
  30. end
  31. if GetQuestStep(Spawn, QUEST) == 3 then
  32. conversation = CreateConversation()
  33. PlayFlavor(NPC, "a_weary_kor_shaman/rivervale/a_froglok_kor_shaman007.mp3", "", "", 1428097901, 1746089657, Spawn)
  34. AddConversationOption(conversation, "Sadly, no. She died some time ago...", "dlg06")
  35. StartConversation(conversation, NPC, Spawn, "What news have you? Does Kraofla yet live?")
  36. elseif HasCompletedQuest(Spawn, QUEST) then
  37. PlayFlavor(NPC, "", "Alas, I fear I am done for.", "cry", 1689589577, 4560189, Spawn)
  38. end
  39. end
  40. function dlg01(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. PlayFlavor(NPC, "a_weary_kor_shaman/rivervale/a_froglok_kor_shaman002.mp3", "", "", 1579095945, 1134301342, Spawn)
  44. AddConversationOption(conversation, "So where did you come from?", "dlg02")
  45. StartConversation(conversation, NPC, Spawn, "My sailing vessel was split asunder by lightning during a journey from the shores of our homeland. We were separated once more, and I ended up here. As to what I am, I am a froglok, a race which once was the chosen of Mithaniel Marr.")
  46. end
  47. function dlg02(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "a_weary_kor_shaman/rivervale/a_froglok_kor_shaman003.mp3", "", "", 1346313345, 2685946598, Spawn)
  51. AddConversationOption(conversation, "What brings you here now?", "dlg04")
  52. StartConversation(conversation, NPC, Spawn, "Centuries ago, during the sundering of the land, the froglok people were split as the Feerrott separated from our home in the swamps of Innothule. We have had no contact with those left in the Innothule in ages.")
  53. end
  54. function dlg04(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. conversation = CreateConversation()
  57. PlayFlavor(NPC, "a_weary_kor_shaman/rivervale/a_froglok_kor_shaman004.mp3", "", "", 3970573503, 3378633819, Spawn)
  58. AddConversationOption(conversation, "What is it you would have me do? Free you?", "dlg05")
  59. StartConversation(conversation, NPC, Spawn, "Hard times fell on us after the Sundering. The Tae'Ew, beloved of the dragon Venekor, sought something to appease their great new master. We were gathered and herded into their great temple. There, we have languished for an age, all but forgotten by the outside world.")
  60. end
  61. function dlg05(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. conversation = CreateConversation()
  64. PlayFlavor(NPC, "a_weary_kor_shaman/rivervale/a_froglok_kor_shaman005.mp3", "", "no", 2642317889, 3509737364, Spawn)
  65. AddConversationOption(conversation, "I don't see how that could hurt anything.", "QuestOffer")
  66. StartConversation(conversation, NPC, Spawn, "Nothing so dangerous, no. I seek only to know if any of the others made it to these shores.")
  67. end
  68. function dlg06(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "a_weary_kor_shaman/rivervale/a_froglok_kor_shaman008.mp3", "", "cry", 3634060435, 3397692321, Spawn)
  72. AddConversationOption(conversation, "Perhaps there is hope for your other companions.", "dlg07")
  73. StartConversation(conversation, NPC, Spawn, "My sorrow knows no bounds. She was my life-mate. May Marr guide her soul - for he surely has forsaken me as the gods have Norrath.")
  74. end
  75. function dlg07(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. SetStepComplete(Spawn, QUEST, 3)
  78. conversation = CreateConversation()
  79. PlayFlavor(NPC, "a_weary_kor_shaman/rivervale/a_froglok_kor_shaman009.mp3", "", "no", 2539102289, 2238450698, Spawn)
  80. AddConversationOption(conversation, "As you wish.")
  81. StartConversation(conversation, NPC, Spawn, "Leave me now, I have nothing more to speak of. I must consider my situation.")
  82. end
  83. function QuestOffer(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. OfferQuest(NPC, Spawn, QUEST)
  86. end
  87. function respawn(NPC)
  88. end