RonamOlansk.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/RonamOlansk.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.03.25 09:03:59
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericVoiceOvers.lua")
  9. local QUEST = 5219 -- Quell the Undead quest
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, QUEST)
  12. end
  13. function hailed(NPC, Spawn)
  14. GenericHail(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. local conversation = CreateConversation()
  17. AddConversationOption(conversation, "Dead orcs? Head for the hills! Flee!")
  18. if not HasQuest(Spawn, QUEST) and not HasCompletedQuest(Spawn, QUEST) then
  19. AddConversationOption(conversation, "I might be able to drive them off...", "Option1")
  20. elseif GetQuestStep(Spawn, QUEST) == 2 then
  21. AddConversationOption(conversation, "The danger has lessened considerably. I've returned from the caves victorious.", "Option2")
  22. end
  23. StartConversation(conversation, NPC, Spawn, "Please stay away from here! The dead souls of orcs callout for vengeance, and I'll not put you or the rest of my people in danger.")
  24. end
  25. function respawn(NPC)
  26. spawn(NPC)
  27. end
  28. function Option1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. local conversation = CreateConversation()
  31. AddConversationOption(conversation, "A reward, eh? That sounds more like my style...", "offer")
  32. AddConversationOption(conversation, "What a pathetic waste of my time. I'll not kill your skeletons for you.")
  33. StartConversation(conversation, NPC, Spawn, "I'm not so certain... but I suppose there's no harm in letting you risk your own life trying. If you kill enough of the skeletons inside the cave, the skeletons outside may return to their resting place. My people and I will scrape together what little we have to pay for your services.")
  34. end
  35. function Option2(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. SetStepComplete(Spawn, QUEST, 2)
  38. local conversation = CreateConversation()
  39. AddConversationOption(conversation, "That might be a wise course of action this area is dangerous.")
  40. StartConversation(conversation, NPC, Spawn, "Thank you for what you have done for our camp here. We nomads are not the most wealthy of individuals, but here is a token of our appreciation for your assistance in the matter. I fear that the dead shall rise again all too quickly. Perhaps it will be better to just move on...")
  41. end
  42. function offer(NPC, Spawn)
  43. OfferQuest(NPC, Spawn, QUEST)
  44. end