9
3

OldBruiser.lua 1.1 KB

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