- script hourlypoints -1,{
OnPCLoginEvent:
attachnpctimer();
startnpctimer();
end;
OnTimer3600000:
if( checkidle() < .max_idle && checkvending() != 2) {
query_sql "UPDATE `login` SET `globalpoints`=`globalpoints`+"+.point_amt+" WHERE `account_id` = '"+ getcharid(3) +"'";
dispbottom "Voce Recebeu 1 Ponto M,M!RO Por Ficar Jogando Durante 1 hora";
}
if( checkidle() > .max_idle){
dispbottom "Ganhar ponto M,M!RO ficando parado eh facil neh??";
dispbottom "mas pra seu azar voce nao ira ganhar...";
dispbottom "porque voce ficou 15 ou Mais AFK";
}
if( checkvending() == 2){
dispbottom "Soh Para Informalo... Abrir Loja Ira Parar A contagem";
dispbottom "De Pontos Por Hora";
}
attachnpctimer();
initnpctimer();
end;
OnInit:
set .point_amt, 1; //ponto ganho por hora
set .max_idle = 15 * 30;//valor de 15 minutos
}
Question
oblinez
can some1 check this npc??
Link to comment
Share on other sites
0 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.