RiasonHanagom.lua 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. local LetterToRiason = 5350 -- Letter to Riason quest
  9. local ARediscoveredShrine = 5351 -- A Rediscovered Shrine? quest
  10. function spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. local conversation = CreateConversation()
  15. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1034.mp3", "", "", 0, 0, Spawn)
  16. if HasQuest(Spawn, LetterToRiason) then
  17. AddConversationOption(conversation, "I've a letter for you from Trader Cooper.", "Option1")
  18. elseif HasCompletedQuest(Spawn, LetterToRiason) and not HasQuest(Spawn, ARediscoveredShrine) and not HasCompletedQuest(Spawn, ARediscoveredShrine) then
  19. AddConversationOption(conversation, "Remember me? I was nice enough to do your friend a favor.", "Option3")
  20. elseif GetQuestStep(Spawn, ARediscoveredShrine) == 2 then
  21. AddConversationOption(conversation, "I found your little shrine. It seems a bunch of gnolls have taken it over. Too bad for you, eh?", "Option5")
  22. end
  23. AddConversationOption(conversation, "Nothing, nevermind.")
  24. StartConversation(conversation, NPC, Spawn, "What brings you here? I'm VERY busy.")
  25. end
  26. function Option1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. local conversation = CreateConversation()
  29. AddConversationOption(conversation, "Only after I've received payment.", "Option2")
  30. AddConversationOption(conversation, "You know, I think this was for the OTHER Riason. Sorry. ")
  31. 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!")
  32. end
  33. function Option2(NPC, Spawn)
  34. SetStepComplete(Spawn, LetterToRiason, 1)
  35. FaceTarget(NPC, Spawn)
  36. local conversation = CreateConversation()
  37. AddConversationOption(conversation, "All right already! Here it is.")
  38. 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!")
  39. end
  40. function Option3(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. local conversation = CreateConversation()
  43. AddConversationOption(conversation, "What kind of research? Maybe I can help you out.", "Option4")
  44. AddConversationOption(conversation, "Fine, I'm going.")
  45. 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!")
  46. end
  47. function Option4(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. local conversation = CreateConversation()
  50. AddConversationOption(conversation, "This will be easy money. I'll take the job.", "offer")
  51. AddConversationOption(conversation, "Go find your own shrine. I don't trust your money anyway. ")
  52. 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.")
  53. end
  54. function Option5(NPC, Spawn)
  55. SetStepComplete(Spawn, ARediscoveredShrine, 2)
  56. FaceTarget(NPC, Spawn)
  57. local conversation = CreateConversation()
  58. AddConversationOption(conversation, "Bertoxxulous? You sent me to a shrine of disease?!", "Option6")
  59. 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.")
  60. end
  61. function Option6(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. local conversation = CreateConversation()
  64. AddConversationOption(conversation, "If I get sick I know right where to come.")
  65. StartConversation(conversation, NPC, Spawn, "That's exactly what I did. Take the pouch of coin and get out of here. Catch!")
  66. end
  67. function offer(NPC, Spawn)
  68. OfferQuest(NPC, Spawn, ARediscoveredShrine)
  69. end
  70. function attacked(NPC, Spawn)
  71. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_aggro_gm_a30c4f9d.mp3", "To Arms!", "", 1238020980, 748146443, Spawn)
  72. end
  73. function respawn(NPC)
  74. spawn(NPC)
  75. end