mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 14:44:55 +02:00
finished druid outfit quest
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
local function setBloomingGriffinclaw()
|
||||
local position = {x = 32024, y = 32830, z = 4}
|
||||
if Game.isItemThere(position,5687) then
|
||||
Game.removeItemOnMap(position, 5687)
|
||||
Game.createItem(5658, 1, position)
|
||||
Game.sendMagicEffect(position, 15)
|
||||
end
|
||||
end
|
||||
|
||||
function onStartup()
|
||||
math.randomseed(os.mtime())
|
||||
|
||||
@@ -47,4 +56,18 @@ function onStartup()
|
||||
until not result.next(resultId)
|
||||
result.free(resultId)
|
||||
end
|
||||
|
||||
-- blooming griffinclaw
|
||||
local dayNow = tonumber(os.date("%d", os.time()))
|
||||
if (dayNow == 1) then
|
||||
setGlobalStorageValue(1, 0)
|
||||
end
|
||||
|
||||
if getGlobalStorageValue(1) == 0 then
|
||||
local randomDay = math.random(dayNow, 28)
|
||||
if (randomDay == 28) then
|
||||
setGlobalStorageValue(1, 1)
|
||||
addEvent(setBloomingGriffinclaw, 10000)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user