9
3

GhiZardTheWorgMaster.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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")
  30. end
  31. -- BELOW MAKES WORGS AND GHI'ZARD ATTACKABLE
  32. function WorgMaster4(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. PlayFlavor(NPC, "", "Find your food, worgs! Attack!", "", 1689589577, 4560189, Spawn)
  35. SpawnSet(NPC, "attackable", "1")
  36. SpawnSet(NPC, "show_level", "1")
  37. SpawnSet(NPC, "faction", "1")
  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. SpawnSet(Worg1, "attackable", "1")
  44. SpawnSet(Worg1, "show_level", "1")
  45. SpawnSet(Worg1, "faction", "1")
  46. SpawnSet(Worg2, "attackable", "1")
  47. SpawnSet(Worg2, "show_level", "1")
  48. SpawnSet(Worg2, "faction", "1")
  49. SpawnSet(Worg3, "attackable", "1")
  50. SpawnSet(Worg3, "show_level", "1")
  51. SpawnSet(Worg3, "faction", "1")
  52. SpawnSet(Worg4, "attackable", "1")
  53. SpawnSet(Worg4, "show_level", "1")
  54. SpawnSet(Worg4, "faction", "1")
  55. end
  56. -- BELOW
  57. function death(NPC, Spawn)
  58. local zone = GetZone(NPC)
  59. local LordRee = GetSpawnByLocationID(zone, 404840)
  60. if LordRee ~= nil then
  61. 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)
  62. AddTimer(LordRee, 1000, "FinalPhase")
  63. end
  64. end