@Dastgir Pojee: That doesn't work at all. >.>
Without a timer, you can't check if a player is afk. But if you don't care,
set .@num, query_sql("SELECT `account_id` FROM `char` WHERE `online` = '1'",.@j);
for(set .@i,0; .@i<.@num; set .@i,.@i+1) {
attachrid(.@j[.@i]);
if (!checkvending() && !checkchatting())
getitem 607,1;
detachrid;
}
end;