Oomitelmora.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/Oomitelmora.lua
  3. Script Purpose : Oomitelmora
  4. Script Author : Dorbin
  5. Script Date : 06.30.2022
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local HailCheck = false
  10. function spawn(NPC)
  11. AddTimer(NPC, 5000, "EmoteLoop")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. SetTarget(NPC,Spawn)
  18. FaceTarget(NPC, Spawn)
  19. if GetFactionAmount(Spawn,11)<0 then
  20. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  21. else
  22. HailCheck = true
  23. Dialog1(NPC, Spawn)
  24. AddTimer(NPC,26000,"HailReset")
  25. end
  26. end
  27. function HailReset(NPC)
  28. HailCheck = false
  29. end
  30. function Dialog1(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. Dialog.New(NPC, Spawn)
  33. Dialog.AddDialog("'Tis not just the victory I enjoy. To see this one writhe in frustration is highly amusing.")
  34. Dialog.AddVoiceover("voiceover/english/optional4/oomitelmora/oomitelmora-mp3_64.mp3", 354169301, 3490300460)
  35. if GetQuestStep(Spawn,247)==1 then
  36. Dialog.AddOption("King's field discussions do not concern me. I've a message for you from Orrinalanya.","Turnin")
  37. else
  38. Dialog.AddOption("King's field discussions do not concern me.")
  39. end
  40. Dialog.Start()
  41. end
  42. function Turnin(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. Dialog.AddDialog("I would assume she wishes to debate religion. I will make my way over to her soon enough. Here, let me at least tip you with some of the money I've taken from poor Vandis.")
  46. Dialog.AddOption("Thanks for the tip.")
  47. SetStepComplete(Spawn, 247,1)
  48. Dialog.Start()
  49. end
  50. --I would assume she wishes to debate religion. I will make my way over to her soon enough. Here, let me at least tip you with some of the money I've taken from poor Vandis. ( Unknown order Pulled Dialog)
  51. function EmoteLoop(NPC)
  52. if HailCheck == true then
  53. AddTimer(NPC,26100,"EmoteLoop")
  54. else
  55. local emoteChoice = MakeRandomInt(1,6)
  56. if emoteChoice == 1 then
  57. -- chuckle
  58. PlayAnimation(NPC, 11152)
  59. AddTimer(NPC, MakeRandomInt(11000,12000), "EmoteLoop")
  60. elseif emoteChoice == 2 then
  61. -- point
  62. PlayAnimation(NPC, 12028)
  63. AddTimer(NPC, MakeRandomInt(6000,8000), "EmoteLoop")
  64. elseif emoteChoice == 3 then
  65. -- ponder
  66. PlayAnimation(NPC, 12030)
  67. AddTimer(NPC, MakeRandomInt(12000,14000), "EmoteLoop")
  68. elseif emoteChoice == 4 then
  69. -- agree
  70. PlayAnimation(NPC, 10745)
  71. AddTimer(NPC, MakeRandomInt(5000,6000), "EmoteLoop")
  72. elseif emoteChoice == 5 then
  73. -- tapfoot
  74. PlayAnimation(NPC, 13056)
  75. AddTimer(NPC, MakeRandomInt(12000,13500), "EmoteLoop")
  76. elseif emoteChoice == 6 then
  77. -- no
  78. PlayAnimation(NPC, 11881)
  79. AddTimer(NPC, MakeRandomInt(5000,6000), "EmoteLoop")
  80. end
  81. end
  82. end