Jump to content
  • 0

NPC Wishper Warper


Myth

Question


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  225
  • Reputation:   5
  • Joined:  05/30/12
  • Last Seen:  

a wishpering npc that warp a player

 

example;

 

npc:sample = warp 1 (prontera 150,50)

npc:sample = warp 2 (prontera 541,50)

npc:sample = warp 3 (payon 151,50)

npc:sample = warp 4 (izlude 185,50)

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   11
  • Joined:  01/09/12
  • Last Seen:  

-	script	Warper	-1,{
OnWhisperGlobal:

before the warper script.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  


-    script    sample    -1,{

    OnWhisperGlobal:

        if ( getgmlevel() ) end;

        else if ( @whispervar0$ == "warp" && @whispervar1$ == "1" ) warp "prontera",150,150;

        else if ( @whispervar0$ == "warp" && @whispervar1$ == "2" ) warp "prontera",541,50;

        else if ( @whispervar0$ == "warp" && @whispervar1$ == "3" ) warp "payon",151,50;

        else if ( @whispervar0$ == "warp" && @whispervar1$ == "4" ) warp "izlude",185,50;

        else end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  225
  • Reputation:   5
  • Joined:  05/30/12
  • Last Seen:  

-    script    sample    -1,{
    OnWhisperGlobal:
        if ( getgmlevel() ) end;
        else if ( @whispervar0$ == "warp" && @whispervar1$ == "1" ) warp "prontera",150,150;
        else if ( @whispervar0$ == "warp" && @whispervar1$ == "2" ) warp "prontera",541,50;
        else if ( @whispervar0$ == "warp" && @whispervar1$ == "3" ) warp "payon",151,50;
        else if ( @whispervar0$ == "warp" && @whispervar1$ == "4" ) warp "izlude",185,50;
        else end;
}

 

 

even player can use this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

 

-    script    sample    -1,{
    OnWhisperGlobal:
        if ( getgmlevel() ) end;
        else if ( @whispervar0$ == "warp" && @whispervar1$ == "1" ) warp "prontera",150,150;
        else if ( @whispervar0$ == "warp" && @whispervar1$ == "2" ) warp "prontera",541,50;
        else if ( @whispervar0$ == "warp" && @whispervar1$ == "3" ) warp "payon",151,50;
        else if ( @whispervar0$ == "warp" && @whispervar1$ == "4" ) warp "izlude",185,50;
        else end;
}

 

 

even player can use this?

Normal players can use this. GM cannot

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  


- script Sample -1,{

OnInit:

set .gm_level,90;

setarray .map$,"prontera","prontera","prontera";

setarray .map_x,150,150,150;

setarray .map_y,150,150,150;

end;

OnWhisperGlobal:

if( getgmlevel() >= .gm_level && @whispervar0$ == "warp" ){

set .@i,atoi( @whispervar1$ );

warp .map$[.@i],.map_x[.@i],.map_y[.@i];

}

end;

}

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