Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #550 from bruisefest/Knight_Crab_KA
Browse files Browse the repository at this point in the history
Adds timer to spawn for Knight Crabs in Jugner
  • Loading branch information
ibm2431 authored May 5, 2020
2 parents d1b2db2 + 02cea62 commit dc84de0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions scripts/zones/Jugner_Forest/Zone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ function onInitialize(zone)
tpz.conq.setRegionalConquestOverseers(zone:getRegionID())

tpz.helm.initZone(zone, tpz.helm.type.LOGGING)

local respawnTime = 900 + math.random(0, 6) * 1800 -- 0:15 to 3:15 spawn timer in 30 minute intervals
for offset = 1, 10 do
GetMobByID(ID.mob.KING_ARTHRO - offset):setRespawnTime(respawnTime)
end
end

function onZoneIn( player, prevZone)
Expand Down
2 changes: 1 addition & 1 deletion scripts/zones/Jugner_Forest/mobs/King_Arthro.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function onMobDespawn(mob)
GetMobByID(KingArthroID):setLocalVar("[POP]King_Arthro", 0)

-- Set respawn of 21:05 to 24:05
local respawnTime = math.random(21, 24) * 3600 + 300
local respawnTime = 75900 + math.random(0,6) * 1800 -- 21:05 to 24:05 respawn timer in 30 minute intervals
for offset = 1, 10 do
GetMobByID(KingArthroID - offset):setRespawnTime(respawnTime)
end
Expand Down
2 changes: 1 addition & 1 deletion sql/mob_groups.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7087,7 +7087,7 @@ INSERT INTO `mob_groups` VALUES (2,3742,104,'Spring_Pugil',0,128,147,0,0,16,18,0
INSERT INTO `mob_groups` VALUES (3,5133,104,'Thread_Leech',0,128,895,0,0,19,22,0);
INSERT INTO `mob_groups` VALUES (4,1323,104,'Ferocious_Pugil',0,128,147,0,0,24,25,0);
INSERT INTO `mob_groups` VALUES (5,2001,104,'Huge_Leech',0,128,895,0,0,27,29,0);
INSERT INTO `mob_groups` VALUES (6,2271,104,'Knight_Crab',300,0,93,0,0,35,35,0);
INSERT INTO `mob_groups` VALUES (6,2271,104,'Knight_Crab',0,128,93,0,0,35,35,0);
INSERT INTO `mob_groups` VALUES (7,2254,104,'King_Arthro',0,128,1449,35000,7500,55,55,0);
INSERT INTO `mob_groups` VALUES (8,3752,104,'Stag_Beetle',330,0,2321,0,0,20,23,0);
INSERT INTO `mob_groups` VALUES (9,4285,104,'Wandering_Sapling',330,0,2619,0,0,13,16,0);
Expand Down

0 comments on commit dc84de0

Please sign in to comment.