Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Script is dead
- local next = 0;
- local last = "";
- local function Save(invited,next)
- local tbl = {};
- tbl.name = invited;
- tbl.next = next;
- MOD.SetVar("betatimer",JSONEncode(tbl));
- end
- local function CheckAndGet()
- MOD.Timer("betatimer",1,CheckAndGet);
- local t = os.time();
- if t > next then
- local raw = MOD.GetVar("betatimer","#pathofexile");
- if raw~=nil then
- local data = JSONDecode(raw);
- if data.next > next then
- last = data.name;
- next = data.next;
- print(last.." has been invited to the closed beta!");
- end
- else
- next = t+30;
- end
- end
- end
- --[[MOD.Timer("betatimer",1,CheckAndGet);
- return function(msg,usr,chan)
- if last==nil or last=="" then
- return;
- end
- local coming = next-os.time();
- if coming <= 0 then
- coming = "Any moment now!";
- else
- coming = MOD.SecondToSpan(coming);
- end
- print("Last invite: "..last.." next invite: " .. coming);
- end]]
- return nil;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement