SavasDranak.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --[[
  2. Script Name : SpawnScripts/ScaleYard/SavasDranak.lua
  3. Script Purpose : Savas Dranak
  4. Script Author : torsten/Dorbin
  5. Script Date : 2022.07.25
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Fighter = 5898
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. Dialog1(NPC, Spawn)
  17. end
  18. function Dialog1(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. Dialog.New(NPC, Spawn)
  21. Dialog.AddDialog("It is a shame this one didn't do what he was told. He was my favorite thrall too.")
  22. Dialog.AddVoiceover("voiceover/english/savas_dranak/fprt_hood06/savasdranak000.mp3", 312427882, 4132285907)
  23. if HasQuest(Spawn,Fighter) and GetQuestStep(Spawn,Fighter)>=7 and GetQuestStep(Spawn,Fighter)<=97 and GetQuestStepProgress(Spawn,Fighter,8)==0 then
  24. Dialog.AddOption("By orders of Overlord Lucan, you are to ensure that no Guttersnipe tries to take up residence in Scale Yard.","Dialog2")
  25. end
  26. Dialog.AddOption("I don't want to see how you treat your least favorite. ")
  27. Dialog.Start()
  28. end
  29. function Dialog2(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. Dialog.New(NPC, Spawn)
  32. Dialog.AddDialog("I do not listen to orders from silly little messengers.")
  33. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  34. Dialog.AddVoiceover("voiceover/english/savas_dranak/fprt_hood06/savasdranak001.mp3", 1404750927, 2071684844)
  35. Dialog.AddOption("Does the Militia need to help you understand this message?","Dialog3")
  36. Dialog.Start()
  37. end
  38. function Dialog3(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. Dialog.New(NPC, Spawn)
  41. Dialog.AddDialog("Ha! Who do you think you are, runt? Do you know whom you're talking to? I rule this district! I own everyone here!")
  42. PlayFlavor(NPC, "", "", "chuckle", 0, 0, Spawn)
  43. Dialog.AddVoiceover("voiceover/english/savas_dranak/fprt_hood06/savasdranak002.mp3", 503647552, 1623345428)
  44. Dialog.AddOption("The Overlord will not tolerate anyone stealing his things. Refugees included. Perhaps a cell is in your future?","Dialog3a")
  45. Dialog.Start()
  46. end
  47. function Dialog3a(NPC, Spawn)
  48. FaceTarget(Spawn, NPC)
  49. PlayFlavor(Spawn, "", "", "shakefist", 0, 0, NPC)
  50. AddTimer(NPC,800,"Dialog4",1,Spawn)
  51. end
  52. function Dialog4(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. Dialog.New(NPC, Spawn)
  55. SetStepComplete(Spawn,Fighter,8)
  56. Dialog.AddDialog("I shall do as the Overlord demands only because it pleases me to do so. Now leave my district. You're not welcome here.")
  57. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  58. Dialog.AddVoiceover("voiceover/english/savas_dranak/fprt_hood06/savasdranak003.mp3", 1045929350, 3685896097)
  59. if GetRace(Spawn) == 0 or GetRace(Spawn) == 18 or GetRace(Spawn) == 10 then
  60. Dialog.AddOption("This district is as much yours as it is mine, 'friend'.")
  61. end
  62. Dialog.AddOption("The Overlord will be pleased to hear it.")
  63. Dialog.Start()
  64. end