Jump to content
  • 0

May i ask for a npc tha exchanges a cetain ammount of items?


Kido

Question


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

i need a npc that can exchange any id of the array for a specific ammount of silver coins

i tryied myself and got stucked like ... well, i was stucked too much time

 

i need a npc like this

 

the player talks to the npc

the npc checks if the player has one or more item of the array ids

if the player has 1 or more items of the array ids, the player may exchanges all of those items ids for an ammount of silver coins per item exchanged

 

here is my lame script ):

jupe_ele,47,49,6	script	Coin Trader	123,{

mes "Would you like to exchange Customs for Silver Coins?";
menu "Sure!",-;
next;
mes "Allright, shall we continue?!";
menu "Ok",-;
next;
mes "Do you have all items?";
menu "I have them all",-;
set .@items$,"26140,26141,26142,26143,26144,26145,26146,26147,26148,26149,26150,26151,26152,26173,26174,26175,26176,26177,26178,26179,26180,26181,26182,26183,26184,26194,26195,26196,26197,26198,26199,26822,26824,26171,26202,26798,26809,26817,26789,16527,16528,3174,20000,20001,26341,16533,3169,26416,26417,26418,26419,26420,26421,26422,26423,26424,26425,26426,26427,26792,26793,26794,26795,26796,26797,20072,26119,26121,26123,26446,26447,26448,26449,26450,26451,26452,27001,27003,27004,27005,27007,27008,27009,27010,27011,27012,27015,27017,27019,27020,27021,27025,27026,27027,27030,27033,27034,27037,27038,27039,27041,27043,27046,27048,27049,27050,27051,27052,27055,27056,27058,27062,27063,27064,27066,27069,27070,27071,27072,27074,27075,27076,27080,27082,27083,27084,27095,27096,27097,27099,27100,27109,27111,27112,27114,27115,27117,27118,27119,27124,27126,27127,27128,27130,27131,27132,27133,27135,27140,27143,27144,27145,27146,27147,27149,27150,27151,27154,27155,27157,27160,27161,27162,27163,7164,27165,27167,27168,2716";
if(countitem(.@items$) < 1) goto Lne;
next;
mes "Allright here you go!";
delitem .@items$,1*.@items$;
getitem 675,2000*.@items$;
close;

Lne:
mes "do not try to fool me, you do not have any items";
close;

}

please i need a working npc like that one pleasee

thanks in adivance!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  182
  • Reputation:   22
  • Joined:  12/30/12
  • Last Seen:  

i need a npc that can exchange any id of the array for a specific ammount of silver coins

i tryied myself and got stucked like ... well, i was stucked too much time

 

i need a npc like this

 

the player talks to the npc

the npc checks if the player has one or more item of the array ids

if the player has 1 or more items of the array ids, the player may exchanges all of those items ids for an ammount of silver coins per item exchanged

 

here is my lame script ):

jupe_ele,47,49,6	script	Coin Trader	123,{

mes "Would you like to exchange Customs for Silver Coins?";
menu "Sure!",-;
next;
mes "Allright, shall we continue?!";
menu "Ok",-;
next;
mes "Do you have all items?";
menu "I have them all",-;
set .@items$,"26140,26141,26142,26143,26144,26145,26146,26147,26148,26149,26150,26151,26152,26173,26174,26175,26176,26177,26178,26179,26180,26181,26182,26183,26184,26194,26195,26196,26197,26198,26199,26822,26824,26171,26202,26798,26809,26817,26789,16527,16528,3174,20000,20001,26341,16533,3169,26416,26417,26418,26419,26420,26421,26422,26423,26424,26425,26426,26427,26792,26793,26794,26795,26796,26797,20072,26119,26121,26123,26446,26447,26448,26449,26450,26451,26452,27001,27003,27004,27005,27007,27008,27009,27010,27011,27012,27015,27017,27019,27020,27021,27025,27026,27027,27030,27033,27034,27037,27038,27039,27041,27043,27046,27048,27049,27050,27051,27052,27055,27056,27058,27062,27063,27064,27066,27069,27070,27071,27072,27074,27075,27076,27080,27082,27083,27084,27095,27096,27097,27099,27100,27109,27111,27112,27114,27115,27117,27118,27119,27124,27126,27127,27128,27130,27131,27132,27133,27135,27140,27143,27144,27145,27146,27147,27149,27150,27151,27154,27155,27157,27160,27161,27162,27163,7164,27165,27167,27168,2716";
if(countitem(.@items$) < 1) goto Lne;
next;
mes "Allright here you go!";
delitem .@items$,1*.@items$;
getitem 675,2000*.@items$;
close;

Lne:
mes "do not try to fool me, you do not have any items";
close;

}

please i need a working npc like that one pleasee

thanks in adivance!

 

Try to use my script here:

http://rathena.org/board/topic/88793-item-collectorchanger/?p=228324

Edited by Boom
  • Upvote 1
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...