Placeholder.lua 927 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/thunderdome/Placeholder.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.12 02:07:34
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function death(NPC, Spawn)
  11. if GetSpawnLocationID(NPC)== 133773735 then
  12. local zone = GetZone(NPC)
  13. local Camp1Boss = GetSpawnByLocationID(zone, 133773735)
  14. if IsAlive(Camp1Boss) == true then
  15. else
  16. AddTimer(NPC, 5000, "Camp1Despawn", 1, Spawn)
  17. end
  18. end
  19. end
  20. function Camp1Despawn(NPC)
  21. local zone = GetZone(NPC)
  22. local Camp1Object = GetSpawnByLocationID(zone, 133773730)
  23. local Object1 = GetSpawnByLocationID(zone, 133773736)
  24. local Object2 = GetSpawnByLocationID(zone, 133773737)
  25. if Camp1Object~= nil then
  26. Despawn(Camp1Object)
  27. end
  28. if Object1~= nil then
  29. Despawn(Object1)
  30. end
  31. if Object2~= nil then
  32. Despawn(Object2)
  33. end
  34. end
  35. function respawn(NPC)
  36. spawn(NPC)
  37. end