9
3

alostscout1587680.lua 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/alostscout1587680.lua
  3. Script Purpose : Waypoint Path for alostscout1587680.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, 238.51, -6.76, 82.01, 2, math.random(14, 28))
  20. MovementLoopAddLocation(NPC, 238.98, -6.52, 77.68, 2, 0)
  21. MovementLoopAddLocation(NPC, 244.77, -5.56, 68.4, 2, math.random(14, 28))
  22. MovementLoopAddLocation(NPC, 252.05, -6.44, 73.71, 2, math.random(14, 28))
  23. MovementLoopAddLocation(NPC, 242.52, -6.67, 78.94, 2, math.random(14, 28))
  24. MovementLoopAddLocation(NPC, 264.93, -6.83, 106.43, 2, math.random(14, 28))
  25. MovementLoopAddLocation(NPC, 245.82, -6.04, 71.11, 2, math.random(14, 28))
  26. MovementLoopAddLocation(NPC, 249.56, -6.88, 76.67, 2, math.random(14, 28))
  27. end
  28. function casted_on(NPC, Spawn, Message)
  29. local Cleric = GetSpawn(NPC, 2530111)
  30. if Message == "Divine Smite" and CompareSpawns(Spawn, Cleric) then
  31. local newScout = SpawnMob(GetZone(NPC), 2530196, false, GetX(NPC), GetY(NPC), GetZ(NPC), GetHeading(NPC))
  32. if newScout ~= nil then
  33. CopySpawnAppearance(newScout, NPC)
  34. SpawnSet(newScout, "visual_state", "0")
  35. SpawnSet(newScout, "attackable", "false")
  36. AddTimer(newScout, 5000, "Speak")
  37. end
  38. local mostHated = GetMostHated(NPC)
  39. if mostHated ~= nil and IsPlayer(mostHated) then
  40. if HasQuest(mostHated, JoiningTheForwardRanks) and GetQuestStep(mostHated, JoiningTheForwardRanks) == 2 then
  41. AddStepProgress(mostHated, JoiningTheForwardRanks, 2, 1)
  42. end
  43. end
  44. Despawn(NPC)
  45. end
  46. end
  47. function aggro(NPC, Spawn)
  48. if not HasLanguage(Spawn, 1) then -- IF PLAYER DOESN'T SPEAK HALASIAN THEN HE WILL HEAR THOSE VOICEOVERS.
  49. local choice = math.random(1, 2)
  50. if choice == 1 then
  51. 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)
  52. else
  53. 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)
  54. end
  55. elseif HasLanguage(Spawn, 1) then
  56. local choice = math.random(1, 2)
  57. if choice == 1 then
  58. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_outland/ft/barbarian/barbarian_outland_1_aggro_gf_5cbe779b.mp3", "Enemies approach!", "", 991095436, 863644706, Spawn)
  59. else
  60. 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)
  61. end
  62. end
  63. end