9
3

Rush.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/CircleElders/Rush.lua
  3. Script Author : premierio015
  4. Script Date : 2020.05.24 10:05:59
  5. Script Purpose : Rush Script for Circle Event
  6. :
  7. --]]
  8. local KaylID = 433249
  9. local BreezeID = 1587624
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function death(NPC, Spawn) -- When Rush dies, after 10 sec Old Bruiser will attack.
  16. AddTimer(NPC, 10000, "Mob3Attack", 1, Spawn)
  17. end
  18. function Mob3Attack(NPC, Spawn)
  19. local zone = GetZone(NPC)
  20. local Breeze = GetSpawnByLocationID(zone, BreezeID)
  21. local Kayl = GetSpawnByLocationID(zone, KaylID)
  22. if Breeze ~= nil then
  23. Say(Kayl, "Breeze Attack!")
  24. SpawnSet(Breeze, "attackable", 1)
  25. SpawnSet(Breeze, "show_level", 1)
  26. SpawnSet(Breeze, "faction", 1) -- Lemmeron added please check this is what you want
  27. SendPopUpMessage(Spawn, "Old Bruiser screeches at " .. GetName(Spawn) .. " ", 255, 0, 0) -- shouldnt this say Breeze ?
  28. SendMessage(Spawn, "Old Bruiser screeches at " .. GetName(Spawn) .. " ", "red") -- shouldnt this say Breeze ?
  29. Attack(Breeze, Spawn)
  30. end
  31. end