9
3

RiasonHanagom.lua 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. --[[
  2. Script Name : SpawnScripts/Antonica/RiasonHanagom.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.27 08:08:06
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseHuman1.lua")
  9. local LetterToRiason = 5350 -- Letter to Riason quest
  10. local ARediscoveredShrine = 5351 -- A Rediscovered Shrine? quest
  11. function spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. local conversation = CreateConversation()
  16. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1034.mp3", "", "", 0, 0, Spawn)
  17. if HasQuest(Spawn, LetterToRiason) then
  18. AddConversationOption(conversation, "I've a letter for you from Trader Cooper.", "Option1")
  19. elseif HasCompletedQuest(Spawn, LetterToRiason) and not HasQuest(Spawn, ARediscoveredShrine) and not HasCompletedQuest(Spawn, ARediscoveredShrine) then
  20. AddConversationOption(conversation, "Remember me? I was nice enough to do your friend a favor.", "Option3")
  21. elseif GetQuestStep(Spawn, ARediscoveredShrine) == 2 then
  22. AddConversationOption(conversation, "I found your little shrine. It seems a bunch of gnolls have taken it over. Too bad for you, eh?", "Option5")
  23. end
  24. AddConversationOption(conversation, "Nothing, nevermind.")
  25. StartConversation(conversation, NPC, Spawn, "What brings you here? I'm VERY busy.")
  26. end
  27. function Option1(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. local conversation = CreateConversation()
  30. AddConversationOption(conversation, "Only after I've received payment.", "Option2")
  31. AddConversationOption(conversation, "You know, I think this was for the OTHER Riason. Sorry. ")
  32. StartConversation(conversation, NPC, Spawn, "That worm has been delaying for long enough. It's about time he did his job. What are you waiting for!? Give it to me!")
  33. end
  34. function Option2(NPC, Spawn)
  35. SetStepComplete(Spawn, LetterToRiason, 1)
  36. FaceTarget(NPC, Spawn)
  37. local conversation = CreateConversation()
  38. AddConversationOption(conversation, "All right already! Here it is.")
  39. StartConversation(conversation, NPC, Spawn, "Gah! I could kill you right here and now for defying me. Here, take this and give me the letter NOW!")
  40. end
  41. function Option3(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. local conversation = CreateConversation()
  44. AddConversationOption(conversation, "What kind of research? Maybe I can help you out.", "Option4")
  45. AddConversationOption(conversation, "Fine, I'm going.")
  46. StartConversation(conversation, NPC, Spawn, "Favor?! You demanded money for that \"favor\" as I recall. Besides, that man is no \"friend\" of mine. He was merely doing a little... research for me. Now leave me alone!")
  47. end
  48. function Option4(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. local conversation = CreateConversation()
  51. AddConversationOption(conversation, "This will be easy money. I'll take the job.", "offer")
  52. AddConversationOption(conversation, "Go find your own shrine. I don't trust your money anyway. ")
  53. StartConversation(conversation, NPC, Spawn, "Bah! You are very annoying, you know that? However, you are persistent and brave... or perhaps just stupid. In any case, I could make use of you and it would save me some time. Cooper found out the general location of a recently discovered shrine from a few adventurers. I was going to check it out myself but I have other... business to attend to. Go and find it and I'll throw a few coins your way.")
  54. end
  55. function Option5(NPC, Spawn)
  56. SetStepComplete(Spawn, ARediscoveredShrine, 2)
  57. FaceTarget(NPC, Spawn)
  58. local conversation = CreateConversation()
  59. AddConversationOption(conversation, "Bertoxxulous? You sent me to a shrine of disease?!", "Option6")
  60. StartConversation(conversation, NPC, Spawn, "Gnolls? So you did find it! I must insist that you put distance between yourself and I. I don't want to get too close to someone who just came back from a shrine of Bertoxxulous.")
  61. end
  62. function Option6(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. local conversation = CreateConversation()
  65. AddConversationOption(conversation, "If I get sick I know right where to come.")
  66. StartConversation(conversation, NPC, Spawn, "That's exactly what I did. Take the pouch of coin and get out of here. Catch!")
  67. end
  68. function offer(NPC, Spawn)
  69. OfferQuest(NPC, Spawn, ARediscoveredShrine)
  70. end
  71. function respawn(NPC)
  72. spawn(NPC)
  73. end