karazu 33 Posted November 30, 2013 Hello I found several scripts already with payment but it will only warp in 1 mapIf its ok I would like to request to put menu in it.like when u click it and u have the item it will warp you to the map.the menu is likepronterapayongeffen and so on. Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted November 30, 2013 (edited) Here you go! prontera,150,150,0 script Sample 100,{ if ( countitem(.item_id) < .amount ) close; mes .n$; mes "Hey where would you like to go?"; next; .@s = select(implode(.Maps$, ":")) - 1; mes .n$; mes "So you want to go to " +strtolower(.Maps$[.@s])+ "?"; next; if ( select("Yes:No") - 1 ) close; mes .n$; mes "Bye!"; delitem .item_id, .amount; warp strtolower(.Maps$[.@s]),0,0; close; OnInit: setarray .Maps$[0],"Payon","Prontera","Geffen"; .item_id = 7227; .amount = 5; .n$ = "[" +strnpcinfo(1)+ "]"; end;} Edited November 30, 2013 by Patskie 1 Mumbles reacted to this Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 30, 2013 (edited) Hello, You again Patskie thank you for that. is it possible to put a coordinates please?and is it possible that you will change the name for exampleI will use Aliasexample The City of Pride = prontera 150 150 The City of Genius = geffen 150 150The City of Patskie = payon 150 150 Edited November 30, 2013 by karazu Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted November 30, 2013 Ya it's possible however i need to re-write my script Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 30, 2013 Ya it's possible however i need to re-write my script I will wait. Thank you in Advance Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted November 30, 2013 prontera,150,150,0 script Sample 100,{ if ( countitem(.item_id) < .amount ) close; mes .n$; mes "Hey where would you like to go?"; next; for ( .@i = 0; .@i < .size; .@i++ ) { .@menu$ += .Desc$[.@i]; .@menu$ += ":"; } .@s = select(.@menu$) - 1; mes .n$; mes "So you want to go to " +strtolower(.Maps$[.@s])+ "?"; next; if ( select("Yes:No") - 1 ) close; mes .n$; mes "Bye!"; delitem .item_id, .amount; warp strtolower(.Maps$[.@s]),0,0; close; OnInit: setarray .Desc$[0],"The City of Pride","The City of Genius","The City of Patskie"; setarray .Maps$[0],"payon","prontera","geffen"; .size = getarraysize(.Desc$); .item_id = 7227; .amount = 5; .n$ = "[" +strnpcinfo(1)+ "]"; end;} 2 karazu and Mumbles reacted to this Quote Share this post Link to post Share on other sites
0 Yommy 265 Posted November 30, 2013 http://rathena.org/board/topic/71212-kingkronos-dynamic-questfullwoe-warper-11/?hl=questwarp Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 30, 2013 prontera,150,150,0 script Sample 100,{ if ( countitem(.item_id) < .amount ) close; mes .n$; mes "Hey where would you like to go?"; next; for ( .@i = 0; .@i < .size; .@i++ ) { .@menu$ += .Desc$[.@i]; .@menu$ += ":"; } .@s = select(.@menu$) - 1; mes .n$; mes "So you want to go to " +strtolower(.Maps$[.@s])+ "?"; next; if ( select("Yes:No") - 1 ) close; mes .n$; mes "Bye!"; delitem .item_id, .amount; warp strtolower(.Maps$[.@s]),0,0; close; OnInit: setarray .Desc$[0],"The City of Pride","The City of Genius","The City of Patskie"; setarray .Maps$[0],"payon","prontera","geffen"; .size = getarraysize(.Desc$); .item_id = 7227; .amount = 5; .n$ = "[" +strnpcinfo(1)+ "]"; end;} This is good already but i want with coordinates. because if u only put prontera you will be warped randomly in prontera right? if possbile with coordinates. I saw a PVP warper before he did it like this. prontera,147,175,5 script Special Warper 10005,{set .@room1$,"PVP1";set .@room2$,"PVP2";set .@name$,"[Special Warper]"; //NPC Dialogue namemes .@name$;mes "Hello, I can warp you to some special area.";mes "Please choose an area do you want me to warp you.";switch(select("PVPAREA1:PVPAREA2")){case 1: warp .@room1$,50,50; end;case 2: if(Class >= 0 && Class <= 4215){ //Allows Rune Knight to Mechanic, no matter if they rebirthed before or not warp .@room2$,84,50; end; }} The problem with it is doesn't have payment, and also it has some limit according to JOB Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted November 30, 2013 (edited) Hmm. Make sure that this three arrays have same value size. If the first array have 3 values, the second and third array must have also 3 values otherwise you will receive errors : setarray .Desc$[0],"The City of Pride","The City of Genius","The City of Patskie";setarray .Maps$[0],"payon","prontera","geffen";setarray .Coordinates$[0],"150:150","150:150","150:150"; @Edit : add a checkcell command because you may input an invalid coordinates and stuck those players who will use this npc prontera,150,150,0 script Sample 100,{ if ( countitem(.item_id) < .amount ) close; mes .n$; mes "Hey where would you like to go?"; next; for ( .@i = 0; .@i < .size; .@i++ ) { .@menu$ += .Desc$[.@i]; .@menu$ += ":"; } .@s = select(.@menu$) - 1; mes .n$; mes "So you want to go to " +strtolower(.Maps$[.@s])+ "?"; next; if ( select("Yes:No") - 1 ) close; delitem .item_id, .amount; explode(.@coord$, .Coordinates$[.@s], ":"); mes .n$; if ( checkcell(strtolower(.Maps$[.@s]), .@coord$[0], .@coord$[1], cell_chkpass) ) { mes "Bye!"; warp strtolower(.Maps$[.@s]),atoi(.@coord$[0]),atoi(.@coord$[1]); } else mes "Invalid coordinates"; close; OnInit: setarray .Desc$[0],"The City of Pride","The City of Genius","The City of Patskie"; setarray .Maps$[0],"payon","prontera","geffen"; setarray .Coordinates$[0],"150:150","150:150","343:143"; .size = getarraysize(.Desc$); .item_id = 7227; .amount = 5; .n$ = "[" +strnpcinfo(1)+ "]"; end;} Edited November 30, 2013 by Patskie Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 30, 2013 (edited) Thank you your the best.Testing it nowEDIT: Hmm. Make sure that this three arrays have same value size. If the first array have 3 values, the second and third array must have also 3 values otherwise you will receive errors : Last PatskieCan you make it 2 items please?Like it requires 2 different items to let this NPC warp you... Edited November 30, 2013 by karazu Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted November 30, 2013 use setarray Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 30, 2013 weee, trust me it will just make your script broken Quote Share this post Link to post Share on other sites
0 karazu 33 Posted December 1, 2013 use setarray Patskie My love, please do it for me! Quote Share this post Link to post Share on other sites
Hello I found several scripts already with payment but it will only warp in 1 map
If its ok I would like to request to put menu in it.
like when u click it and u have the item it will warp you to the map.
the menu is like
prontera
payon
geffen and so on.
Share this post
Link to post
Share on other sites