tibera
Active Member
hello, i got this script for lever boss, but is 24 hour.
any help me to edit for use with 2 hour?
any help me to edit for use with 2 hour?
LUA:
function onUse(cid, item, pos, itemEx, toPosition)
local actionid = 19006
local valueid = 3007 --store global
local dia_atual, ultimo_dia = tonumber(os.date("%d")), tonumber(getGlobalStorageValue(valueid))
if(ultimo_dia ~= dia_atual)then
setGlobalStorageValue(valueid,dia_atual)
doCreateMonster("Demon Darakan", {x=1547,y=45,z=7}) -- nome do boss e posição
doPlayerPopupFYI(cid, "O Boss Demon Darakan ressurgiu das cinzas, mate-o!!!")
else
doPlayerPopupFYI(cid, "[IMPORTANTE]: O Boss Demon Darakan esta morto, somente daqui 24h, nao entre no covil ou voce perde seus tokens!")
end
return true
end