Jump to content
  • 0

Help With Auto Banned Over Status


Question

Posted

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 /heh

-	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 /ok

6 answers to this question

Recommended Posts

Posted

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
}
  • Upvote 1
Posted (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  /no1

 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 /ok

Edited by crixxz
Posted

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
}
Posted (edited)

hmm..... thanks for explaining /thx
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 /shy

Edited by crixxz

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...