Jump to content
  • 0

[ ASK ] Over Stats Scripts


Question

Posted (edited)


- script AntiCheat -1,{

OnPCLoginEvent:

if(getgmlevel() <= 50){ //GM Excemption

readparam(bStr);

readparam(bAgi);

readparam(bVit);

readparam(bInt);

readparam(bDex);

readparam(bLuk);

if (readparam(bStr) > 99 || readparam(bAgi) > 99 || readparam(bVit) > 99 || readparam(bInt) > 99 || readparam(Dex) > 99 || readparam(bLuk) > 99){

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 8000; //5 Seconds delay

atcommand "@block "+strcharinfo(0)+"";

announce strcharinfo(0) +" , You have been banned for having edited stats. Thank you for playing Medan Ragnarok Online.",0;

end;

}

}

}

hmmm Is anyone able to help me?

I was dizzy with all the new character in the block without overstats.

anyone can help thanks...
Edited by Yugosh

2 answers to this question

Recommended Posts

Posted

Dunno what your problem may be, but at least there is a missing end; and because you're using mes you have to finalize the dialog with close;.

-	script	AntiCheat	-1,{

OnPCLoginEvent:
	if(getgmlevel() > 50) //GM Excemption
		end;
	
	if (readparam(bStr) > 99 || readparam(bAgi) > 99 || readparam(bVit) > 99 || readparam(bInt) > 99 || readparam(bDex) > 99 || readparam(bLuk) > 99){
		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 8000; // 8 Seconds delay
		atcommand "@block "+strcharinfo(0);
		announce strcharinfo(0) + " , You have been banned for having edited stats. Thank you for playing Medan Ragnarok Online.",0;
		close;
	} 
	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...