GhiZardTheWorgMaster.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. FaceTarget(NPC, Spawn)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function WorgMaster(NPC, Spawn)
  17. MoveToLocation(NPC, -271.37, -49.44, -75.35, 2, "WorgMaster2")
  18. local zone = GetZone(NPC)
  19. local LordRee = GetSpawnByLocationID(zone, 404840)
  20. if LordRee ~= nil then
  21. PlayFlavor(LordRee, "", "Ahh, Ghi'Zard, just in time! Are your worgs ready to feed?", "scheme", 1689589577, 4560189, Spawn)
  22. end
  23. end
  24. function WorgMaster2(NPC, Spawn)
  25. MoveToLocation(NPC, -271.56, -49.35, -80.81, 2, "WorgMaster3")
  26. PlayFlavor(NPC, "", "Just picking my target, Master.", "", 1689589577, 4560189, Spawn)
  27. end
  28. function WorgMaster3(NPC, Spawn)
  29. MoveToLocation(NPC, -278.72, -49.44, -85.01, 2, "WorgMaster4", false)
  30. end
  31. function WorgMaster4(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. PlayFlavor(NPC, "", "Find your food, worgs! Attack!", "", 1689589577, 4560189, Spawn)
  34. SpawnSet(NPC, "attackable", "1")
  35. SpawnSet(NPC, "show_level", "1")
  36. SpawnSet(NPC, "faction", "1")
  37. Attack(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. SpawnSet(Worg1, "attackable", "1")
  43. SpawnSet(Worg1, "show_level", "1")
  44. SpawnSet(Worg1, "faction", "1")
  45. SpawnSet(Worg2, "attackable", "1")
  46. SpawnSet(Worg2, "show_level", "1")
  47. SpawnSet(Worg2, "faction", "1")
  48. SpawnSet(Worg3, "attackable", "1")
  49. SpawnSet(Worg3, "show_level", "1")
  50. SpawnSet(Worg3, "faction", "1")
  51. SpawnSet(Worg4, "attackable", "1")
  52. SpawnSet(Worg4, "show_level", "1")
  53. SpawnSet(Worg4, "faction", "1")
  54. end
  55. function death(NPC, Spawn)
  56. local zone = GetZone(NPC)
  57. local LordRee = GetSpawnByLocationID(zone, 404840)
  58. if LordRee ~= nil then
  59. 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)
  60. AddTimer(LordRee, 1000, "FinalPhase")
  61. end
  62. end