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;
}
Question
Kido
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 ):
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.