LucasFerraz
Systems Analyst
Is possible a function that save house?
Example: Player 1 is logged in at 00:00(his house will save 2h, 4h, 6h..)
Example: Player 1 is logged in at 00:00(his house will save 2h, 4h, 6h..)
function valid(f) --function by Mock
return function(p,...)
if isCreature(p) then
return f(p,...)
end
end
end
function savehouse(cid)
local playerHouseId = getHouseByPlayerGUID(getPlayerGUID(cid))
doSaveHouse(playerHouseId)
end
timetomakesave = 2*60*60*1000 --two hours
addEvent(valid(savehouse),timetomake,cid)