Jump to content
  • 0

GM Warp ( Only warps on gm lvl )


defendor

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  02/12/13
  • Last Seen:  

Heya,

 

2 NPC's one for sending me to a place and one for sending me back ( From a secret place only for GM's )

 

I need a script that if a GM talks to it it will warp too XXX.gat X, Y

 

And if a player talks too it nothing happens..

 

 

Thank you for your time,

 

 

Greetz!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  52
  • Reputation:   3
  • Joined:  01/05/12
  • Last Seen:  


if (getgmlevel() <= 30) close;

switch(select("Warp1:Warp2:Close"))

{

case 1:

            warp "mapname",1,1;

        close;

case 2:

            warp "mapname",1,1;

        close;

case 3: close;

}

Edited by yakuu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

Try this:

prontera,150,180,4    script    WarpGM1    45,3,3,{
end;


OnTouch:
if(getgmlevel() < 30) {
    dispbottom "You are not allowed to use this Portal, only GM's are.";
    end;
}
warp "map",x,y;
end;
}
// Warp back to town
map,x,y,0    warp    WarpGM2    3,3,prontera,150,180
 

 

 

You just need to exchange the map,x,y with the map you require.

Also don't forget to exchange the spaces in NPC Headers with an "TAB"

 

@Off-Topic: I know this is support but before I start explaing how to do it I will script it completely ;I, sry Mods <3.

 

Regards,

Chris

Edited by llchrisll
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  02/12/13
  • Last Seen:  

nice thx topic closed!

 

Thx

 

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