';
echo '';
echo ' ';
$conditions = "WHERE id='$user'";
$inventory = explode('.',getInfo(inventory,users,$conditions));
$max = count($inventory);
for ($i = 0;$i < $max;$i++) {
$item = $inventory[$i];
$conditions = "WHERE id='$item'";
$type = getInfo(type,user_items,$conditions);
if (($type == "food") || ($type == "drink") || ($type == "alcohol") || ($type == "poison")) $foods[] = $item;
if ($type == "poison") $poison[] = $item;
if (($type == "clothing") || ($type == "weapon") || ($type == "armour") || ($type == "epic")) $clothes[] = $item;
if (($type == "other") || ($type == "misc")) $other[] = $item;
if ($type == "relic") $relics[] = $item;
if ($type == "crate") $crates[] = $item;
if ($type == "resource") $resources[] = $item;
if ($type == "material") $materials[] = $item;
if ($type == "key") $keys[] = $item;
if ($type == "door") $doors[] = $item;
if ($type == "arrows") $arrows[] = $item;
if (!getInfo(name,items,"WHERE id='$item'")) $inventory[$i] = '';
}
if ((count($clothes) > 1) || ($clothes[0])) {
echo '|
| Items your character can wear, that will appear on their avatar. Click on an item to see more information about it. | ';
$max = count($clothes);
for ($i = 0;$i < $max;$i++) {
$item = $clothes[$i];
if ($item) {
$conditions = "WHERE id='$item'";
$name = getInfo(name,user_items,$conditions);
$price = getInfo(price,user_items,$conditions);
$image = displayClothing($item);
if ($i % 4 == 0) echo '';
echo ''.$name.'
 ';
echo ' | ';
if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ' | ';
}
}
echo '
| ';
echo ' ';
}
if ((count($foods) > 1) || ($foods[0])) {
echo '|
| Items your character can eat or drink to regain health, mana and hunger points. Click on an item to see more information about it. | ';
$max = count($foods);
for ($i = 0;$i < $max;$i++) {
$item = $foods[$i];
if ($item) {
$conditions = "WHERE id='$item'";
$name = getInfo(name,user_items,$conditions);
$type = getInfo(type,user_items,$conditions);
$stat = getInfo("stat",user_items,$conditions);
$price = getInfo(price,user_items,$conditions);
$record_item = getInfo(item,user_items,$conditions);
if ($type == "food") {
$stats = '+'.$stat.' health per portion '.getInfo(portions,user_items,$conditions).'/'.getInfo(portions,items,"WHERE id='$record_item'").' portions left';
$type = "Food";
}
if ($type == "poison") {
$stats = '-'.$stat.' health';
$type = "Poison";
}
if ($type == "drink") {
$stats = '+'.$stat.' mana per portion '.getInfo(portions,user_items,$conditions).'/'.getInfo(portions,items,"WHERE id='$record_item'").' portions left';
$type = "Drink";
}
if ($type == "alcohol") {
$stats = '+'.$stat.' health per portion +'.round($stat / 2).' intoxication per portion '.getInfo(portions,user_items,$conditions).'/'.getInfo(portions,items,"WHERE id='$record_item'").' portions left';
$type = "Alcohol";
}
if ($i % 4 == 0) echo '';
echo ''.$name.' '.$type.' '.$stats;
echo ' | ';
if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ' | ';
}
}
echo '
| ';
echo ' ';
}
if ((count($relics) > 1) || ($relics[0])) {
echo '|
| Parts of other dead characters\' bodies. Click on an item to see more information about it. | ';
$max = count($relics);
for ($i = 0;$i < $max;$i++) {
$item = $relics[$i];
$conditions = "WHERE id='$item'";
$item = getInfo(item,user_items,$conditions);
$conditions = "WHERE id='$item'";
$name = getInfo(name,items,$conditions);
$creator = getInfo(creator,items,$conditions);
$item = $relics[$i];
if ($i % 4 == 0) echo '';
echo '| '.$creator.'\'s '.$name.'';
echo ' | ';
if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ' | ';
}
echo '
| ';
echo ' ';
}
if ((count($other) > 1) || ($other[0])) {
echo '|
| Written documents including things such as books and letters. Click on an item to see more information about it. | ';
$max = count($other);
for ($i = 0;$i < $max;$i++) {
$item = $other[$i];
if ($item) {
$conditions = "WHERE id='$item'";
$name = getInfo(name,user_items,$conditions);
$price = getInfo(price,user_items,$conditions);
if ($i % 4 == 0) echo '';
$type = getInfo(type,user_items,$conditions);
if ($type == "misc") echo '| '.stripslashes($name).'';
else echo ' | '.stripslashes($name).'';
echo ' | ';
if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ' | ';
}
}
echo '
| ';
echo ' ';
}
if ((count($crates) > 1) || ($crates[0])) {
echo '|
| Boxes, sacks, and other such things that contain other items. Click on an item to see more information about it. | ';
$max = count($crates);
for ($i = 0;$i < $max;$i++) {
$item = $crates[$i];
if ($item) {
$conditions = "WHERE id='$item'";
$name = getInfo(name,user_items,$conditions);
if ($i % 4 == 0) echo '';
echo '| '.$name.'';
echo ' | ';
if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ' | ';
}
}
echo '
| ';
echo ' ';
}
if ((count($arrows) > 1) || ($arrows[0])) {
echo '|
| Quivers full of arrows that can be shot at other users. Click on an item to see more information about it. | ';
$max = count($arrows);
for ($i = 0;$i < $max;$i++) {
$item = $arrows[$i];
if ($item) {
$conditions = "WHERE id='$item'";
$name = getInfo(name,user_items,$conditions);
if ($i % 4 == 0) echo '';
echo '| '.$name.'';
echo ' | ';
if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ' | ';
}
}
echo '
| ';
echo ' ';
}
if ((count($resources) > 1) || ($resources[0])) {
echo '|
| Crude resources that can be refined and used to make weaponry and armour, or left as they are and used to create buildings and fortify them. Click on an item to see more information about it. | ';
$max = count($resources);
for ($i = 0;$i < $max;$i++) {
$item = $resources[$i];
if ($item) {
$conditions = "WHERE id='$item'";
$name = getInfo(name,user_items,$conditions);
if ($i % 4 == 0) echo '';
echo '| '.$name.'';
echo ' | ';
if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ' | ';
}
}
echo '
| ';
echo ' ';
}
if ((count($materials) > 1) || ($materials[0])) {
echo '|
| Refined materials that can be used to create weaponry and armour. Click on an item to see more information about it. | ';
$max = count($materials);
for ($i = 0;$i < $max;$i++) {
$item = $materials[$i];
if ($item) {
$conditions = "WHERE id='$item'";
$name = getInfo(name,user_items,$conditions);
if ($i % 4 == 0) echo '';
echo '| '.$name.'';
echo ' | ';
if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ' | ';
}
}
echo '
| ';
echo ' ';
}
if ((count($keys) > 1) || ($keys[0])) {
echo '|
| An item that will open a particular door. If you are carrying the key to a door, you don\'t need to unlock the door seperately - you will be able to walk through it without any trouble. Click on an item to see more information about it. | ';
$max = count($keys);
for ($i = 0;$i < $max;$i++) {
$item = $keys[$i];
if ($item) {
$conditions = "WHERE id='$item'";
$name = getInfo(name,user_items,$conditions);
if ($i % 4 == 0) echo '';
echo '| '.$name.'';
echo ' | ';
if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ' | ';
}
}
echo '
| ';
echo ' ';
}
if ((count($doors) > 1) || ($doors[0])) {
echo '|
| Doors must be carried from the forges to their respective buildings and installed from the inventory. Click on an item to see more information about it. | ';
$max = count($doors);
for ($i = 0;$i < $max;$i++) {
$item = $doors[$i];
if ($item) {
$conditions = "WHERE id='$item'";
$name = getInfo(name,user_items,$conditions);
if ($i % 4 == 0) echo '';
echo '| '.$name.'';
echo ' | ';
if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ' | ';
}
}
echo '
| ';
echo ' ';
}
echo '';
}
include "index-bottom.php"
?> |