Jump to content
  • 0

Help With Auto Banned Over Status


crixxz

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  10/03/13
  • Last Seen:  

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

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  10/03/13
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

sleep2 1000 * 60;

change into

sleep2 1000;

then you know it is checking every second

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  10/03/13
  • Last Seen:  

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
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

you should know @reloadscript will clear off every timer ... don't you ?

try @reloadscript, then only relog

not the other way round

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  10/03/13
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...