For those who seek a reward online and see the other complicated: D
in fuction> cha_timer
----------------------Reward Online---------------------------------------------
function cha_timer(role, freq, time)
if math.mod(now_tick, 86400) == 0 and now_tick > 0 then -- Means 24 hours , 1440 In mins! (!)
local cha = TurnToCha ( role )
local rad = math.random ( 1, 4 )
if rad == 1 then
BickerNotice ( cha , "You've been Online for 24 Hours. Redeemed OOOOOO")
GiveItem ( cha , 0 , xxxx , yy , 0 )
elseif rad == 2 then
BickerNotice ( cha , "You've been Online for 24 Hours. Redeem OOOOO!")
GiveItem ( cha , 0 , xxxx , yy , 0 )
elseif rad == 3 then
BickerNotice ( cha , "You've been Online for 24 Hours. Redeemed OOOOO")
GiveItem ( cha , 0 , xxxx , yy , 0 )
elseif rad == 4 then
BickerNotice ( cha , "You've been Online for 24 Hours. Redeemed OOOOO")
GiveItem ( cha , 0 , xxxx , yy , 0 )
end
end
end
------------------------------------------------------------------------------------------------------------
xxxx: Id item
yy:number of item
OOOOOO: Name of item
86400: number in minutes = 24 Horas