Jump to content
  • 0

How to add new commands in normal players


dragonbautista

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/14/15
  • Last Seen:  

@gotm command warp on gotm castle

@shake for champ no shake turn on and off

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

Compiled with no errors but not tested.
use @gotm in-game

non-gm chars: direct warp

gm chars:brings up gm menu
credits: Emistry for map validation

-	script	GOTM	-1,{
OnInit:
	bindatcmd "@gotm", strnpcinfo(0)+"::OnAtCommand";
	set .gmlvl, 99; //gm level access
	end;

OnAtCommand:
	if(getgroupid() < .gmlvl) {
		if ($gotm$ == "" || getmapusers($gotm$) < 0 ){
			dispbottom "No Guild of the Month Map has been set yet.";
			end;
		} else {
			warpchar $gotm$,$gotmxy[0],$gotmxy[1],getcharid(0);
		}	
	} else if (getgroupid() >= .gmlvl) {
		set .end, 0;
		while (!.end){
			mes "[Guild of the Month]";
			mes "Hi, What can I do for you today?";
			Switch(Select("Warp to GOTM:Set GOTM Coordinates:Cancel")){
				Case 1:
					if ($gotm$ == "" || getmapusers($gotm$) < 0){
						mes "No Guild of the Month Map has been set yet.";
					} else {
						warpchar $gotm$,$gotmxy[0],$gotmxy[1],getcharid(0);
						set .end, 1;
					}
					break;
				Case 2:
					mes "[Guild of the Month]";
					mes "Please enter the map's name";
					input $gotm$;
					if (getmapusers($gotm$) < 0){
						mes "Sorry, the map you entered is invalid.";
					} else {
						mes "Enter the X Coordinate";
						input $gotmxy[0];
						mes "Enter the Y Coordinate";
						input $gotmxy[1];
						next;
						mes "[Guild of the Month]";
						mes "Guild of the Month Map successfully set.";
						mes $gotm$+": "+$gotmxy[0]+","+$gotmxy[1];
					} 	
					break;
				Default:
					set .end,1;
					break;
			}
			next;
		}
	}
	end;
}

//edit changed something. please retry. added screenshots

 

post-7005-0-36158200-1443769092_thumb.jpgpost-7005-0-20551800-1443769094_thumb.jpgpost-7005-0-03931500-1443769096_thumb.jpgpost-7005-0-72145300-1443769097_thumb.jpg


//edit

Didn't work for him, he's using 3ceam.

Edited by jezznar
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  545
  • Reputation:   220
  • Joined:  03/01/13
  • Last Seen:  

The shake effect should be canceled with /effect. If that isn't a viable option, you can can choose to remove the shake effect when diffing your client. Can download WeeDiffGen here.

I'm not sure what you mean with @gotm...?

Regards,
~Azura Skyy

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/14/15
  • Last Seen:  

The shake effect should be canceled with /effect. If that isn't a viable option, you can can choose to remove the shake effect when diffing your client. Can download WeeDiffGen here.

I'm not sure what you mean with @gotm...?

Regards,

~Azura Skyy

about @gotm command. what i mean is if i type or players @gotm auto warp on gotm castle / guild of the month castle.

Edited by dragonbautista
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

how do you know what is the guild of the month castle? do you have a script that sets this? 

 

I need to know how it is set so I can help you.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/14/15
  • Last Seen:  

how do you know what is the guild of the month castle? do you have a script that sets this? 

 

I need to know how it is set so I can help you.

Dont have. but the coor is alde_gld 50 84 if i type @gotm auto warp to alde_gld 50 84

Edited by dragonbautista
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...