Location
Currently: currentaction ?>
latitude; $lon = DragonKnight\user()->longitude; if ($lat < 0) { $lat = ($lat * -1).'S'; } else { $lat .= 'N'; } if ($lon < 0) { $lon = ($lon * -1).'W'; } else { $lon .= 'E'; } ?> Latitude:
Longitude:
View Map
Towns
currentaction == 'In Town') { $town = DragonKnight\get_town_by_xy((int) DragonKnight\user()->latitude, (int) DragonKnight\user()->longitude); echo "Welcome to {$town['name']}.

"; } ?> Travel To:
towns); $towns = DragonKnight\db()->query('SELECT * FROM towns ORDER BY id;'); $mapped = false; while ($row = $towns->fetchArray(SQLITE3_ASSOC)) { $mapped = true; if (in_array($row['id'], $town_list)) { echo <<{$row['name']}
HTML; } } if (! $mapped) { echo 'You have no towns mapped.'; } ?>
Functions
Home
Forum
Settings
authlevel === 1): ?> Admin
Help
Log Out