Prior to calling macguffin, I use the following:
<inline-ash-script>
int yep = 0;
if (contains_text(visit_url("woods.php"), "temple.gif") == false)
{
if (item_amount($item[Spooky Temple map]) == 0)
{
add_item_condition(1, $item[Spooky Temple map]);
yep = 2;
print("We need the temple...