//Item Trader //By GorthexTiger (eA Forums) //Simple script allows you to trade 1 item for a large selection of other items //Easily customizable //Was first posted in http://www.eathena.ws/board/index.php?showtopic=251027&st=0&p=1367045&#entry1367045 to assist with cutins //Enjoy prontera,165,153,4 script Hollow Coin Trader 657,{ cutin "urahara",2; mes .npc$; mes "Good day "+strcharinfo(0); mes "Do you want to trade your Hollow Coins?"; if(prompt("Yes:No")!=1){ next; mes .npc$; mes "Ok, have a great day."; cutin "",255; close; } next; mes .npc$; mes "Please pick an item you would like to trade for."; for( set .@a, 0; .@a < getarraysize(.itemarray); set .@a, .@a + 1){ set .@menu$, .@menu$ + ":" + "+getitemname(.itemarray[.@a])+"; } set .@selection,select(.@menu$)-1; next; mes .npc$; mes "Are you sure you want to purchase this item?"; if(prompt("Yes:No")!=1){ next; mes .npc$; mes "Ok, have a great day."; cutin "",255; close; } next; if(countitem(20167) < 50){ mes .npc$; mes "Sorry, looks like you don't have enough coins."; cutin "",255; close; } mes .npc$; mes "Here is your "+getitemname(.itemarray[.@selection])+"!"; delitem 20167,50; getitem itemarray[.@selection],1; cutin "",255; close; OnInit: set .npc$,"[ ^3355FFHollow Coin Trader^000000 ]"; setarray .itemarray[0],20000,20016,20028,20033,20037,20046,20109,20111,20129,20137,20140,20141,20143, 20151,20152,20153,20160,20161,20158,20187,20180,20186,20188,20155,20162,20147,20148; }