9
3

SoothsayerReyala.lua 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. --[[
  2. Script Name : SpawnScripts/Graystone/SoothsayerReyala.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.03.11 11:03:14
  5. Script Purpose : Good Seer Script
  6. :
  7. --]]
  8. local FIGHTER = 1
  9. local WARRIOR =2
  10. local GUARDIAN= 3
  11. local BERSERKER = 4
  12. local BRAWLER = 5
  13. local MONK = 6
  14. local BRUISER= 7
  15. local CRUSADER = 8
  16. local SHADOWKNIGHT = 9
  17. local PALADIN = 10
  18. local PRIEST = 11
  19. local CLERIC = 12
  20. local TEMPLAR = 13
  21. local INQUISITOR = 14
  22. local DRUID = 15
  23. local WARDEN = 16
  24. local FURY = 17
  25. local SHAMAN = 18
  26. local MYSTIC = 19
  27. local DEFILER = 20
  28. local MAGE = 21
  29. local SORCERER = 22
  30. local WIZARD = 23
  31. local WARLOCK = 24
  32. local ENCHANTER = 25
  33. local ILLUSIONIST = 26
  34. local COERCER = 27
  35. local SUMMONER = 28
  36. local CONJUROR = 29
  37. local NECROMANCER = 30
  38. local SCOUT = 31
  39. local ROGUE = 32
  40. local SWASHBUCKLER = 33
  41. local BRIGAND = 34
  42. local BARD = 35
  43. local TROUBADOR = 36
  44. local DIRGE = 37
  45. local PREDATOR = 38
  46. local RANGER = 39
  47. local ASSASSIN = 40
  48. local ANIMALIST = 41
  49. local BEASTLORD = 42
  50. local SHAPER = 43
  51. local CHANNELER = 44
  52. function spawn(NPC)
  53. SetPlayerProximityFunction(NPC, 5, "InRange", "LeaveRange")
  54. waypoints(NPC)
  55. end
  56. function waypoints(NPC)
  57. MovementLoopAddLocation(NPC, 898.85, -22.61, -101.52, 2, math.random(15, 30))
  58. MovementLoopAddLocation(NPC, 896.39, -22.61, -104.37,2, math.random(15, 30))
  59. MovementLoopAddLocation(NPC, 896.09, -22.61, -104.17,2, math.random(15, 30))
  60. MovementLoopAddLocation(NPC, 896.99, -22.37, -109.86,2, math.random(15, 30))
  61. MovementLoopAddLocation(NPC,896.97, -22.37, -110.01,2, 1)
  62. MovementLoopAddLocation(NPC, 899.54, -22.61, -102.76,2, 0)
  63. MovementLoopAddLocation(NPC, 899.54, -22.61, -102.92,2, math.random(15, 30))
  64. end
  65. function hailed(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. Seer(NPC,Spawn)
  68. end
  69. function respawn(NPC)
  70. spawn(NPC)
  71. end
  72. function InRange(NPC, Spawn) --Quest Callout
  73. if math.random(1, 100) <= 25 then
  74. FaceTarget(NPC, Spawn)
  75. SeerShout(NPC, Spawn)
  76. end
  77. end
  78. function Seer(NPC,Spawn)
  79. choice = math.random(1,2)
  80. FaceTarget(NPC, Spawn)
  81. if choice ==1 then
  82. PlayFlavor(NPC, "","", "ponder", 0, 0, Spawn)
  83. else
  84. if GetClass(Spawn)==SCOUT or GetClass(Spawn)==ROGUE or GetClass(Spawn)==SWASHBUCKLER or GetClass(Spawn)==BRIGAND or GetClass(Spawn)==BARD or GetClass(Spawn)==TROUBADOR or GetClass(Spawn)==DIRGE or GetClass(Spawn)==PREDATOR or GetClass(Spawn)==RANGER or GetClass(Spawn)==ASSASSIN or GetClass(Spawn)==ANIMALIST or GetClass(Spawn)==BEASTLORD or GetClass(Spawn)==SHAPER or GetClass(Spawn)==CHANNELER then
  85. PlayFlavor(NPC, "voiceover/english/human_eco_good_seer/ft/eco/good/human_eco_good_seer_scout_gf_a250f41f.mp3","Stealth, guile, and brovado shall follow you on your path to greatness.", "orate", 3335989969, 3601217765, Spawn)
  86. elseif GetClass(Spawn)==MAGE or GetClass(Spawn)==SORCERER or GetClass(Spawn)==WIZARD or GetClass(Spawn)==WARLOCK or GetClass(Spawn)==ENCHANTER or GetClass(Spawn)==ILLUSIONIST or GetClass(Spawn)==COERCER or GetClass(Spawn)==SUMMONER or GetClass(Spawn)==CONJUROR or GetClass(Spawn)==NECROMANCER then
  87. PlayFlavor(NPC, "voiceover/english/human_eco_good_seer/ft/eco/good/human_eco_good_seer_mage_gf_f18445ae.mp3","Clearly your intellect is your best asset. The world shall marvel at the wonders you control.", "orate", 2143349270, 291509869, Spawn)
  88. elseif GetClass(Spawn)==CLERIC or GetClass(Spawn)==TEMPLAR or GetClass(Spawn)==INQUISITOR or GetClass(Spawn)==DRUID or GetClass(Spawn)==WARDEN or GetClass(Spawn)==FURY or GetClass(Spawn)==SHAMAN or GetClass(Spawn)==MYSTIC or GetClass(Spawn)==DEFILER or GetClass(Spawn)==PRIEST then
  89. PlayFlavor(NPC, "voiceover/english/human_eco_good_seer/ft/eco/good/human_eco_good_seer_priest_gf_5c80506d.mp3","Your spirit is strong, as is your faith. You shall move more than mountains, you shall move souls.", "orate", 1603654197, 361421551, Spawn)
  90. elseif GetClass(Spawn)==FIGHTER or GetClass(Spawn)==WARRIOR or GetClass(Spawn)==GUARDIAN or GetClass(Spawn)==BERSERKER or GetClass(Spawn)==BRAWLER or GetClass(Spawn)==MONK or GetClass(Spawn)==BRUISER or GetClass(Spawn)==CRUSADER or GetClass(Spawn)==SHADOWKNIGHT or GetClass(Spawn)==PALADIN then
  91. PlayFlavor(NPC, "voiceover/english/human_eco_good_seer/ft/eco/good/human_eco_good_seer_fighter_gf_544e4a58.mp3","Epic battles await your future, but the strength of your arm shall tame them all!", "orate", 2750782728, 2274979632, Spawn)
  92. end
  93. end
  94. end
  95. function SeerShout(NPC,Spawn)
  96. if GetClass(Spawn)==SCOUT or GetClass(Spawn)==ROGUE or GetClass(Spawn)==SWASHBUCKLER or GetClass(Spawn)==BRIGAND or GetClass(Spawn)==BARD or GetClass(Spawn)==TROUBADOR or GetClass(Spawn)==DIRGE or GetClass(Spawn)==PREDATOR or GetClass(Spawn)==RANGER or GetClass(Spawn)==ASSASSIN or GetClass(Spawn)==ANIMALIST or GetClass(Spawn)==BEASTLORD or GetClass(Spawn)==SHAPER or GetClass(Spawn)==CHANNELER then
  97. PlayFlavor(NPC, "voiceover/english/human_eco_good_seer/ft/eco/good/human_eco_good_seer_scout_gf_a250f41f.mp3","Stealth, guile and brovado shall follow you on your path to greatness.", "orate", 3335989969, 3601217765, Spawn)
  98. elseif GetClass(Spawn)==MAGE or GetClass(Spawn)==SORCERER or GetClass(Spawn)==WIZARD or GetClass(Spawn)==WARLOCK or GetClass(Spawn)==ENCHANTER or GetClass(Spawn)==ILLUSIONIST or GetClass(Spawn)==COERCER or GetClass(Spawn)==SUMMONER or GetClass(Spawn)==CONJUROR or GetClass(Spawn)==NECROMANCER then
  99. PlayFlavor(NPC, "voiceover/english/human_eco_good_seer/ft/eco/good/human_eco_good_seer_mage_gf_f18445ae.mp3","Clearly your intellect is your best asset. The world shall marvel at the wonders you control.", "orate", 2143349270, 291509869)
  100. elseif GetClass(Spawn)==CLERIC or GetClass(Spawn)==TEMPLAR or GetClass(Spawn)==INQUISITOR or GetClass(Spawn)==DRUID or GetClass(Spawn)==WARDEN or GetClass(Spawn)==FURY or GetClass(Spawn)==SHAMAN or GetClass(Spawn)==MYSTIC or GetClass(Spawn)==DEFILER or GetClass(Spawn)==PRIEST then
  101. PlayFlavor(NPC, "voiceover/english/human_eco_good_seer/ft/eco/good/human_eco_good_seer_priest_gf_5c80506d.mp3","Your spirit is strong, as is your faith. You shall move more than mountains, you shall move souls.", "orate", 1603654197, 361421551)
  102. elseif GetClass(Spawn)==FIGHTER or GetClass(Spawn)==WARRIOR or GetClass(Spawn)==GUARDIAN or GetClass(Spawn)==BERSERKER or GetClass(Spawn)==BRAWLER or GetClass(Spawn)==MONK or GetClass(Spawn)==BRUISER or GetClass(Spawn)==CRUSADER or GetClass(Spawn)==SHADOWKNIGHT or GetClass(Spawn)==PALADIN then
  103. PlayFlavor(NPC, "voiceover/english/human_eco_good_seer/ft/eco/good/human_eco_good_seer_fighter_gf_544e4a58.mp3","Epic battles await your future, but the strength of your arm shall tame them all!", "orate", 2750782728, 2274979632)
  104. end
  105. end