abloodthirstyworg.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : SpawnScripts/WailingCaves/abloodthirstyworg.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.07.08 06:07:51
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function FollowMaster(NPC, Spawn)
  11. local zone = GetZone(NPC)
  12. local WorgMaster = GetSpawnByLocationID(zone, 404870)
  13. if WorgMaster ~= nil then
  14. MoveToLocation(NPC, -266.61, -49.44, -75.15, 2, "FollowMe")
  15. end
  16. end
  17. function FollowMe(NPC, Spawn)
  18. local zone = GetZone(NPC)
  19. local Worg2 = GetSpawnByLocationID(zone, 404851)
  20. local Worg3 = GetSpawnByLocationID(zone, 404850)
  21. local Worg4 = GetSpawnByLocationID(zone, 404849)
  22. MoveToLocation(NPC, -271.25, -49.44, -75.39, 2, "FollowMe2")
  23. MoveToLocation(Worg2, -266.61, -49.44, -75.15, 3)
  24. MoveToLocation(Worg3, -266.61, -49.44, -75.15, 3)
  25. MoveToLocation(Worg4, -266.61, -49.44, -75.15, 3)
  26. end
  27. function FollowMe2(NPC, Spawn)
  28. local zone = GetZone(NPC)
  29. local Worg2 = GetSpawnByLocationID(zone, 404851)
  30. local Worg3 = GetSpawnByLocationID(zone, 404850)
  31. local Worg4 = GetSpawnByLocationID(zone, 404849)
  32. MoveToLocation(NPC, -272.74, -49.44, -81.85, 4, "FollowMe3")
  33. MoveToLocation(Worg2, -271.25, -49.44, -75.39, 4)
  34. MoveToLocation(Worg3, -271.25, -49.44, -75.39, 4)
  35. MoveToLocation(Worg4, -271.25, -49.44, -75.39, 4)
  36. SetTempVariable(NPC, "Ready", "true")
  37. end
  38. function FollowMe3(NPC, Spawn)
  39. local zone = GetZone(NPC)
  40. local Worg2 = GetSpawnByLocationID(zone, 404851)
  41. local Worg3 = GetSpawnByLocationID(zone, 404850)
  42. local Worg4 = GetSpawnByLocationID(zone, 404849)
  43. MoveToLocation(Worg2, -273.00, -49.43, -79.14, 4)
  44. MoveToLocation(Worg3, -273.02, -49.44, -77.29, 4)
  45. MoveToLocation(Worg4, -273.05, -49.44, -75.31, 4)
  46. end
  47. function respawn(NPC)
  48. spawn(NPC)
  49. end