Jump to content
  • 0

Warp to GM Area


Rivers

Question


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   47
  • Joined:  12/04/13
  • Last Seen:  

Hello, I'm trying to get this NPC to warp my character to a GM area we've added into the game. If anyone can help that'd be great.
 

//================= Vanaheim Online GM Area Butler ================//

veil,82,82,7    script    Alfred    109,{

    if(getgmlevel()>=99) {
        mes "[Alfred]";
        mes "Good day, Boss. Would you like to change the password today?"; next;
        if(!(select("Yes:No")&2)) {
            mes "[Alfred]";
            mes "Alright, what will it be this time?";
            next;
            input .@lb_pass$;
            mes "[Alfred]";
            mes "I'll keep it at ["+.@lb_pass$+"]. Mum's the word, sire!";
            set($lb_pass$,.@lb_pass$);
            close;
        }
    }
    mes "[Alfred]";
    mes "Password, please.";
    next;
    input .@lb_pass$;
    if(.@lb_pass$ != $lb_pass$){
        mes "[Alfred]";
        mes "Incorrect password.";
        close;
    }
    mes "[Alfred]";
    mes "That is correct. How can I be of service today, sire?";
    close2;

    if(getgmlevel()<=3) { 
        mes "Sorry. You don't have access here.";
        end;
         }
    else {
    mes "[ ^FF0000System^000000 ]";
    mes "Welcome ^FF0000"+strcharinfo(0)+"^000000 !";
    next;
    mes "[ ^FF0000System^000000 ]";
    mes "Come right in, sire. we will make arrangments inside.";
    next;
===>>>(This is where I need it to warp to 1@bamq x,y) <<<=====

 

Edited by Haruka Mayumi
Code Box
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  215
  • Reputation:   45
  • Joined:  05/03/13
  • Last Seen:  

From the documentation:

*warp "<map name>",<x>,<y>{,<char id>};

This command will take the invoking character or <char id>, if specified, to the specified map, and if
wanted, specified coordinates too, but these can be random.

	warp "place",50,55;

This would take them to X 50 Y 55 on the map called "place". If your X and Y
coordinates land on an unwalkable map square, it will send the warped character
to a random place. Same will happen if they are both zero:

	warp "place",0,0;

Notice that while warping people to coordinates 0,0 will normally get them into
a random place, it's not certain to always be so. Darned if I know where this is
actually coded, it might be that this happens because square 0,0 is unwalkable
on all official maps. If you're using custom maps, beware.

There are also three special 'map names' you can use.

"Random" will warp the player randomly on the current map.
"Save" and "SavePoint" will warp the player back to their save point.

so just :

warp "1@bamq",x,y;
close;

Is that what you were searching for?

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   47
  • Joined:  12/04/13
  • Last Seen:  

By the nine.... I was close to that, thanks for this! It works.

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