Jump to content
  • 0

Anti Cheat Status


DJFUNK

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  115
  • Reputation:   4
  • Joined:  10/25/12
  • Last Seen:  

 
 

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

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  115
  • Reputation:   4
  • Joined:  10/25/12
  • Last Seen:  

thankyou very much for your fastrespond :D

 

/??

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