Function:
SellPrice(x)
You can access the last known sell prices for resources via script with this function... X of course would be a number 0-3 (0 = food, 1 = wood, 2 = stone, 3 = iron)
Example:
echo SellPrice(3)
will return last known offer (sell) price for iron