Jump to content
  • 0

GM / Player OnPCLoginEvent


EL Dragon

Question


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

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 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

 

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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

?? I don't understand your issue

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

oh fail xD ty for help Pneuma

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