';
$page .= match ($item["type"]) {
1 => '![]() ![]() ![]() | ';
if (user()->weaponid === $item["id"] || user()->armorid === $item["id"] || user()->shieldid === $item["id"]) {
$page .= <<{$item["name"]}
$attrib {$item['attribute']} | Already purchased | HTML; } else { $specialdot = $item['special'] !== 'X' ? '*' : ''; $page .= <<{$item['name']}$specialdot$attrib {$item['attribute']} | Price: {$item['buycost']} gold | HTML; } $page .= '
{$town['name']} | Already mapped. | Location: $latitude $longitude | TP: {$town['travelpoints']} | HTML; } else { $page .= <<{$town['name']} | Price: {$town['mapprice']} gold | Buy map to reveal details. | HTML; } } $page .= <<