dispbottom "The hourly points event stopped because you were vending / chatting or you are a poring haha. Please relog if you wish to start again.";
stopnpctimer;
end;
}
//Check if Idle
getmapxy( .@map$, .@x, .@y, 0 );
if(@map$ == .@map$ && @x == .@x && @y == .@y) {
set @afk, @afk + 1;
}
If move timer resets
else {
set @afk, 0;
}
end;
set @map$, .@map$; set @x, .@x; set @y, .@y;
Idle Check for 5 Minutes
if(@afk == 0) {
dispbottom "The hourly points event stopped because you were idle for 5 minutes. Please relog if you wish to start again.";
stopnpctimer;
}
OnTimer60000:
set @minute, @minute + 1;
//Check for 1 Minute
if(@minute == 60){
set @minute,0;
set .@point_amt, 2; //Points to get every hour (default: 10)
getitem 21009,.@point_amt;
dispbottom "You received "+.@point_amt+"Event Ticket by staying ingame for 1 hour or you are lucky to get this haha!<.<";
set @consecutive_hour, @consecutive_hour + 1;
end;
}
//Check for 12 hours consecutive
if(@consecutive_hour == 12) {
set @consecutive_hour,0;
set .@cpoint_amt, 50; //Points to get for 12 Consecutive hours (default: 50)
getitem 21009,.@point_amt;
dispbottom "You received "+.@point_amt+"Event Ticket in playing for 12 consecutive hours. <.< dude you need sleep!";
}
stopnpctimer;
initnpctimer;
end;
}
wanted to as how to make it work for AFK people
i mean people can get the reward too even if they are afk been rescripting it for a day now cant get it to work! it works on people that are moving around
TIA hope someone can help this noob that is me hahaha!
Question
jadedlight
wanted to as how to make it work for AFK people
i mean people can get the reward too even if they are afk been rescripting it for a day now cant get it to work! it works on people that are moving around
TIA hope someone can help this noob that is me hahaha!
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.