9
3

TestGolem.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : SpawnScripts/thunderdome/TestGolem.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.12 01:07:43
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function death(NPC, Spawn)
  11. local zone = GetZone(NPC)
  12. local Spawn1 = GetSpawnByLocationID(zone, 133773738)
  13. local Spawn2 = GetSpawnByLocationID(zone, 133773739)
  14. local Spawn3 = GetSpawnByLocationID(zone, 133773740)
  15. local Spawn4 = GetSpawnByLocationID(zone, 133773741)
  16. if IsAlive(Spawn1) == true then
  17. elseif IsAlive(Spawn2) == true then
  18. elseif IsAlive(Spawn3) == true then
  19. elseif IsAlive(Spawn4) == true then
  20. else
  21. AddTimer(NPC, 3000, "Camp1BossSpawn", 1, Spawn)
  22. end
  23. end
  24. function Camp1BossSpawn(NPC, Spawn)
  25. local zone = GetZone(NPC)
  26. local Spawn1 = GetSpawnByLocationID(zone, 133773738)
  27. if GetSpawnByLocationID(zone, 133773735) == nil then
  28. local Camp1Boss=SpawnByLocationID(zone, 133773735)
  29. FaceTarget(Camp1Boss, Spawn)
  30. Attack(Camp1Boss, Spawn)
  31. end
  32. if GetSpawnByLocationID(zone, 133773747) == nil then
  33. local BossAdd1=SpawnByLocationID(zone, 133773747)
  34. FaceTarget(BossAdd1, Spawn)
  35. Attack(BossAdd1, Spawn)
  36. end
  37. if GetSpawnByLocationID(zone, 133773748) == nil then
  38. local BossAdd2=SpawnByLocationID(zone, 133773748)
  39. FaceTarget(BossAdd2, Spawn)
  40. Attack(BossAdd2, Spawn)
  41. end
  42. end
  43. function respawn(NPC)
  44. spawn(NPC)
  45. end