• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Spawn monsters every 3 min (unless already spawned)

EvoSoft

Is Da Mapper
Joined
Mar 10, 2010
Messages
693
Reaction score
5
Location
Northen part of Sweden
Here's the code I want it in:
Code:
local pharaoh = {
   ["omruc"] = Storage.TheAncientTombs.Omruc,
   ["thalas"] = Storage.TheAncientTombs.Thalas,
   ["dipthrah"] = Storage.TheAncientTombs.Diphtrah,
   ["mahrdis"] = Storage.TheAncientTombs.Mahrdis,
   ["vashresamun"] = Storage.TheAncientTombs.Vashresamun,
   ["morguthis"] = Storage.TheAncientTombs.Morguthis,
   ["rahemos"] = Storage.TheAncientTombs.Rahemos,
   ["ashmunrah"] = Storage.TheAncientTombs.Ashmunrah
}

function onKill(cid, target)
   local t = Creature(target)
   if(pharaoh[string.lower(t:getName())]) then
     local player = Player(cid)
     Game.setStorageValue(pharaoh[string.lower(t:getName())], 1)
     addEvent(setGlobalStorageValue, 3 * 60 * 1000, pharaoh[string.lower(t:getName())], 0)
     player:say("You now have 3 minutes to exit this room through the teleporter. It will bring you to the reward room.", TALKTYPE_ORANGE_1)
   end
   return true
end

Thanks!
 
Back
Top