'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
Success
'; echo '
'; echo '
You have successfully nominated '.getInfo(username,users,"WHERE id='$user'").' for the Best Post Award.
'; echo '
'; echo ''; echo '
'; } else { echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
Error
'; echo '
'; echo '
'.$failure.'
'; echo '
'; echo '
'; echo '
'; } } if ($_GET['invite']) { $invite = $_GET['invite']; $inviteString = '.'.$invite.'.'; if (getInfo(id,parties,"WHERE invites like '$inviteString'")) $failure = "This user has already been invited to join a party."; $party = getInfo(id,parties,"WHERE leader='$userId'"); if (!$party) $failure = "You are not the leader of a party."; if (getInfo(party,users,"WHERE id='$invite'")) $failure = "This user already belongs to a party."; if ($party) { $result = getRows(users,"WHERE party='$party'"); while ($row = mysql_fetch_array($result)) { if (sameUser($invite,$row['id'])) $failure = "Only one character from each account may join any particular party."; } } if (!$failure) { $invites = getInfo(invites,parties,"WHERE id='$party'"); if ($invites) $invites .= $invite.'.'; else $invites = '.'.$invite.'.'; $query = "UPDATE parties SET invites='$invites' WHERE id='$party'"; mysql_query($query); $inviteName = getInfo(username,users,"WHERE id='$invite'"); sendMessage($inviteName,"Party","You have been invited to join a party. You can accept/decline this invitation from your control panel, under the heading 'Party'.","God"); echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
Success
'; echo '
'; echo '
You have successfully invited the user to join your party.
'; echo '
'; echo '
'; } else { echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
Error
'; echo '
'; echo '
'.$failure.'
'; echo '
'; echo '
'; } } if ($_GET['hire']) { $hire = $_GET['hire']; if (!getInfo(job,npc_citizens,"WHERE npc='$hire'")) $failure = "This NPC does not have a particular job that it can perform."; if (getInfo(employer,npc_citizens,"WHERE npc='$hire'")) $failure = "This NPC is already working for someone."; if (!getInfo(id,npc_citizens,"WHERE npc='$hire'")) $failure = "This NPC cannot be hired."; if (!$failure) { $query = "UPDATE npc_citizens SET employer='$userId' WHERE npc='$hire'"; mysql_query($query); $query = "UPDATE npc_citizens SET work='' WHERE npc='$hire'"; mysql_query($query); $query = "DELETE FROM npc_wander WHERE npc='$hire'"; mysql_query($query); $cost = getInfo(cost,npc_citizens,"WHERE npc='$hire'"); $interval = 3600 * 24 * 7; $query = "INSERT INTO payments VALUES('','$userId','$hire','$cost','','$interval')"; mysql_query($query); echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
Success
'; echo '
'; echo '
You have successfully hired the NPC citizen.
'; echo '
'; echo '
'; } else { echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
Error
'; echo '
'; echo '
'.$failure.'
'; echo '
'; echo '
'; } } if ($_POST['mode'] == "rate") { $question1 = $_POST['question1']; $question2 = $_POST['question2']; $question3 = $_POST['question3']; if (!admin($user_name)) if (sameUser($user,$userId)) $failure = "You may not rate yourself."; $voter = getAccount($userId); if (getInfo(rate,bans,"WHERE user='$account'")) $failure = "You have been banned from rating users."; if (!$failure) { $query = "DELETE FROM ratings WHERE voter='$voter' AND user='$user'"; mysql_query($query); $query = "INSERT INTO ratings VALUES('','$user','$voter','$question1','$question2','$question3')"; mysql_query($query); echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
Success
'; echo '
'; echo '
You have successfully rated the user.
'; echo '
'; echo '
'; } else { echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
Error
'; echo '
'; echo '
'.$failure.'
'; echo '
'; echo '
'; } } $user = $_GET['user']; if (!$user) $user = $userId; if ($username) $user = getInfo(id,users,"WHERE username='$username'"); $conditions = "WHERE id='$user'"; $username = getInfo(username,users,$conditions); $money = getInfo(money,users,$conditions); $user_id = getInfo(id,users,$conditions); $description = getInfo(description,users,$conditions); $age = getInfo(age,users,$conditions); $sex = getInfo(sex,users,$conditions); $species = getInfo(species,users,$conditions); $status = getInfo(status,users,$conditions); $health = getInfo(health,users,$conditions); $mana = getInfo(mana,users,$conditions); $fatigue = getInfo(fatigue,users,$conditions); $hunger = getInfo(hunger,users,$conditions); $dex = getInfo(dex,users,$conditions); $stretch = getInfo(stretch,users,$conditions); $logged = getInfo(logged,users,$conditions); $civic = getInfo(civic,users,$conditions); $bonus = capitalize(getInfo(bonus,users,$conditions)); $class = capitalize(getInfo("class",users,$conditions)); if ($civic == "smith") $civic = "blacksmith"; if ($civic == "seller") $civic = "barkeeper/Shopkeeper"; if ($civic) $civic = capitalize($civic); $personal = getInfo(personal,users,$conditions); if ($personal) $personal = capitalize($personal); $left = time() - $logged; $leftTot = $left; $hours = truncate($left / 3600); $left = $left - ($hours * 3600); $minutes = truncate($left / 60); $seconds = $left - ($minutes * 60); $nationalityId = getInfo(nationality,users,$conditions); $nationality = stripslashes(getInfo(name,kingdoms,"WHERE id='$nationalityId'")); $townId = getInfo(town,users,$conditions); $town = getInfo(name,towns,"WHERE id='$townId'"); $placeId = getInfo(location,users,$conditions); $place = getInfo(name,places,"WHERE id='$placeId'"); $roomId = getInfo(room,users,$conditions); $room = getInfo(name,rooms,"WHERE id='$roomId'"); $rank = rank($user); $statmax = statmax($user); $query = "UPDATE users SET rank='$rank' WHERE id='$user'"; mysql_query($query); $query = "UPDATE users SET statmax='$statmax' WHERE id='$user'"; mysql_query($query); $conditions = "WHERE level='$rank'"; if ($sex == "f") $rank = getInfo(female,ranks,$conditions); else $rank = getInfo(male,ranks,$conditions); if ($user_id) { echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
'; if (($username != "God") && (!admin($username))) if (rank($user) >= 40) echo $rank.' '; if ($nationality) { $custom_title = getInfo(id,custom_ranks,"WHERE user='$user' and hold=''"); if ($custom_title) { $title = getInfo(title,custom_ranks,"WHERE id='$custom_title'"); if (getInfo(position,custom_ranks,"WHERE id='$custom_title'") == "after") { echo "$username, $title"; } else { echo "$title $username"; } } else { echo $username; } echo ' of '.$nationality; } else { echo $username; } if ($user == $userId) echo ' - [Edit]'; echo '
'; echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; if ((admin($user_name)) && (!getInfo(NPC,users,"WHERE id='$user'"))) { echo ''; } echo '
'; $wounds = getInfo(wounds,users,"WHERE username='$user_name'"); echo ''; echo ''; echo 'Send Message
'; echo 'Trade'; if ((!getInfo(NPC,users,"WHERE id='$user'")) && (getInfo(id,parties,"WHERE leader='$userId'"))) echo "
Invite into Party"; if ((getInfo(room,users,"WHERE id='$userId'") == getInfo(room,users,"WHERE id='$user'")) || (admin($user_name))) echo '
View Character'; if (admin($user_name)) { echo '
Memories'; echo '
Control Panel'; echo '
NPC Controls'; echo '
Movements'; } echo '
'; echo $description; echo '
'; $npc_job = getInfo(job,npc_citizens,"WHERE npc='$user'"); $employer = getInfo(employer,npc_citizens,"WHERE npc='$user'"); if (($npc_job) && (!$employer)) { $cost = getInfo(cost,npc_citizens,"WHERE npc='$user'"); if ($npc_job == "sell") echo "Hire as a Shopkeeper/Barkeeper"; if ($npc_job == "mine") echo "Hire as a Miner"; if ($npc_job == "protect") echo "Hire as a Bodyguard"; if ($npc_job == "other") echo "Hire as a Miscellaneous Worker"; echo " ($cost gold/week)
"; } echo 'Nominate for Award (Best RPer)
Setup Regular Payment

