alostscout1587674.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/alostscout1587674.lua
  3. Script Purpose : Waypoint Path for alostscout1587674.lua
  4. Script Author : Jabantiz (movement by Rylec)
  5. Script Date : 06-01-2020 10:07:40
  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, 255.92, -6.51, 79.23, 2, math.random(14, 28))
  20. MovementLoopAddLocation(NPC, 267.99, -6.16, 111.84, 2, 0)
  21. MovementLoopAddLocation(NPC, 268.45, -6.08, 114.75, 2, math.random(14, 28))
  22. MovementLoopAddLocation(NPC, 267.84, -6.25, 120.27, 2, 0)
  23. MovementLoopAddLocation(NPC, 266.01, -6.08, 125.18, 2, math.random(14, 28))
  24. MovementLoopAddLocation(NPC, 263.38, -6.82, 117.58, 2, 0)
  25. MovementLoopAddLocation(NPC, 259.79, -6.53, 92.73, 2, math.random(14, 28))
  26. MovementLoopAddLocation(NPC, 256.38, -6.3, 77.75, 2, 0)
  27. MovementLoopAddLocation(NPC, 255.53, -6.09, 70.8, 2, math.random(14, 28))
  28. MovementLoopAddLocation(NPC, 249.65, -6.81, 100.96, 2, math.random(14, 28))
  29. MovementLoopAddLocation(NPC, 244.45, -5.85, 121.32, 2, math.random(14, 28))
  30. MovementLoopAddLocation(NPC, 263.6, -6.83, 106.32, 2, math.random(14, 28))
  31. MovementLoopAddLocation(NPC, 249.81, -5.14, 127.92, 2, math.random(14, 28))
  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. local chance = math.random(1, 100)
  54. if chance <= 50 then
  55. local choice = math.random(1, 2)
  56. if choice == 1 then
  57. PlayFlavor(NPC, "voiceover/english/froglok_base_1/ft/froglok/froglok_base_1_1_aggro_gm_12dbb8ad.mp3", "Caught thee red handed, did I?", "", 2731512393, 911400384)
  58. else
  59. PlayFlavor(NPC, "voiceover/english/froglok_base_1/ft/froglok/froglok_base_1_1_aggro_gm_ad1fc682.mp3", "Looks as if I'll get my workout today.", 1559839053, 2456776330)
  60. end
  61. end
  62. end