Skip to content

Commit

Permalink
Merge pull request #1027 from huffin/patch-558
Browse files Browse the repository at this point in the history
add despawn mechanic to trap adds
  • Loading branch information
mackal committed Oct 4, 2019
2 parents b152a5d + 1d8314f commit e20e435
Show file tree
Hide file tree
Showing 8 changed files with 136 additions and 0 deletions.
17 changes: 17 additions & 0 deletions powater/a_little_frog.lua
@@ -0,0 +1,17 @@
function event_spawn(e)
eq.set_timer('Depop', 1500 * 1000);
end

function event_combat(e)
if (e.joined == true) then
eq.stop_timer('Depop');
else
eq.set_timer('Depop', 1500 * 1000);
end
end

function event_timer(e)
if (e.timer == 'Depop') then
eq.depop();
end
end
17 changes: 17 additions & 0 deletions powater/a_young_barracuda.lua
@@ -0,0 +1,17 @@
function event_spawn(e)
eq.set_timer('Depop', 1500 * 1000);
end

function event_combat(e)
if (e.joined == true) then
eq.stop_timer('Depop');
else
eq.set_timer('Depop', 1500 * 1000);
end
end

function event_timer(e)
if (e.timer == 'Depop') then
eq.depop();
end
end
17 changes: 17 additions & 0 deletions powater/a_young_deepwater_kraken.lua
@@ -0,0 +1,17 @@
function event_spawn(e)
eq.set_timer('Depop', 1500 * 1000);
end

function event_combat(e)
if (e.joined == true) then
eq.stop_timer('Depop');
else
eq.set_timer('Depop', 1500 * 1000);
end
end

function event_timer(e)
if (e.timer == 'Depop') then
eq.depop();
end
end
17 changes: 17 additions & 0 deletions powater/a_young_hraquis.lua
@@ -0,0 +1,17 @@
function event_spawn(e)
eq.set_timer('Depop', 1500 * 1000);
end

function event_combat(e)
if (e.joined == true) then
eq.stop_timer('Depop');
else
eq.set_timer('Depop', 1500 * 1000);
end
end

function event_timer(e)
if (e.timer == 'Depop') then
eq.depop();
end
end
17 changes: 17 additions & 0 deletions powater/a_young_pirahna.lua
@@ -0,0 +1,17 @@
function event_spawn(e)
eq.set_timer('Depop', 1500 * 1000);
end

function event_combat(e)
if (e.joined == true) then
eq.stop_timer('Depop');
else
eq.set_timer('Depop', 1500 * 1000);
end
end

function event_timer(e)
if (e.timer == 'Depop') then
eq.depop();
end
end
17 changes: 17 additions & 0 deletions powater/a_young_regrua.lua
@@ -0,0 +1,17 @@
function event_spawn(e)
eq.set_timer('Depop', 1500 * 1000);
end

function event_combat(e)
if (e.joined == true) then
eq.stop_timer('Depop');
else
eq.set_timer('Depop', 1500 * 1000);
end
end

function event_timer(e)
if (e.timer == 'Depop') then
eq.depop();
end
end
17 changes: 17 additions & 0 deletions powater/a_young_sea_turtle.lua
@@ -0,0 +1,17 @@
function event_spawn(e)
eq.set_timer('Depop', 1500 * 1000);
end

function event_combat(e)
if (e.joined == true) then
eq.stop_timer('Depop');
else
eq.set_timer('Depop', 1500 * 1000);
end
end

function event_timer(e)
if (e.timer == 'Depop') then
eq.depop();
end
end
17 changes: 17 additions & 0 deletions powater/a_young_swordfish.lua
@@ -0,0 +1,17 @@
function event_spawn(e)
eq.set_timer('Depop', 1500 * 1000);
end

function event_combat(e)
if (e.joined == true) then
eq.stop_timer('Depop');
else
eq.set_timer('Depop', 1500 * 1000);
end
end

function event_timer(e)
if (e.timer == 'Depop') then
eq.depop();
end
end

0 comments on commit e20e435

Please sign in to comment.