GhiZardTheWorgMaster.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. --[[
  2. Script Name : SpawnScripts/WailingCaves/GhiZardTheWorgMaster.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.07.08 05:07:04
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. SetAggroRadius(NPC, 20, true)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function WorgMaster(NPC, Spawn)
  18. MoveToLocation(NPC, -271.37, -49.44, -75.35, 2, "WorgMaster2")
  19. local zone = GetZone(NPC)
  20. local LordRee = GetSpawnByLocationID(zone, 404840)
  21. if LordRee ~= nil then
  22. PlayFlavor(LordRee, "", "Ahh, Ghi'Zard, just in time! Are your worgs ready to feed?", "scheme", 1689589577, 4560189, Spawn)
  23. end
  24. local Worg = GetSpawnByLocationID(zone, 404852)
  25. if Worg ~= nil then
  26. AddTimer(Worg, 1000, "FollowMaster")
  27. end
  28. end
  29. function WorgMaster2(NPC, Spawn)
  30. MoveToLocation(NPC, -271.56, -49.35, -80.81, 2, "WorgMaster3")
  31. PlayFlavor(NPC, "", "Just picking my target, Master.", "", 1689589577, 4560189, Spawn)
  32. end
  33. function WorgMaster3(NPC, Spawn)
  34. MoveToLocation(NPC, -278.72, -49.44, -85.01, 2, "WorgMaster4")
  35. end
  36. -- BELOW MAKES WORGS AND GHI'ZARD ATTACKABLE
  37. function WorgMaster4(NPC, Spawn)
  38. local zone = GetZone(NPC)
  39. local Worg1 = GetSpawnByLocationID(zone, 404849)
  40. local Worg2 = GetSpawnByLocationID(zone, 404850)
  41. local Worg3 = GetSpawnByLocationID(zone, 404851)
  42. local Worg4 = GetSpawnByLocationID(zone, 404852)
  43. FaceTarget(NPC, Spawn)
  44. PlayFlavor(NPC, "", "Find your food, worgs! Attack!", "", 1689589577, 4560189, Spawn)
  45. SpawnSet(NPC, "attackable", "1")
  46. SpawnSet(NPC, "show_level", "1")
  47. SpawnSet(NPC, "faction", "1")
  48. SpawnSet(Worg1, "attackable", "1")
  49. SpawnSet(Worg1, "show_level", "1")
  50. SpawnSet(Worg1, "faction", "1")
  51. SpawnSet(Worg2, "attackable", "1")
  52. SpawnSet(Worg2, "show_level", "1")
  53. SpawnSet(Worg2, "faction", "1")
  54. SpawnSet(Worg3, "attackable", "1")
  55. SpawnSet(Worg3, "show_level", "1")
  56. SpawnSet(Worg3, "faction", "1")
  57. SpawnSet(Worg4, "attackable", "1")
  58. SpawnSet(Worg4, "show_level", "1")
  59. SpawnSet(Worg4, "faction", "1")
  60. end
  61. -- BELOW
  62. function death(NPC, Spawn)
  63. local zone = GetZone(NPC)
  64. local LordRee = GetSpawnByLocationID(zone, 404840)
  65. if LordRee ~= nil then
  66. PlayFlavor(LordRee, "", "Poor Ghi'Zard, I'll have to feed him to the spiders. As for you, my patience is gone. It's time to deal with you myself. Ladies, after you!", "", 1689589577, 4560189, Spawn)
  67. AddTimer(LordRee, 1000, "FinalPhase")
  68. end
  69. end