<?xml version="1.0" encoding="utf-8"?>
<s1 title="BuyPrice"><p></p>
<s2 id="Function:" title="Function:">
<p><strong>BuyPrice(x)</strong> </p>
<p>You can access the last known buy 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) </p>
<p><strong>Example:</strong> </p>
<p>echo BuyPrice(0) </p>
<p>will return last known bid (buy) price for food </p>

<br/>------------------------------------------------------------------------------<br/>
<p> <jump href="/wiki/ScriptResource">ScriptResource</jump> </p>
</s2></s1>