Jump to content
  • 0

NPC Wishper Warper


Question

Posted

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)

 

5 answers to this question

Recommended Posts

Posted


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

}

Posted
-    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?

Posted

 

-    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

Posted


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

}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...