IssikDethyr.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : SpawnScripts/ScaleYard/IssikDethyr.lua
  3. Script Purpose : Issik Dethyr
  4. Script Author : torsten
  5. Script Date : 2022.08.01
  6. Script Notes :
  7. --]]
  8. local BattleOnTheHomeFront = 348
  9. require "SpawnScripts/Generic/DialogModule"
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if GetQuestStep(Spawn, BattleOnTheHomeFront) == 1 then
  17. SetStepComplete(Spawn, BattleOnTheHomeFront, 1)
  18. Dialog2(NPC, Spawn)
  19. else
  20. RandomGreeting(NPC, Spawn)
  21. end
  22. end
  23. function RandomGreeting(NPC, Spawn)
  24. local choice = MakeRandomInt(1,3)
  25. if choice == 1 then
  26. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/issik_dethyr/fprt_hood06/quest_issik_away_civilian_b62b6605.mp3", "Away, civilian! The Militia has no time for lorungs like you!", "", 2421734461, 4002400859, Spawn, 0)
  27. elseif choice == 2 then
  28. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1028.mp3", 0, 0, Spawn)
  29. end
  30. end
  31. function Dialog1(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. Dialog.New(NPC, Spawn)
  34. Dialog.AddDialog("Well, good for him. Too bad I've already sent out another raiding party and won't need his services for some time... possibly a long time. Hmm. You may have noticed I stopped speaking to you... That's your cue to move along. Go ahead, you can do it. One foot in front of the other.")
  35. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/issik_dethyr/fprt_hood06/issik002.mp3", 2023483562, 2147836902)
  36. Dialog.AddOption("Fine, goodbye.")
  37. Dialog.AddOption("Your insolence shall not be forgotten. We shall meet again.")
  38. Dialog.AddOption("Malachi will not be happy about this!")
  39. Dialog.Start()
  40. end
  41. function Dialog2(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. Dialog.New(NPC, Spawn)
  44. Dialog.AddDialog("Speak or be killed. Quickly now, make your decision.")
  45. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/issik_dethyr/fprt_hood06/issik001.mp3", 1583287184, 404701556)
  46. Dialog.AddOption("Malachi has organized his raiding party and awaits final orders to attack our enemies in the Commonlands.", "Dialog1")
  47. Dialog.Start()
  48. end