'; /* $score = 0; $counter = 0; $result = getRows(ratings,"WHERE user='$user'"); while ($row = mysql_fetch_array($result)) { $score += $row['question1'] + $row['question2'] + $row['question3']; $counter++; } $score = round($score / ($counter * 3),2); if ($score > 0) echo "Rating : $score/5 ($counter votes)
"; */ $intox = ''; if ($dex > 0) $intox = "Barely Intoxicated"; if ($dex > 10) $intox = "Slightly Intoxicated"; if ($dex > 20) $intox = "Moderately Intoxicated"; if ($dex > 30) $intox = "Very Intoxicated"; if ($dex > 40) $intox = "Extremely Intoxicated"; if ($dex >= 50) $intox = "Passed Out"; if ($intox) echo $intox."
"; if ($sex == "f") $gender = "Female"; elseif ($sex == "m") $gender = "Male"; if ($gender) echo "Gender: $gender
"; if (!getInfo(NPC,users,"WHERE id='$user'")) { if (($user == $userId) || (admin($user_name))) echo 'Current Roll: '.expBonus($user).' to '.(sides($user) + expBonus($user)).'
'; } else { $animal = getInfo(animal,npcs,"WHERE name='$user'"); if ($animal) { echo 'Current Roll: 0 to '.(getInfo(roll,npc_animals,"WHERE id='$animal'") - round((getInfo(type,npcs,"WHERE name='$user'") - getInfo(health,users,"WHERE id='$user'")) / 2)).'
'; } else { echo 'Current Roll: 0 to '.(100 - round((getInfo(type,npcs,"WHERE name='$user'") - getInfo(health,users,"WHERE id='$user'")) / 2)).'
'; } } echo 'Status: '.capitalize($status).'
'; if ($civic) echo "Civic Skill: $civic
"; if ($personal) echo "Personal Skill: $personal
"; if ((admin($user_name)) || (moderator($user_name))) echo "Bonus Skill: $bonus
"; if (($class) && ($class != "*") && (($user == $userId) || (admin($user_name)) || (moderator($user_name)))) echo "Class: $class
"; echo 'Rank: '.$rank.'
'; echo 'Age: '.$age.'
'; echo 'Species: '.stripslashes($species).'
'; echo 'Money: '.$money.'
'; echo 'Health: '.$health.' / '.$statmax.'
'; echo 'Mana: '.$mana.' / '.$statmax.'
'; echo 'Fatigue: '.$fatigue.' / 150
'; echo 'Hunger: '.$hunger.' / 100
'; if (getInfo(id,mounts,"WHERE npc='$user'")) { echo "
Mount Skills/Stats
"; $animal = getInfo(animal,npcs,"WHERE name='$user'"); $carry = getInfo(carry,npc_animals,"WHERE id='$animal'"); $temper = getInfo(temper,mounts,"WHERE npc='$user'"); $mood = getInfo(mood,mounts,"WHERE npc='$user'"); $riding = getInfo(riding,mounts,"WHERE npc='$user'"); $pain = getInfo(pain,mounts,"WHERE npc='$user'"); $speed = getInfo(speed,mounts,"WHERE npc='$user'"); $rollbonus = getInfo(roll,mounts,"WHERE npc='$user'"); $damage = getInfo(damage,mounts,"WHERE npc='$user'"); echo "Temperament: $temper
"; echo "Current Mood: $mood
"; echo "Riding Skill: $riding
"; echo "Resistance to Pain: $pain
"; echo "Speed: $speed
"; echo "Roll Bonus: +$rollbonus
"; echo "Damage Bonus: +$damage
"; echo "Maximum Inventory Weight: $carry
"; } if (admin($user_name)) { echo '
Currently In: '; if ($town) echo ''.$town.''; if ($town && $place) echo ' > '; if ($place) echo ''.$place.''; if ($place && $room) echo ' > '; if ($room) echo ''.$room.''; echo '
'; } if (($leftTot > (60)) && ($logged)) echo "Last signed on ".$hours." hours, ".$minutes." minutes and ".$seconds." seconds ago."; elseif (!$logged) { if (!getInfo(NPC,users,"WHERE id='$user'")) echo "This user is inactive."; else { echo "This user is an NPC"; $owner = getInfo(NPC,users,"WHERE id='$user'"); if ((!admin(getInfo(username,users,"WHERE id='$owner'"))) && (getInfo(username,users,"WHERE id='$owner'") != "God")) { if ($owner) echo " owned by ".getInfo(username,users,"WHERE id='$owner'")."."; else echo " who is not owned by anyone."; } else echo '.'; } } else echo "Currently signed on."; echo '
'; $account_id = getAccount($user_id); echo 'Account Name : '; $account_name = getInfo(username,accounts,"WHERE id='$account_id'"); if ($account_name) { echo $account_name; echo '
'; echo 'Last Viewed: '.getInfo(viewing,accounts,"WHERE id='$account_id'").'
'; echo 'Other Characters : '; $isDead = false; $characters = clearArray(getInfo(characters,accounts,"WHERE id='$account_id'"),'.',"no"); $characters = explode('.',$characters); $max = count($characters); for ($i = 0;$i < $max;$i++) { $characterId = $characters[$i]; $characterName = getInfo(username,users,"WHERE id='$characterId'"); $characters[$i] = ''.$characterName.''; } $characters = implode(', ',$characters); $dead = clearArray(getInfo(dead,accounts,"WHERE id='$account_id'"),'.'); $dead = explode('.',$dead); if (getInfo(dead,accounts,"WHERE id='$account_id'")) { $max = count($dead); for ($i = 0;$i < $max;$i++) { $deadId = $dead[$i]; $deadName = getInfo(username,users,"WHERE id='$deadId'"); $dead[$i] = ''.$deadName.''; } $dead = implode(', ',$dead); $isDead = true; } echo $characters; if ($isDead) echo '
Dead Characters : '.$dead; } else echo "This user has not been claimed by any account"; echo '
'; echo '
'; echo '
'; echo '
'; /* if ((!admin($user)) && (!getInfo(rate,bans,"WHERE user='$account'")) && (!sameUser($user,$userId))) { echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
Rate '.$username.'
'; echo '
'; echo '
'; echo 'In order to show users what others think of them and their ability to contribute to the Anathema Online community, we encourage users to make use of this rating system. Each question is out of five points, a perfect five being the best possible score, and one being the worst. Please, rate fairly, as if you are seen giving extremely poor ratings or extremely high ratings without good reason, you may be banned from this feature.

'; echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo 'Quality of Writing: Is this user\'s writing enjoyable to read? Is there too much description, or not enough? Are the posts too long or too short?'; echo '12345
'; echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo 'Adherence to the Code of Common Courtesy: Does this user play fairly? Do they roleplay only for the sake of proving superiority over others, or for the sake of enjoying the game?'; echo '12345
'; echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo 'Ability to Keep in Character: Does this user play their character well, and keep in-character conflicts seperate from those out of character?'; echo '12345
'; echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; } */ } else { echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
Error
'; echo '
'; echo '
There is no user with this name.
'; echo '
'; } ?>