'; $user = $_GET['user']; $user = getInfo(id,users,"WHERE id='$user'"); if ((getInfo(room,users,"WHERE id='$user'") != getInfo(room,users,"WHERE id='$userId'")) && (!admin($user_name))) { echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
Error
'; echo '
'; echo '
You are not in the same room as this user.
'; echo '
'; echo '
'; } else { $username = getInfo(username,users,"WHERE id='$user'"); echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
User Control Panel
'; echo '
'; echo '
You may use this page to view the contents of the inventory of a character in the same room as you. Generally, these are kinds of things that your character would be able to see on them. However, there may be exceptions, based on the nature of the items themselves.
'; echo '
'; echo '
'; echo '
'; echo ''; echo '

'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
Inventory
'; 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 '
Clothing/Accessories
'; $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 ''; if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ''; } } echo '
Items your character can wear, that will appear on their avatar. Click on an item to see more information about it.
'.$name.'


'; echo '

'; echo '
'; } if ((count($foods) > 1) || ($foods[0])) { echo '
Food
'; $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 ''; if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ''; } } 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.
'.$name.'
'.$type.'
'.$stats; echo '

'; echo '
'; } if ((count($relics) > 1) || ($relics[0])) { echo '
Body Parts
'; $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 ''; if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ''; } echo '
Parts of other dead characters\' bodies. Click on an item to see more information about it.
'.$creator.'\'s '.$name.'
'; echo '

'; echo '
'; } if ((count($other) > 1) || ($other[0])) { echo '
Letters/Prose
'; $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 ''; if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ''; } } echo '
Written documents including things such as books and letters. Click on an item to see more information about it.
'.stripslashes($name).'
'; else echo '
'.stripslashes($name).'
'; echo '

'; echo '
'; } if ((count($crates) > 1) || ($crates[0])) { echo '
Crates
'; $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 ''; if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ''; } } echo '
Boxes, sacks, and other such things that contain other items. Click on an item to see more information about it.
'.$name.'
'; echo '

'; echo '
'; } if ((count($arrows) > 1) || ($arrows[0])) { echo '
Arrows
'; $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 ''; if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ''; } } echo '
Quivers full of arrows that can be shot at other users. Click on an item to see more information about it.
'.$name.'
'; echo '

'; echo '
'; } if ((count($resources) > 1) || ($resources[0])) { echo '
Crude Resources
'; $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 ''; if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ''; } } 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.
'.$name.'
'; echo '

'; echo '
'; } if ((count($materials) > 1) || ($materials[0])) { echo '
Materials
'; $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 ''; if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ''; } } echo '
Refined materials that can be used to create weaponry and armour. Click on an item to see more information about it.
'.$name.'
'; echo '

'; echo '
'; } if ((count($keys) > 1) || ($keys[0])) { echo '
Keys
'; $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 ''; if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ''; } } 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.
'.$name.'
'; echo '

'; echo '
'; } if ((count($doors) > 1) || ($doors[0])) { echo '
Doors
'; $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 ''; if ((($i + 1) % 4 == 0) || ($i + 1 == $max)) echo ''; } } 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.
'.$name.'
'; echo '

'; echo '
'; } echo '
'; } include "index-bottom.php" ?>