9
3

alostscout1587678.lua 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/alostscout1587678.lua
  3. Script Purpose : Waypoint Path for alostscout1587678.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. math.randomseed(os.time())
  15. voice = math.random (1,3)
  16. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1001.mp3", "", "hello", 0, 0, Spawn)
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function waypoints(NPC)
  22. MovementLoopAddLocation(NPC, 255.88, -5.68, 68.36, 2, math.random(14, 28))
  23. MovementLoopAddLocation(NPC, 255.02, -6.36, 72.81, 2, 0)
  24. MovementLoopAddLocation(NPC, 239.85, -6.95, 92.55, 2, math.random(14, 28))
  25. MovementLoopAddLocation(NPC, 249.78, -6.82, 84.55, 2, math.random(14, 28))
  26. MovementLoopAddLocation(NPC, 263.59, -6.83, 103.64, 2, math.random(14, 28))
  27. MovementLoopAddLocation(NPC, 243.51, -6.31, 73.91, 2, math.random(14, 28))
  28. MovementLoopAddLocation(NPC, 243.01, -6.67, 77.13, 2, 0)
  29. MovementLoopAddLocation(NPC, 234.55, -6.5, 95.42, 2, math.random(14, 28))
  30. MovementLoopAddLocation(NPC, 265.87, -6.62, 106.22, 2, math.random(14, 28))
  31. MovementLoopAddLocation(NPC, 261.24, -6.38, 90.17, 2, 0)
  32. MovementLoopAddLocation(NPC, 259.04, -6.38, 85.88, 2, 0)
  33. MovementLoopAddLocation(NPC, 257.95, -6.16, 81.79, 2, 0)
  34. end
  35. function casted_on(NPC, Spawn, Message)
  36. local Cleric = GetSpawn(NPC, 2530111)
  37. if Message == "Divine Smite" and CompareSpawns(Spawn, Cleric) then
  38. local newScout = SpawnMob(GetZone(NPC), 2530196, false, GetX(NPC), GetY(NPC), GetZ(NPC), GetHeading(NPC))
  39. if newScout ~= nil then
  40. CopySpawnAppearance(newScout, NPC)
  41. SpawnSet(newScout, "visual_state", "0")
  42. SpawnSet(newScout, "attackable", "false")
  43. AddTimer(newScout, 5000, "Speak")
  44. end
  45. local mostHated = GetMostHated(NPC)
  46. if mostHated ~= nil and IsPlayer(mostHated) then
  47. if HasQuest(mostHated, JoiningTheForwardRanks) and GetQuestStep(mostHated, JoiningTheForwardRanks) == 2 then
  48. AddStepProgress(mostHated, JoiningTheForwardRanks, 2, 1)
  49. end
  50. end
  51. Despawn(NPC)
  52. end
  53. end
  54. function aggro(NPC, Spawn)
  55. if not HasLanguage(Spawn, 1) then -- IF PLAYER DOESN'T SPEAK HALASIAN THEN HE WILL HEAR THOSE VOICEOVERS.
  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_garbled_gf_b80c3123.mp3", "Asfkher van baed rijs prakti kjen", "", 3736519483, 298405430, Spawn, 1)
  59. else
  60. 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)
  61. end
  62. elseif HasLanguage(Spawn, 1) then
  63. local choice = math.random(1, 2)
  64. if choice == 1 then
  65. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_outland/ft/barbarian/barbarian_outland_1_aggro_gf_5cbe779b.mp3", "Enemies approach!", "", 991095436, 863644706, Spawn)
  66. else
  67. 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)
  68. end
  69. end
  70. end