Jump to content
  • 0

request,warper NPC


Question

Posted

can anyone share me a Warper NPC just like BreakTheSeal but he will just warp the player to the other map.

the warper npc will ask 17 items with different amount if something is lacking he will get refused.

thanks

1 answer to this question

Recommended Posts

Posted

try this

prontera,155,181,5 script Sample 757,{
setarray .ItemLists,
   7539,10,
   7227,1,
   607,100,
   608,10;

mes "You need these items.";
for( set .@i,0; .@i < ( getarraysize( .ItemLists ) - 1 ); set .@i,.@i + 1 ){
mes getitemname( .ItemLists[ .@i ] )+" x "+.ItemLists[ .@i + 1 ];
if( countitem( .ItemLists[ .@i ] ) < .ItemLists[ .@i + 1 ] )
 set .@x,1;
}
if( .@x ) close;
if( select("Warp:Cancel") == 2 ) close;
for( set .@i,0; .@i < ( getarraysize( .ItemLists ) - 1 ); set .@i,.@i + 1 )
delitem .ItemLists[ .@i ],.ItemLists[ .@i + 1 ];
warp "prontera",155,181;
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...