alostscout1587677.lua 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/alostscout1587677.lua
  3. Script Purpose : Waypoint Path for alostscout1587677.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, 259.81, -6.83, 100.99, 2, math.random(14, 28))
  20. MovementLoopAddLocation(NPC, 269.75, -5.84, 108.98, 2, math.random(14, 28))
  21. MovementLoopAddLocation(NPC, 237.18, -6.03, 117.39, 2, math.random(14, 28))
  22. MovementLoopAddLocation(NPC, 253.33, -7.03, 89.93, 2, math.random(14, 28))
  23. MovementLoopAddLocation(NPC, 253.47, -6.83, 100.81, 2, math.random(14, 28))
  24. MovementLoopAddLocation(NPC, 244.75, -7.05, 87.51, 2, math.random(14, 28))
  25. MovementLoopAddLocation(NPC, 257.13, -6.38, 81.87, 2, math.random(14, 28))
  26. MovementLoopAddLocation(NPC, 241.25, -6.59, 76.68, 2, 0)
  27. MovementLoopAddLocation(NPC, 237.41, -6.41, 76.52, 2, math.random(14, 28))
  28. end
  29. function casted_on(NPC, Spawn, Message)
  30. local Cleric = GetSpawn(NPC, 2530111)
  31. if Message == "Divine Smite" and CompareSpawns(Spawn, Cleric) then
  32. local newScout = SpawnMob(GetZone(NPC), 2530196, false, GetX(NPC), GetY(NPC), GetZ(NPC), GetHeading(NPC))
  33. if newScout ~= nil then
  34. CopySpawnAppearance(newScout, NPC)
  35. SpawnSet(newScout, "visual_state", "0")
  36. SpawnSet(newScout, "attackable", "false")
  37. AddTimer(newScout, 5000, "Speak")
  38. end
  39. local mostHated = GetMostHated(NPC)
  40. if mostHated ~= nil and IsPlayer(mostHated) then
  41. if HasQuest(mostHated, JoiningTheForwardRanks) and GetQuestStep(mostHated, JoiningTheForwardRanks) == 2 then
  42. AddStepProgress(mostHated, JoiningTheForwardRanks, 2, 1)
  43. end
  44. end
  45. Despawn(NPC)
  46. end
  47. end
  48. function aggro(NPC, Spawn)
  49. if not HasLanguage(Spawn, 1) then -- IF PLAYER DOESN'T SPEAK HALASIAN THEN HE WILL HEAR THOSE VOICEOVERS.
  50. local choice = math.random(1, 2)
  51. if choice == 1 then
  52. 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)
  53. else
  54. 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)
  55. end
  56. elseif HasLanguage(Spawn, 1) then
  57. local choice = math.random(1, 2)
  58. if choice == 1 then
  59. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_outland/ft/barbarian/barbarian_outland_1_aggro_gf_5cbe779b.mp3", "Enemies approach!", "", 991095436, 863644706, Spawn)
  60. else
  61. 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)
  62. end
  63. end
  64. end