9
3

qst_veliumdelver_x5_wall_expolsion.lua 950 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/qst_veliumdelver_x5_wall_expolsion.lua
  3. Script Purpose : the exploding animation for the ry'gorr exploding barrel as well as hiding the boulder
  4. Script Author : theFoof
  5. Script Date : 2013.6.12
  6. Script Notes :
  7. --]]
  8. local RyGorrOperations = 60
  9. function spawn(NPC)
  10. AddTimer(NPC, 2600, "explosion")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function explosion(NPC)
  16. local player = GetTempVariable(NPC, "player")
  17. local wall = GetSpawnByLocationID(GetZone(NPC), 441164)
  18. local wallrock = GetSpawnByLocationID(GetZone(NPC), 572711)
  19. SpawnSet(NPC, "visual_state", "1491")
  20. RemoveSpawnAccess(wall, player)
  21. RemoveSpawnAccess(wallrock, player)
  22. AddTimer(NPC, 500, "kill_explosion")
  23. SetStepComplete(player, RyGorrOperations, 1)
  24. SetTempVariable(NPC, "player", nil)
  25. end
  26. function kill_explosion(NPC)
  27. SpawnSet(NPC, "visual_state", "0")
  28. AddTimer(NPC, 4000, "Despawn")
  29. end