9
3

alostscout1587679.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/alostscout1587679.lua
  3. Script Purpose : Waypoint Path for alostscout1587679.lua
  4. Script Author : Jabantiz (movement by Rylec and play flavor by Premierio015)
  5. Script Date : 06-01-2020 10:07:23
  6. Script Notes : Locations collected from Live
  7. --]]
  8. local JoiningTheForwardRanks = 163
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function waypoints(NPC)
  19. MovementLoopAddLocation(NPC, 237.25, -6.06, 69.19, 2, math.random(14, 28))
  20. MovementLoopAddLocation(NPC, 261.3, -6.83, 116.18, 2, 0)
  21. MovementLoopAddLocation(NPC, 266.13, -6.25, 123.84, 2, 0)
  22. MovementLoopAddLocation(NPC, 268.31, -6.28, 128.79, 2, math.random(14, 28))
  23. MovementLoopAddLocation(NPC, 248.3, -6.11, 117.79, 2, math.random(14, 28))
  24. MovementLoopAddLocation(NPC, 237.61, -6.63, 110.49, 2, 0)
  25. MovementLoopAddLocation(NPC, 233.43, -6.37, 109.2, 2, math.random(14, 28))
  26. MovementLoopAddLocation(NPC, 230.92, -6, 119.56, 2, math.random(14, 28))
  27. MovementLoopAddLocation(NPC, 234.78, -6, 118.03, 2, 0)
  28. MovementLoopAddLocation(NPC, 259.87, -6.83, 114.2, 2, math.random(14, 28))
  29. MovementLoopAddLocation(NPC, 243.39, -6.73, 111.49, 2, math.random(14, 28))
  30. MovementLoopAddLocation(NPC, 255.82, -6.39, 76.31, 2, math.random(14, 28))
  31. MovementLoopAddLocation(NPC, 247.42, -6.17, 71.88, 2, 0)
  32. end
  33. function casted_on(NPC, Spawn, Message)
  34. local Cleric = GetSpawn(NPC, 2530111)
  35. if Message == "Divine Smite" and CompareSpawns(Spawn, Cleric) then
  36. local newScout = SpawnMob(GetZone(NPC), 2530196, false, GetX(NPC), GetY(NPC), GetZ(NPC), GetHeading(NPC))
  37. if newScout ~= nil then
  38. CopySpawnAppearance(newScout, NPC)
  39. SpawnSet(newScout, "visual_state", "0")
  40. SpawnSet(newScout, "attackable", "false")
  41. AddTimer(newScout, 5000, "Speak")
  42. end
  43. local mostHated = GetMostHated(NPC)
  44. if mostHated ~= nil and IsPlayer(mostHated) then
  45. if HasQuest(mostHated, JoiningTheForwardRanks) and GetQuestStep(mostHated, JoiningTheForwardRanks) == 2 then
  46. AddStepProgress(mostHated, JoiningTheForwardRanks, 2, 1)
  47. end
  48. end
  49. Despawn(NPC)
  50. end
  51. end
  52. function aggro(NPC, Spawn)
  53. if not HasLanguage(Spawn, 1) then -- IF PLAYER DOESN'T SPEAK HALASIAN THEN HE WILL HEAR THOSE VOICEOVERS.
  54. local choice = math.random(1, 2)
  55. if choice == 1 then
  56. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_outland/ft/barbarian/barbarian_outland_1_garbled_gf_b80c3123.mp3", "Asfkher van baed rijs prakti kjen", "", 3736519483, 298405430, Spawn, 1)
  57. else
  58. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_outland/ft/barbarian/barbarian_outland_1_garbled_gf_b0cb46d4.mp3", "Neit te geb ruiken, wat weg hout u hetten", "", 3553301683, 4073612943, Spawn, 1)
  59. end
  60. elseif HasLanguage(Spawn, 1) then
  61. local choice = math.random(1, 2)
  62. if choice == 1 then
  63. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_outland/ft/barbarian/barbarian_outland_1_aggro_gf_5cbe779b.mp3", "Enemies approach!", "", 991095436, 863644706, Spawn)
  64. else
  65. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_outland/ft/barbarian/barbarian_outland_1_aggro_gf_9ed7a064.mp3", "This is what we were trained for! Do not fail in your duty!", "", 3130720919, 1154579014, Spawn)
  66. end
  67. end
  68. end