Myth Posted July 13, 2013 Posted July 13, 2013 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) Quote
xienne15 Posted July 13, 2013 Posted July 13, 2013 - script Warper -1,{ OnWhisperGlobal: before the warper script. Quote
Patskie Posted July 13, 2013 Posted July 13, 2013 - 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; } Quote
Myth Posted July 17, 2013 Author Posted July 17, 2013 - 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? Quote
Patskie Posted July 17, 2013 Posted July 17, 2013 - 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 Quote
Emistry Posted July 17, 2013 Posted July 17, 2013 - 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; } Quote
Question
Myth
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.