The problem is, it checks ALL stats, I just want it to check just one stat that goes overboard and ban them for example it only bans a char if he/she has 256 all stats but if he/she has 256 str or above, it doesn't ban and broadcast him/her. Thanks in advance!
- script AntiCheat -1,{
OnPCLoginEvent:
if(getgmlevel() <= 50){ //GM Excemption
readparam(bStr);
readparam(bAgi);
readparam(bVit);
readparam(bInt);
readparam(bDex);
readparam(bLuk);
if (readparam(bStr) > 255 || readparam(bAgi) > 255 || readparam(bVit) > 255 || readparam(bInt) > 255 || readparam(Dex) > 255 || readparam(bLuk) > 255){
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 "@block "+strcharinfo(0)+"";
announce strcharinfo(0) +" , You have been banned for having edited stats. Thank you for playing Union Ragnarok Online.",0;
end;
}
}
}
}
Question
China
I am currently using this script:
The problem is, it checks ALL stats, I just want it to check just one stat that goes overboard and ban them for example it only bans a char if he/she has 256 all stats but if he/she has 256 str or above, it doesn't ban and broadcast him/her. Thanks in advance!
Link to comment
Share on other sites
28 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.