string [item] prices;
foreach i in $items[A, B, C]{
int it = i.to_int();
string Mall = visit_url ("http://kol.coldfront.net/newmarket/itemgraph.php?itemid="+it+"×pan=1&noanim=1");
string Item_price = substring ( Mall, (last_index_of ( Mall , "CURRENT AVG PRICE:" ) +42) , (last_index_of ( Mall , "</font> :: # BOUGHT THIS TIMESPAN:")-7) );
int Price = Item_price.to_int();
prices[i] = Price;
print(i);
print(Price);
}
map_to_file(prices,"prices.txt");
Note that if you are trying to build a mall bot that uses or requires up to date prices you will be shunned and scorned by this community.