9
3

ExecutionerSelindi.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/ExecutionerSelindi.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.24 06:05:32
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC,22, "InRange", "LeaveRange")
  11. ProvidesQuest(NPC,5891)
  12. end
  13. function LeaveRange(NPC,Spawn)
  14. if HasCompletedQuest(Spawn,5890) and CanReceiveQuest(Spawn,5891) then
  15. SetPosition(Spawn,-1344.42, -69.53, 333.57, 218.64)
  16. PlayFlavor(NPC,"","Hey! I need to speak with you!","beckon",0,0,Spawn)
  17. end
  18. end
  19. function InRange(NPC,Spawn)
  20. if HasCompletedQuest(Spawn,5890) and not HasQuest(Spawn,5891) then
  21. OfferQuest(NPC,Spawn,5891)
  22. end
  23. end
  24. function hailed(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. if HasQuest(Spawn,5891) and GetQuestStep(Spawn,5891)==1 then
  27. Dialog1(NPC,Spawn)
  28. else
  29. PlayFlavor(NPC, "voiceover/english/optional1/executioner_selindi/commonlands/quest/020_executioner_selindi_callout1_da9a558a.mp3", "Move along unless you want to join these skeletons.", "", 2115754705, 267010184, Spawn)
  30. end
  31. end
  32. function Dialog1(NPC,Spawn)
  33. FaceTarget(NPC, Spawn)
  34. Dialog.New(NPC, Spawn)
  35. Dialog.AddDialog("Pay attention, for I only have time to say it once. The rare poison coating my axe preserved you long enough for me to revive you. It may be a very long time before you fully recover from the poison. I believed your words, friend.")
  36. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_3_1051.mp3", 0, 0)
  37. Dialog.AddOption("Friend...?","Dialog2")
  38. Dialog.AddOption("I will at once.","Dialog3")
  39. Dialog.Start()
  40. end
  41. function Dialog2(NPC,Spawn)
  42. FaceTarget(NPC, Spawn)
  43. Dialog.New(NPC, Spawn)
  44. Dialog.AddDialog("I am not what I appear to be. I am here in Freeport to find people like you, people who turn away from the path of evil. No one has seen past my illusion yet. Listen! You have to flee! When the necromancers find your body missing, they'll come looking for you.")
  45. PlayFlavor(NPC,"","","no",0,0,Spawn)
  46. Dialog.AddOption("Where should I go?","Dialog3")
  47. Dialog.Start()
  48. end
  49. function Dialog3(NPC,Spawn)
  50. SetStepComplete(Spawn,5891,1)
  51. FaceTarget(NPC, Spawn)
  52. Dialog.New(NPC, Spawn)
  53. Dialog.AddDialog("Stow away on a ship and travel to Antonica. I will send a message to my old friend, Vishra. Seek him out near the gnoll's lair where he fights to stop their impending threat. I will tell him that you need a home. Go before it's too late!")
  54. Dialog.AddOption("Thank you Selindi. I will go to Antonica!")
  55. Dialog.Start()
  56. end
  57. function respawn(NPC)
  58. spawn(NPC)
  59. end
  60. --
  61. --
  62. --