"Unspecified","Dark Arts","Mystical Powers","Thieving Skills","Leupslayer"); $horses=array(0=>"None","Pony","Gelding","Stallion","Leupak","Dragon","Sytwone"); $races=array(0=>"Changing","Human","Elf","Dwarf","Wanderkin","Leupak","Vampire","Demon","Imp","Dragon","Lycanthrope","Monster","Shapeshifter",99=>"Unknown"); $orients=array(-2=>"Vegisexual",-1=>"Uninterested",0=>"Straight",1=>"Gay",2=>"Bisexual",3=>"Polysexual"); $bodytype=array(-10=>"Massive",-9=>"Bloated",-8=>"Very Fat",-7=>"Fat",-6=>"Plump",-5=>"Somewhat Plump",-4=>"Pudgy", -3=>"Round",-2=>"Chubby",-1=>"Full-Figured",0=>"Normal",1=>"Somewhat Toned",2=>"Toned", 3=>"Moderately Buff",4=>"Very Buff",5=>"Exceptionally Buff",6=>"Muscular",7=>"Very Muscular", 8=>"Prime Condition",9=>"Peak Physical Condition",10=>"Perfect"); if ($row[subrace]==-1 && $row[race]==5 && $session[user][leupslay]<20 && $session[user][acctid]!=225 && $fame<5){ $races[5]="Human"; }elseif ($row[subrace]==-1 && $row[race]==5){ $races[5]="Emperor Leupak"; } $sublycan=array(-1=>"Wereshifter",0=>"Werewolf",1=>"Weretiger",2=>"Weremole",3=>"Weredragon",4=>"Werelizard",5=>"Wererat",6=>"Werefox"); if ($row[race]==10 && $row[subrace]!="") $races[10]=$sublycan[$row[subrace]]; if ($row[fitness]<0){ $bod = ceil($row[fitness]/100); }else{ $bod = floor($row[fitness]/100); } if ($bod>-1 && $row[hunger]>80) $bodytype[$bod]="Skinny"; if ($bod>2 && $row[hunger]>100) $bodytype[$bod]="Gaunt"; //Toned, buff, muscular, prime condition, peak physical condition //gaunt, skinny //round, chubby, pudgy, plump, fat, bloated if ($row[rephero]>=$row[repslut]-50 || $row[repslut]<-10 || $row[rephero]<-50){ /* if ($row[rephero] < -76){ $repname = "Abhorred"; }elseif ($row[rephero]<-50){ $repname = "Despised"; }elseif ($row[rephero]<-10){ $repname = "Disliked"; }elseif ($row[rephero] < 21){ $repname = "Unknown"; }elseif ($row[rephero]<51){ $repname = "Somewhat Popular"; }elseif ($row[rephero]<101){ $repname = "Well-Known"; }elseif ($row[rephero]<151){ $repname = "Reputed"; }else{ $repname = "Legendary"; } */ if ($row[rephero] < -100){ $repname = "Abominable"; }elseif ($row[rephero]<-50){ $repname = "Cruel"; }elseif ($row[rephero]<-10){ $repname = "Malevolent"; }elseif ($row[rephero] < 21){ $repname = "Average"; }elseif ($row[rephero]<51){ $repname = "Friendly"; }elseif ($row[rephero]<101){ $repname = "Kind-Hearted"; }elseif ($row[rephero]<201){ $repname = "Benevolent"; }else{ $repname = "Saintly"; } }else{ if ($row[repslut]<21){ $repname = "Inexperienced"; }elseif ($row[repslut]<51){ $repname = "Flirtatious"; }elseif ($row[repslut]<101){ $repname = "Amorous"; }elseif ($row[repslut]<201){ $repname = "Talented"; }else{ $repname = "Well-Experienced"; } } output("`^Biography for the $repname $row[name]"); if ($session[user][loggedin]) output("Write Mail",true); output("`n`n"); output("`^Title: `@$row[title]`n"); if ($session[user][family]!="") output("`^Family: `@$row[family]`n"); output("`^Level: `@$row[level]`n"); output("`^Resurrections: `@$row[resurrections]`n"); if ($row[mask]!=""){ $mask=str_replace("Mask","",$row[mask]); $mask=str_replace("Hat","",$mask); output("`^Mask: `@".$mask."`n"); }else{ output("`^Race: `@".$races[$row[race]]."`n"); } $locales=array(0=>"The Fields",1=>"The Inn",2=>"Wandering Designs",3=>"Unknown"); famedisplay("`^Staying at: `@".$locales[$row[location]]."`n",2,$fame); output("`^Gender: `@".($row[sex]?"Female":"Male")."`n"); famedisplay("`^Orientation: `@".$orients[$row[orient]]."`n",2,$fame); output("`^Body Type: `@".$bodytype[$bod]."`n"); $drunkenness = array(-1=>"Completely Sober",0=>"Quite Sober",1=>"Barely Buzzed",2=>"Pleasantly Buzzed",3=>"Almost Drunk",4=>"Barely Drunk",5=>"Solidly Drunk",6=>"Sloshed",7=>"Hammered",8=>"Really Hammered",9=>"Almost Unconscious",10=>"Very Dizzy"); $drunk = round($row[drunkenness]/10-.5,0); output("`^Intoxication: `@".$drunkenness[$drunk]."`n"); famedisplay("`^Specialty: `@".$specialty[$row[specialty]]."`n",4,$fame); if ($row[petname]){ output("`^Mount: `&".$row[petname]." `@ the ".$horses[$row[hashorse]]."`n"); }else{ output("`^Horse: `@".$horses[$row[hashorse]]."`n"); } famedisplay("`^Heroism: `@$row[rephero]`n",1,$fame); famedisplay("`^Flirtatiousness: `@$row[repslut]`n",1,$fame); famedisplay("`^Creature Kills: `@$row[repCKs]`n",1,$fame); famedisplay("`^Player Kills: `@$row[repPKs]`n",1,$fame); famedisplay("`^Scores: `@$row[repscores]`n",2,$fame); if ($row[marriedto]!=0){ if ($row[marriedto]==124 || $row[marriedto]==163){ output("`^In Love With: `%"); }else{ output("`^Married to: `%"); } $sql = "SELECT name FROM accounts WHERE acctid=".$row[marriedto]; $result = db_query($sql) or die(sql_error($sql)); $answer = db_fetch_assoc($result); output($answer[name]); output("`0`n"); } //What are you wearing, baby? //Section 1: Base attire $clothestring = $row[name]."`@ is wearing"; if ($row[costume]!=""){ if ($row[mask]!=""){ $clothestring=$clothestring." a ".$row[costume]." and a ".$row[mask].". "; }else{ $clothestring=$clothestring." a ".$row[costume]."."; } output("`^Costume: `@".$clothestring."`n`n"); }else{ if ($row[pants]!="") $row[pants]=$row[pants]."`@"; if ($row[shirt]!="") $row[shirt]=$row[shirt]."`@"; if ($row[armor]!="") $row[armor]=$row[armor]."`@"; if ($row[helm]!="") $row[helm]=$row[helm]."`@"; if ($row[gloves]!="") $row[gloves]=$row[gloves]."`@"; if ($row[boots]!="") $row[boots]=$row[boots]."`@"; if ($row[weapon]!="") $row[weapon]=$row[weapon]."`@"; if ($row[shield]!="") $row[shield]=$row[shield]."`@"; if ($row[rangedweapon]!="") $row[rangedweapon]=$row[rangedweapon]."`@"; if($row[pants]!="" && $row[shirt]!="") { $clothestring=$clothestring." ".$row[pants]." and a ".$row[shirt]." under %p ".$row[armor].". "; }elseif($row[pants]!=""){ $clothestring=$clothestring." ".$row[pants]." under %p ".$row[armor].". "; }elseif($row[shirt]!=""){ $clothestring=$clothestring." a ".$row[shirt]." under %p ".$row[armor].". "; }elseif($row[armor]!=""){ $clothestring=$clothestring." %p ".$row[armor].". "; }else{ $clothestring=$clothestring." nothing but a smile. "; $nonext=1; } //Section 2: Accessories if ($nonext!=1){ $alsowears="also wears"; }else{ $alsowears="does wear"; } if ($row[helm]!="" && $row[gloves]!="" && $row[boots]!=""){ $clothestring=$clothestring." %o $alsowears a ".$row[helm].", ".$row[gloves].", and a pair of ".$row[boots].". "; }elseif ($row[helm]!=""){ $clothestring=$clothestring." %o $alsowears a ".$row[helm]; if ($row[gloves]!=""){ $clothestring=$clothestring.", and ".$row[gloves].". "; }elseif ($row[boots]!=""){ $clothestring=$clothestring.", and a pair of ".$row[boots].". "; }else{ $clothestring=$clothestring.". "; } }elseif ($row[gloves]!=""){ $clothestring=$clothestring." %o $alsowears ".$row[gloves]; if ($row[boots]!=""){ $clothestring=$clothestring.", and a pair of ".$row[boots].". "; }else{ $clothestring=$clothestring.". "; } }elseif ($row[boots]!=""){ $clothestring=$clothestring." %o $alsowears a pair of ".$row[boots].". "; } //Section 3: Weapons and Stuff if ($row[usewpn]==-1){ $clothestring = $clothestring." %o currently fights with %p fists"; }elseif ($row[usewpn]==0){ $clothestring = $clothestring." %o currently fights with %p ".$row[weapon]; }elseif ($row[usewpn]==1){ $clothestring = $clothestring." %o currently fights with %p ".$row[secondweapon]; }else{ $clothestring = $clothestring." %o generally fights with %p ".$row[weapon]; } if ($row[shield]!=""){ $clothestring=$clothestring." and ".$row[shield]; } if ($row[rangedweapon]!=""){ $clothestring = $clothestring.", and uses %p ".$row[rangedweapon]." to deal with distant problems."; }else{ $clothestring = $clothestring."."; } $clothestring = str_replace("%o",($row[sex]?"She":"He"),$clothestring); $clothestring = str_replace("%p",($row[sex]?"her":"his"),$clothestring); output("`^Gear: `@".$clothestring."`n`n"); } output("`^Equipment List: `@`n"); if ($row[weapon]!="") output("`^Main Weapon: `@".$row[weapon]."`n"); if ($row[weapondesc]!="") output($row[weapondesc]."`n`n"); if ($row[secondweapon]!="") output("`^Secondary Weapon: `@".$row[secondweapon]."`n"); if ($row[secondweapondesc]!="") output($row[secondweapondesc]."`n`n"); if ($row[thirdweapon]!="") output("`^Third Weapon: `@".$row[thirdweapon]."`n"); if ($row[thirdweapondesc]!="") output($row[thirdweapondesc]."`n`n"); if ($row[shirt]!="") output("`^Shirt/Blouse: `@".$row[shirt]."`n"); if ($row[shirtdesc]!="") output($row[shirtdesc]."`n`n"); if ($row[pants]!="") output("`^Pants/Skirt: `@".$row[pants]."`n"); if ($row[pantsdesc]!="") output($row[pantsdesc]."`n`n"); if ($row[armor]!="") output("`^Body Armor: `@".$row[armor]."`n"); if ($row[armordesc]!="") output($row[armordesc]."`n`n"); if ($row[shield]!="") output("`^Shield: `@".$row[shield]."`n"); if ($row[shielddesc]!="") output($row[shielddesc]."`n`n"); if ($row[helm]!="") output("`^Helm: `@".$row[helm]."`n"); if ($row[helmdesc]!="") output($row[helmdesc]."`n`n"); if ($row[gloves]!="") output("`^Gloves: `@".$row[gloves]."`n"); if ($row[glovesdesc]!="") output($row[glovesdesc]."`n`n"); if ($row[boots]!="") output("`^Boots: `@".$row[boots]."`n"); if ($row[bootsdesc]!="") output($row[bootsdesc]."`n`n"); if ($row[amulet]!="") output("`^Amulet: `@".$row[amulet]."`n"); if ($row[amuletdesc]!="") output($row[amuletdesc]."`n`n"); if ($row[ringA]!="") output("`^Left Ring: `@".$row[ringA]."`n"); if ($row[ringAdesc]!="") output($row[ringAdesc]."`n`n"); if ($row[ringB]!="") output("`^Right Ring: `@".$row[ringB]."`n"); if ($row[ringBdesc]!="") output($row[ringBdesc]."`n`n"); if ($row[cloak]!="") output("`^Cloak: `@".$row[cloak]."`n"); if ($row[cloakdesc]!="") output($row[cloakdesc]."`n`n"); if ($row[bracers]!="") output("`^Bracers: `@".$row[bracers]."`n"); if ($row[bracersdesc]!="") output($row[bracersdesc]."`n`n"); if ($row[costume]!="") output("`^Costume: `@".$row[costume]."`n"); if ($row[costumedesc]!="") output($row[costumedesc]."`n`n"); if ($row[mask]!="") output("`^Mask: `@".$row[mask]."`n"); if ($row[maskdesc]!="") output($row[maskdesc]."`n`n"); output("`n`n"); //Goal Statement: //Arc is wearing Denim Pants and a Denim Shirt under his Hippie Jacket. He also wears a Bizarre Hairstyle, Kid Gloves, //and a pair of Sneakers. He generally fights with his 'Unbreakable' Blade and Buckler, and uses a Cannablaster to deal with //distant problems. $acctid=$row[acctid]; if ($row[bio]!="") output("`^Bio: `@".str_replace("\n","`n","$row[bio]")."`n`n`n"); if ($row[mutations]!="") output("`^Mutations: `@".str_replace("\n","`n","$row[mutations]")."`n`n`n"); if ($row[picture]!="") output("`^Picture: `@`n`n",true); output("`^Shared Information: `n"); if ($row[pinfoname]!="") output("`^Player Name: `@".$row[pinfoname]."`n"); if ($row[pinfoweb]!="") output("`^Website: `@".$row[pinfoweb]."`n"); if ($row[pinfoemail]!="") output("`^Email Address: `@".$row[pinfoemail]."`n"); if ($row[pinfoaim]!="") output("`^AIM SN: `@".$row[pinfoaim]."`n"); if ($row[pinfoicq]!="") output("`^ICQ #: `@".$row[pinfoicq]."`n"); if ($row[pinfoname]=="" && $row[pinfoweb]=="" && $row[pinfoemail]=="" && $row[pinfoaim]=="" && $row[pinfoicq]=="") output("`^None`n"); output("`n"); output("`n`^Recent accomplishments (and defeats) of $row[name]`^"); $result = db_query("SELECT * FROM news WHERE accountid=$row[acctid] ORDER BY newsdate DESC,newsid ASC LIMIT ".($fame * 10)); $odate=""; for ($i=0;$i2) addnav("Edit this user","user.php?op=edit&userid=".$acctid); page_footer(); ?>