carlinhous1996
New Member
guys, can someone help me with a raid system that happens once a week on a set day, but the time is random that removes 6 items that are on the ground and creates a creature.
ex: items 3122, 3123, 3124, 3125, 3126, 3127 they will be in an x coordinate the body will disappear and will create a y creature.
if it helps i have a similar one
ex: items 3122, 3123, 3124, 3125, 3126, 3127 they will be in an x coordinate the body will disappear and will create a y creature.
if it helps i have a similar one
Lua:
local shit = {
{boss = "Darkness Dragon unprisioned", pos = {x=9545, y=13666, z=8}}
}
function onThink(cid, interval)
local nomonster = {}
for _, v in pairs(shit) do
if not getCreatureByName(v.boss) then
table.insert(nomonster, _)
end
end
if #nomonster == 0 then return true end
local r = nomonster[math.random(1, #nomonster)]
doSummonCreature(shit[r].boss, shit[r].pos)
return true
end