RainSystemCloud.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/qey_epic11_l10_arbor/RainSystemCloud.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.22 02:11:10
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC,12000,"DespawnSystem2")
  10. AddTimer(NPC,10500,"DespawnSystem1")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function DespawnSystem1(NPC,Spawn)
  16. zone = GetZone(NPC)
  17. Despawn(GetSpawnByLocationID(zone, 133780813))--RAIN
  18. Despawn(GetSpawnByLocationID(zone, 133780814))
  19. Despawn(GetSpawnByLocationID(zone, 133780815))
  20. end
  21. function DespawnSystem2(NPC,Spawn)
  22. SpawnSet((GetSpawn(NPC,2180002)),"visual_state",6867)
  23. SpawnSet((GetSpawn(NPC,2180003)),"visual_state",6867)
  24. SpawnSet((GetSpawn(NPC,2180004)),"visual_state",6867)
  25. SpawnSet((GetSpawn(NPC,2180005)),"visual_state",6867)
  26. SpawnSet((GetSpawn(NPC,2180006)),"visual_state",6867)
  27. SpawnSet((GetSpawn(NPC,2180007)),"visual_state",6867)
  28. SpawnSet((GetSpawn(NPC,2180010)),"visual_state",6867)
  29. SpawnSet((GetSpawn(NPC,2180011)),"visual_state",6867)
  30. SpawnSet((GetSpawn(NPC,2180015)),"visual_state",6867)
  31. SpawnSet((GetSpawn(NPC,2180017)),"visual_state",6867)
  32. SpawnSet((GetSpawn(NPC,2180020)),"visual_state",6867)
  33. SpawnSet((GetSpawn(NPC,2180023)),"visual_state",6867)
  34. zone = GetZone(NPC)
  35. Despawn(GetSpawnByLocationID(zone, 133780816))--BUBBLES
  36. Despawn(GetSpawnByLocationID(zone, 133780817))
  37. Despawn(GetSpawnByLocationID(zone, 133780818))
  38. Despawn(GetSpawnByLocationID(zone, 133780811)) --CLOUD
  39. end