Jump to content
  • 0

Anti Cheat Status


Question

Posted (edited)
 
 

Hi rA :D

I'm currently using r17214

and I dont know its a bug or not, because some of my players got a 120 base all status.

I set 120 max status on my server.

I use this statpoint on my server:

statpoint.txt

 

at past, I set 125 max status on my server, and I want to change it. 120 max stats is enough I think.

so, I reset all player status using this script:

-	script	Restart	-1,{
OnPCLoginEvent:
	if(!resetevent){
	resetstatus;
	set resetevent,1;
}
end;
}

 

is there something wrong with my statpoint or my resetstatus script? that cause a bug.

I dunno how the bug work, that can make some of my player got 120 base all status.

 

btw, I've read this topic and I put this script:

-	script	AntiCheat	-1,{
OnPCLoginEvent:
if(getgroupid() <= 3){ //GM Excemption
readparam(bStr);
readparam(bAgi);
readparam(bVit);
readparam(bInt);
readparam(bDex);
readparam(bLuk);
if (readparam(bStr) > 199 && readparam(bAgi) > 199 && readparam(bVit) > 199 && readparam(bInt) > 199 && readparam(Dex) > 199 && readparam(bLuk) > 199){{
mes "[^FF0000Anti Cheat System^000000]";
mes "We have detected you having stats over the limit. You will be disconnected shortly. If this is an error please contact the Game Master immediately.";
sleep2 5000; //5 Seconds delay
atcommand "@kick "+strcharinfo(0);
announce strcharinfo(0) +" , You have been kicked for having edited stats.",0;
end; 
}
}
}
}

but I doesn't work.

Can anyone tell me how? or, what should I do, to modify that script to:

= if player got more than 2 max status (120), got kicked =

eg : str 120 agi 120 vit 120 and then, got kicked.

 

thanks in advance,

and sorry for my bad english :D

 
Edited by DJFUNK

2 answers to this question

Recommended Posts

Posted

try this

-	script	Sample	-1,{
OnPCLoginEvent:
for( .@i = 13; .@i <= 18; .@i++ )
	if( readparam( .@i ) >= 120 )
		.@over_stat++;
if( .@over_stat > 2 ){
	dispbottom "You have more than 2 over stats";
	// do whatever you want here.
}
end;
}
  • Upvote 1

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...