Jump to content
  • 0

request,warper NPC


noobsai

Question


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  70
  • Reputation:   0
  • Joined:  02/05/12
  • Last Seen:  

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

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites

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.

×
×
  • Create New...