crixxz Posted January 2, 2014 Posted January 2, 2014 Hello, i got auto banned over status from http://rathena.org/board/topic/70252-anti-cheat-stats/?p=134514 - script Sample -1,{ OnPCLoginEvent: for( set .@i,13; .@i <=18; set .@i,.@i + 1 ) if( readparam(.@i) > 255 ) set .@OverStat,.@OverStat + 1; if( .@OverStat ){ mes "You have Over Stats...Cheating..will be blocked."; sleep2 5000; atcommand "@block "+strcharinfo(0); } end; } how to change on login checker to every minute check.I try like this but not work, nubie here - script autoban -1,{ OnPCLoginEvent: attachnpctimer ""+strcharinfo(0)+""; initnpctimer; end; OnTimer10000: for( set .@i,13; .@i <=18; set .@i,.@i + 1 ) if( readparam(.@i) > 249 ) set .@OverStat,.@OverStat + 1; if( .@OverStat ){ mes "You have Over Stats...Cheating..will be blocked."; sleep2 5000; atcommand "@block "+strcharinfo(0); } end; } thanks advanced Quote
AnnieRuru Posted January 2, 2014 Posted January 2, 2014 initnpctimer is use to run a timer on npc side if you want to run on player, you can try attachnpctimer but honestly .. for some reason I don't like using npctimer ... I prefer sleep - script kdjhfksjf -1,{ OnPCLoginEvent: while (1) { for ( .@i = 13; .@i <= 18; .@i++ ) { if ( readparam( .@i ) > 255 ) { mes "You have overstat ..."; sleep2 1000; atcommand "@block "+ strcharinfo(0); end; } } sleep2 1000 * 60; } end; // shouldn't reach } 1 Quote
crixxz Posted January 2, 2014 Author Posted January 2, 2014 (edited) initnpctimer is use to run a timer on npc side if you want to run on player, you can try attachnpctimer but honestly .. for some reason I don't like using npctimer ... I prefer sleep - script kdjhfksjf -1,{ OnPCLoginEvent: while (1) { for ( .@i = 13; .@i <= 18; .@i++ ) { if ( readparam( .@i ) > 255 ) { mes "You have overstat ..."; sleep2 1000; atcommand "@block "+ strcharinfo(0); end; } } sleep2 1000 * 60; } end; // shouldn't reach } thanks for the answer sir i try this script, but this script not recheck every 1 minute ( sleep2 1000 * 60 it mean 1 minute sir..? ) this script only checking at firts login. how make this auto check every 1 minute sir..? thanks Edited January 2, 2014 by crixxz Quote
AnnieRuru Posted January 2, 2014 Posted January 2, 2014 sleep2 1000 * 60; change into sleep2 1000; then you know it is checking every second Quote
crixxz Posted January 2, 2014 Author Posted January 2, 2014 sleep2 1000 * 60; change into sleep2 1000; then you know it is checking every second i try it sir, but nothing happen, i try with 5 second and reloadscript, with other char login str 250. its work when relogin. - script kdjhfksjf -1,{ OnPCLoginEvent: while (1) { for ( .@i = 13; .@i <= 18; .@i++ ) { if ( readparam( .@i ) > 249 ) { mes "You have overstat ..."; sleep2 1000; atcommand "@block "+ strcharinfo(0); end; } } sleep2 5000; } end; // shouldn't reach } Quote
AnnieRuru Posted January 2, 2014 Posted January 2, 2014 you should know @reloadscript will clear off every timer ... don't you ? try @reloadscript, then only relog not the other way round Quote
crixxz Posted January 2, 2014 Author Posted January 2, 2014 (edited) hmm..... thanks for explaining btw, is it possible make this script like hourly reward script,i mean, check for over status for online user at certain hours, using query_sql.I think this is better Edited January 2, 2014 by crixxz Quote
Question
crixxz
Hello, i got auto banned over status from http://rathena.org/board/topic/70252-anti-cheat-stats/?p=134514
how to change on login checker to every minute check.

I try like this but not work, nubie here
thanks advanced
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.