Jump to content
  • 0

GM / Player OnPCLoginEvent


Question

Posted

this is the script

-	script	gm_is_online	-1,{

OnPCLoginEvent:
       
	if (getgmlevel()>=99) goto L_admin;
	if (getgmlevel()>=90) goto L_co_admin;
	if( getgmlevel()>=10) goto L_head;
	if (getgmlevel()>=4) goto L_event;
	if (getgmlevel()>=3) goto L_support;
	if (getgmlevel()>=2) goto L_helper;
	readparam(bStr);
	readparam(bAgi);
	readparam(bVit);
	readparam(bInt);
	readparam(bDex);
	readparam(bLuk);
	if ((class >= 4054 && class <= 4079) || (class >= 4023 && class <= 4045) || (class >= 4096 && class <= 4108)){ //3rd Job Class
		if (readparam(bStr) > 300 || readparam(bAgi) > 300 || readparam(bVit) > 300 || readparam(bInt) > 300 || readparam(Dex) > 300 || readparam(bLuk) > 300){
			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.";
			atcommand "@option 2 0 0";
			atcommand "@battleignore";
			setoption 0x2,1;
			sc_start sc_berserk, 1000000000, 1;
			sleep2 5000; //5 Seconds delay
			atcommand "@kick "+strcharinfo(0)+"";
			end;
		}
	} else { //Other than 3rd Job Class
		if (readparam(bStr) > 300 || readparam(bAgi) > 300 || readparam(bVit) > 300 || readparam(bInt) > 300 || readparam(Dex) > 300 || readparam(bLuk) > 300){
			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.";
			atcommand "@option 2 0 0";
			atcommand "@battleignore";
			setoption 0x2,1;
			sc_start sc_berserk, 1000000000, 1;
			sleep2 5000; //5 Seconds delay
			atcommand "@kick "+strcharinfo(0)+"";
			end;
			L_admin:
			atcommand "@speed 1";
			announce "[ Admin ] "+strcharinfo(0)+" ist online",bc_all,0x00ff66;
			specialeffect2 377;
			specialeffect2 381;
			close;
			L_co_admin:
			atcommand "@speed 1";
			announce "[ Co Admin ] "+strcharinfo(0)+" ist online",bc_all,0x00ff66;
			specialeffect2 377;
			specialeffect2 381;
			close;
			L_head:
			atcommand "@speed 1";
			announce "[ Head GM ] "+strcharinfo(0)+" ist online",bc_all,0x00ff66;
			specialeffect2 377;
			specialeffect2 381;
			close;
			L_event:
			atcommand "@speed 1";
			announce "[ Event GM ] "+strcharinfo(0)+" online",bc_all,0x00ff66;
			specialeffect2 377;
			specialeffect2 381;
			close;
			L_support:
			atcommand "@speed 1";
			announce "[ Support GM ] "+strcharinfo(0)+" online",bc_all,0x00ff66;
			specialeffect2 377;
			specialeffect2 381;
			close;
			L_helper:
			atcommand "@speed 1";
			announce "[ Helper ] "+strcharinfo(0)+" online",bc_all,0x00ff66;
			specialeffect2 377;
			specialeffect2 381;
			close;
			end;
		}
	}
}

the porblem is at each lvl gm comes  the helper announce 

4 answers to this question

Recommended Posts

Posted

 

the if (getgmlevel) do not go i have gm lvl 99 and the script  classifies me as Helper so get on login

announce "[ Helper ] "+strcharinfo(0)+" online",bc_all,0x00ff66;

You need to make the level checks "==" not >=" because that checks everything higher and equal to that level

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