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