Hello, can anyone help me with adding a new option in Warper NPC. I would like to add input box in the Warper NPC where people can simply add the name of the map they would like to warp to. This is similar to @warp command but I love to have an option for warper too with the restrictions of warper to ofc.
I actually found a nearly the same script from @AnnieRuru but its a hassle and tiring to code all the maps manually. I will attach the code below.
Hello, can anyone help me with adding a new option in Warper NPC. I would like to add input box in the Warper NPC where people can simply add the name of the map they would like to warp to. This is similar to @warp command but I love to have an option for warper too with the restrictions of warper to ofc.
I actually found a nearly the same script from @AnnieRuru but its a hassle and tiring to code all the maps manually. I will attach the code below.
prontera,155,186,5 script TestWarp 100,{ setarray [email protected]$, "prontera", "morocc", "alberta", "aldebaran", "izlude"; setarray [email protected], 156, 156, 192, 140, 128; setarray [email protected], 191, 93, 147, 143, 146; set [email protected], getarraysize([email protected]$); mes "[Warp Agent]"; mes "Type the map name you'd like to warp to for example pay_fild02, thor_v03^0000FF"; for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ ) mes ( [email protected] +1 )+". "+ [email protected]$[[email protected]]; next; input [email protected]$; [email protected] = 0; while ( [email protected]$ != [email protected]$[[email protected]] && [email protected] < [email protected] ) [email protected]++; if ( [email protected] == [email protected] ) { mes "[Warp Agent]"; mes "Invalid Map"; close; } mes "[Test Warper]"; mes "You are now warping to "+ [email protected]$[[email protected]] +" town"; close2; warp [email protected]$[[email protected]], [email protected][[email protected]], [email protected][[email protected]]; end; }Now the attached photo below is an illustration of what I'd like to have on warper.
Hope you guys could help me. Thanks in advance.
Link to comment
Share on other sites