LoGD Standardrelease steht hier zum Download zur Verfügung!

Zeige Source: /battlearena.php

Hier klicken für den Source, ODER
Weitere Dateien, von denen du den Quelltext sehen kannst:
(Das Lesen des Source, um sich spielerische Vorteile zu verschaffen, ist nicht erlaubt. Solltest du Schwachstellen oder Fehler entdecken, bist du als Spieler verpflichtet, diese zu melden.)

Source von: /battlearena.php

<?php

// 09092004

//Battle Arena - first release
//Created by Lonny Luberts of http://www.pqcomp.com/logd e-mail logd@pqcomp.com
//place this file in the main(logd) folder
//addfield `battlepoints` int(11) NOT NULL default '0' to accounts
//
//addfield `pqinttemp` int(20) NOT NULL default '0' to accounts (will re-use this in further modules, temp data field)
//(this version uses 'specialmisc' for that purpose; pqinttemp not needed -- anpera)
//
//in dragon.php after
// ,"beta"=>1
//add
// ,"battlepoints"=>1
//this way battlepoints do not reset after dragon kill
// translation by anpera

require_once "common.php";

page_header("Die Turnierarena");
        
output("`c<table width='700'><tr>
<td> <img src='images/arena.jpg' width='700' hight='150'>
</td></tr>
</table>`c`n`0"
,true);
//checkevent();
if ($HTTP_GET_VARS[op] == ""){
    
output("`1`iWenn du hier kämpfen willst, musst du dich erst beim Turniermeister anmelden und so machst du dich auf den Weg. Du findest ihn in einem kleinen Gebäude und ohne viel Aufhebens zu machen erklärt er dir, dass du eine Gebühr bezahlen musst, wenn du gegen die Champions antreten willst. `n`i`n");
    
$sql "SELECT battlepoints,name FROM accounts WHERE battlepoints > 0  ORDER BY battlepoints DESC,name";
    
$result db_query($sql);
    for (
$i=0;$i<db_num_rows($result);$i++){
            
$row db_fetch_assoc($result);
        if (
$row[battlepoints] > $topbattle and $row[battlepoints] > 0){
            
$topbattle $row[battlepoints];
            
$plaque $row[name];
        }
    }
    
output("`1`iHinter ihm hängt eine Tafel auf welcher der erfolgreichste Kämpfer der Arena genannt wird.`n`n`c Es ist:`i`c ");
    if (
$plaque <> ""){
        
output("`c`ç`b$plaque`b`1.`n`c`n"); 
    }else{
        
output("`cNiemand.`c`n`n");
    }
    
output("`1`iNachdem dich der Turniermeister nach deinen bisherigen Erfolgen befragt hat, sagt er dir, gegen welche Champions du antreten kannst:`i`n");
    if (
$session[user][battlepoints] < 13 || $session[user][dragonkills]<1output("<ul>`ECicero Level 9`n",true);
    if (
$session[user][battlepoints] > 12 && $session[user][dragonkills] >= && $session[user][battlepoints] < 72 output("`DVibius Level 10`n");
    if (
$session[user][battlepoints] >= 36 && $session[user][dragonkills] > && $session[user][battlepoints] < 180 output("`EQuintus Level 11`n");
    if (
$session[user][battlepoints] >= 72 && $session[user][dragonkills] > && $session[user][battlepoints] < 252 output("`DCassius Level 12`n");
    if (
$session[user][battlepoints] >= 120 && $session[user][dragonkills] > && $session[user][battlepoints] < 336 output("`ELucius Level 13`n");
    if (
$session[user][battlepoints] >= 180 && $session[user][dragonkills] > 5output("`DAurelius Level 14`n");
    if (
$session[user][battlepoints] >= 252 && $session[user][dragonkills] > 7output("`EProximo Level 15`n");
    if (
$session[user][battlepoints] >= 336 && $session[user][dragonkills] > 9output("`DMaximus Level 15`n");
    
output("</ul>`n`&Ein Kampf in der Arena wird dich einen Waldkampf kosten.`n",true);
    
output("`&Es ist sehr empfehlenswert, dass du dich nur in bester Verfassung einem Kampf stellst.`n");
//    output("`2Du musst eine Nutzungsgebühr bezahlen.`n");
    
if ($session[user][gold] < 1output("Leider stellst du fest, dass deine Taschen leer sind.`n");
    if (
$session[user][gold] > and $session[user][gold] < 50output("Leider bemerkst du, dass du nicht genug Gold hast.`n");
    
addnav("Was nun?");
    if (
$session[user][gold] > 49 and $session[user][turns] > 0addnav("Gebühr (50 Gold)","battlearena.php?op=pay");
    
//if ($session[user][battlepoints] > 120 and $session[user][dragonkills] > 4) addnav("Gesellschaftsraum","battlearena.php?op=lounge");
    //addnav("Rangliste","battlearena.php?op=rank");
    
addnav("Wege");
    
addnav("Zurück","pvparena.php");
    
addnav("Zurück zur Stadt","village.php");
    
addnav("Zurück zur Akademie","akademie.php");
}
if (
$HTTP_GET_VARS[op] == "lounge"){
    
output("`c`b`&Veteran's Lounge`0`b`c`n`n");
    
addcommentary();
    
viewcommentary("battlearena","Angeben:",20,"prahlt:");
    if (@
file_exists("pvparena.php")){
        
addnav("Zurück zur Arena","pvparena.php");
    }else{
        
addnav("Zurück zur Arena","battlearena.php");
    }
}
if (
$HTTP_GET_VARS[op] == "rank"){
    
output("`3Diese Krieger haben sich bereits im Kampf bewährt.`n`n");
    
$sql "SELECT battlepoints,name FROM accounts WHERE battlepoints > 0  ORDER BY battlepoints DESC,name";
    
$result db_query($sql);
    for (
$i=0;$i<db_num_rows($result);$i++){
    
$row db_fetch_assoc($result);
    if (
$row[battlepoints] > 0){
        
output($row[name]." `7hat ".$row[battlepoints]." `7Kampfpunkte.`n");
    }
}
addnav("Weiter","battlearena.php");
}
if (
$HTTP_GET_VARS[op] == "pay"){
    
$session[user][gold]-=50;
    
$session[user][turns]-=1;
    
output("`cWähle deinen Gegner.`c");
    
addnav("Wähle deinen Gegner");
    if (
$session[user][battlepoints] < 13 || $session[user][dragonkills]<1)addnav("`ECicero","battlearena.php?op=Cicero");
    if (
$session[user][battlepoints] > 12 and $session[user][dragonkills] >= && $session[user][battlepoints] < 72 addnav("`DVibius","battlearena.php?op=Vibius");
    if (
$session[user][battlepoints] >= 36 and $session[user][dragonkills] > && $session[user][battlepoints] < 180 addnav("`EQuintus","battlearena.php?op=Quintus");
    if (
$session[user][battlepoints] >= 72 and $session[user][dragonkills] > && $session[user][battlepoints] < 252 addnav("`DCassius","battlearena.php?op=Cassius");
    if (
$session[user][battlepoints] >= 120 and $session[user][dragonkills] > && $session[user][battlepoints] < 336 addnav("`ELucius","battlearena.php?op=Lucius");
    if (
$session[user][battlepoints] >= 180 and $session[user][dragonkills] > 5addnav("`DAurelius","battlearena.php?op=Aurelius");
    if (
$session[user][battlepoints] >= 252 and $session[user][dragonkills] > 7addnav("`EProximo","battlearena.php?op=Proximo");
    if (
$session[user][battlepoints] >= 336 and $session[user][dragonkills] > 9addnav("`DMaximus","battlearena.php?op=Maximus");
}
if (
$HTTP_GET_VARS[op] == "win"){
    if (
$HTTP_GET_VARS[op2] == "Cicero"){
        
$winnings e_rand(75,100);
        
$points=1;
    
//    $session['user']['reputation']+=(11-$session['user']['level']);
    
}
    if (
$HTTP_GET_VARS[op2] == "Vibius"){
        
$points=2;
        
$winnings e_rand(90,175);
    
//    $session['user']['reputation']+=(12-$session['user']['level']);
    
}
    if (
$HTTP_GET_VARS[op2] == "Quintus"){
        
$points=3;
        
$winnings e_rand(110,228);
    
//    $session['user']['reputation']+=(13-$session['user']['level']);
    
}
    if (
$HTTP_GET_VARS[op2] == "Cassius"){
        
$points=4;
        
$winnings e_rand(150,300);
        
//$session['user']['reputation']+=(14-$session['user']['level']);
    
}
    if (
$HTTP_GET_VARS[op2] == "Lucius"){
        
$points=5;
        
$winnings e_rand(190,409);
    
//    $session['user']['reputation']+=(15-$session['user']['level']);
    
}
    if (
$HTTP_GET_VARS[op2] == "Aurelius"){
        
$points=6;
        
$winnings e_rand(273,580);
    
//    $session['user']['reputation']+=(16-$session['user']['level']-15);
    
}
    if (
$HTTP_GET_VARS[op2] == "Proximo"){
        
$points=7;
        
$winnings e_rand(333,680);
    
//    $session['user']['reputation']+=(16-$session['user']['level']);
    
}
    if (
$HTTP_GET_VARS[op2] == "Maximus"){
        
$points=8;
        
$winnings e_rand(399,777);
    
//    $session['user']['reputation']+=(17-$session['user']['level']);
    
}
    
$gladiator=$HTTP_GET_VARS[op2];
    
addnews("`D".$session[user][name]."`D hat $gladiator`D in der Arena besiegt!");
    
output("`DGratulation! Du hast $gladiator geschlagen!  Du bekommst $points Kampfpunkte!`n");
    
output("`DDu gewinnst $winnings Gold!`n");
    
$session[user][gold]+=$winnings;
    
$session[user][battlepoints]+=$points;
    if (
$session[user][hitpoints]<$session[user][maxhitpoints]) output("`& Die Arena-Ärzte versorgen deine Wunden.");
    if (
$session[user][hitpoints]==$session[user][maxhitpoints]){
        
output("`FAusgezeichneter Kampf! Du bekommst zusätzlich zum Gewinn dein Eintrittsgeld zurück!`n");
        
$session[user][gold]+=50;
    }
    if (
$session[user][hitpoints]<$session[user][maxhitpoints]) $session[user][hitpoints]+=round($session[user][maxhitpoints]*.5);
    if (
$session[user][hitpoints]>$session[user][maxhitpoints]) $session[user][hitpoints]=$session[user][maxhitpoints];
    
addnav("Weiter","battlearena.php");
}
if (
$HTTP_GET_VARS[op] == "loose"){
    
$session[user][hitpoints]=$session[user][maxhitpoints];
    
$who $HTTP_GET_VARS[op2];
    if (
$who == "Cicero"$session[user][battlepoints]-=1;
    if (
$who == "Vibius"$session[user][battlepoints]-=1;
    if (
$who == "Quintus"$session[user][battlepoints]-=2;
    if (
$who == "Cassius"$session[user][battlepoints]-=2;
    if (
$who == "Lucius"$session[user][battlepoints]-=3;
    if (
$who == "Aurelius"$session[user][battlepoints]-=3;
    if (
$who == "Proximo"$session[user][battlepoints]-=4;
    if (
$who == "Maximus"$session[user][battlepoints]-=4;
    
output("`DDu hast gegen $who verloren.`n");
//    addnews($session[user][name]." hat gegen $who in der Arena verloren."); 
    
output("`&Die Heiler der Arena versorgen deine Wunden.`n");
    
addnav("Weiter","battlearena.php");
    if (
$session[user][battlepoints]<0$session[user][battlepoints]=0;
}
if (
$HTTP_GET_VARS[op] == "Cicero"){
$badguy = array(        "creaturename"=>"`ECicero`0"
                                
,"creaturelevel"=>8
                                
,"creatureweapon"=>"Iaculum"
                                
,"creatureattack"=>65
                                
,"creaturedefense"=>65
                                
,"creaturehealth"=>120
                                
,"creaturegold"=>0
                                
,"diddamage"=>0);

                                
$badguy[creaturelevel]+=1;
                                
$badguy[creatureattack]+=5;
                                
$badguy[creaturehealth]+=e_rand(1,50);
                                
$badguy[creaturedefense]+=5;
                                
$badguy[creaturegold]=0;
                                
$session[user][badguy]=createstring($badguy);
                                
$HTTP_GET_VARS[op]="prefight";
                            }
if (
$HTTP_GET_VARS[op] == "Vibius"){
$badguy = array(        "creaturename"=>"`DVibius`0"
                                
,"creaturelevel"=>9
                                
,"creatureweapon"=>"Nagelkeule"
                                
,"creatureattack"=>70
                                
,"creaturedefense"=>70
                                
,"creaturehealth"=>140
                                
,"creaturegold"=>0
                                
,"diddamage"=>0);

                                
$badguy[creaturelevel]+=1;
                                
$badguy[creatureattack]+=5;
                                
$badguy[creaturehealth]+=e_rand(1,60);
                                
$badguy[creaturedefense]+=5;
                                
$badguy[creaturegold]=0;
                                
$session[user][badguy]=createstring($badguy);
                                
$HTTP_GET_VARS[op]="prefight";
                            } 
if (
$HTTP_GET_VARS[op] == "Quintus"){
$badguy = array(        "creaturename"=>"`EQuintus`0"
                                
,"creaturelevel"=>10
                                
,"creatureweapon"=>"Sichel"
                                
,"creatureattack"=>75
                                
,"creaturedefense"=>75
                                
,"creaturehealth"=>160
                                
,"creaturegold"=>0
                                
,"diddamage"=>0);

                                
$badguy[creaturelevel]+=1;
                                
$badguy[creatureattack]+=5;
                                
$badguy[creaturehealth]+=e_rand(1,70);
                                
$badguy[creaturedefense]+=5;
                                
$badguy[creaturegold]=0;
                                
$session[user][badguy]=createstring($badguy);
                                
$HTTP_GET_VARS[op]="prefight";
                            }

if (
$HTTP_GET_VARS[op] == "Cassius"){
$badguy = array(        "creaturename"=>"`DCassius`0"
                                
,"creaturelevel"=>11
                                
,"creatureweapon"=>"Schlagstock"
                                
,"creatureattack"=>80
                                
,"creaturedefense"=>80
                                
,"creaturehealth"=>180
                                
,"creaturegold"=>0
                                
,"diddamage"=>0);

                                
$badguy[creaturelevel]+=1;
                                
$badguy[creatureattack]+=5;
                                
$badguy[creaturehealth]+=e_rand(1,80);
                                
$badguy[creaturedefense]+=5;
                                
$badguy[creaturegold]=0;
                                
$session[user][badguy]=createstring($badguy);
                                
$HTTP_GET_VARS[op]="prefight";
                            }
if (
$HTTP_GET_VARS[op] == "Lucius"){
$badguy = array(        "creaturename"=>"`ELucius`0"
                                
,"creaturelevel"=>12
                                
,"creatureweapon"=>"Lanze"
                                
,"creatureattack"=>85
                                
,"creaturedefense"=>85
                                
,"creaturehealth"=>200
                                
,"creaturegold"=>0
                                
,"diddamage"=>0);

                                
$badguy[creaturelevel]+=1;
                                
$badguy[creatureattack]+=5;
                                
$badguy[creaturehealth]+=e_rand(1,90);
                                
$badguy[creaturedefense]+=5;
                                
$badguy[creaturegold]=0;
                                
$session[user][badguy]=createstring($badguy);
                                
$HTTP_GET_VARS[op]="prefight";
                            }
if (
$HTTP_GET_VARS[op] == "Aurelius"){
$badguy = array(        "creaturename"=>"`DAurelius`0"
                                
,"creaturelevel"=>13
                                
,"creatureweapon"=>"Hasta"
                                
,"creatureattack"=>90
                                
,"creaturedefense"=>90
                                
,"creaturehealth"=>220
                                
,"creaturegold"=>0
                                
,"diddamage"=>0);

                                
$badguy[creaturelevel]+=1;
                                
$badguy[creatureattack]+=5;
                                
$badguy[creaturehealth]+=e_rand(1,100);
                                
$badguy[creaturedefense]+=5;
                                
$badguy[creaturegold]=0;
                                
$session[user][badguy]=createstring($badguy);
                                
$HTTP_GET_VARS[op]="prefight";
                            } 
if (
$HTTP_GET_VARS[op] == "Proximo"){
$badguy = array(        "creaturename"=>"`EProximo`0"
                                
,"creaturelevel"=>14
                                
,"creatureweapon"=>"Harpune"
                                
,"creatureattack"=>95
                                
,"creaturedefense"=>95
                                
,"creaturehealth"=>240
                                
,"creaturegold"=>0
                                
,"diddamage"=>0);

                                
$badguy[creaturelevel]+=1;
                                
$badguy[creatureattack]+=5;
                                
$badguy[creaturehealth]+=e_rand(1,110);
                                
$badguy[creaturedefense]+=5;
                                
$badguy[creaturegold]=0;
                                
$session[user][badguy]=createstring($badguy);
                                
$HTTP_GET_VARS[op]="prefight";
                            }

if (
$HTTP_GET_VARS[op] == "Maximus"){
$badguy = array(        "creaturename"=>"`DMaximus`0"
                                
,"creaturelevel"=>14
                                
,"creatureweapon"=>"Gladiatorenschwert"
                                
,"creatureattack"=>125
                                
,"creaturedefense"=>125
                                
,"creaturehealth"=>340
                                
,"creaturegold"=>0
                                
,"diddamage"=>0);

                                
$badguy[creaturelevel]+=1;
                                
$badguy[creatureattack]+=e_rand(5,50);
                                
$badguy[creaturehealth]+=e_rand(1,160);
                                
$badguy[creaturedefense]+=e_rand(5,50);
                                
$badguy[creaturegold]=0;
                                
$session[user][badguy]=createstring($badguy);
                                if (
$badguy[creatureattack] < $session[user][attack]) $badguy[creatureattack] = ($session[user][attack] + e_rand(5,15));
                                if (
$badguy[creaturehealth] < $session[user][hitpoints]) $badguy[creaturehealth] = ($session[user][hitpoints] + e_rand(5,150));
                                
//not doing defence, don't want to make him unbeatable
                                
$HTTP_GET_VARS[op]="prefight";
                            } 
if (
$HTTP_GET_VARS[op] == "prefight"){ 
    
output("`&`iDu betrittst die Arena in der dein Gegner schon auf dich wartet. `i`n");
    
output($badguy[creaturename]." `&stürzt sich auf dich, kaum dass das Signal für den Kampfbeginn ertönt.`n");
    
$session[user][specialmisc]=$badguy[creaturehealth]; 
    
$HTTP_GET_VARS[op]="fight";
}                                          
if (
$HTTP_GET_VARS[op] == "fight"){
$battle=true;
}
if (
$battle){
    include_once(
"battle.php");
/*                        
        if (count($session[bufflist])>0 && is_array($session[bufflist]) || $HTTP_GET_VARS[skill]!=""){
        $HTTP_GET_VARS[skill]="";
        if ($HTTP_GET_VARS['skill']=="") $session['user']['buffbackup']=serialize($session['bufflist']);
        $session[bufflist]=array();
    }
*/ 
    
if ($victory){
                
output("`n`FDu hast `&".$badguy['creaturename']." `Fbesiegt.`n");
                
output("`&Einige der Zuschauer klatschen und rufen deinen Namen.`n");
                    if (
$badguy['creaturename']=="`ECicero`0"addnav("Weiter","battlearena.php?op=win&op2=Cicero");
                        if (
$badguy['creaturename']=="`DVibius`0"addnav("Weiter","battlearena.php?op=win&op2=Vibius");
                        if (
$badguy['creaturename']=="`EQuintus`0"addnav("Weiter","battlearena.php?op=win&op2=Quintus");
             if (
$badguy['creaturename']=="`DCassius`0"addnav("Weiter","battlearena.php?op=win&op2=Cassius");
                    if (
$badguy['creaturename']=="`ELucius`0"addnav("Weiter","battlearena.php?op=win&op2=Lucius");
                    if (
$badguy['creaturename']=="`DAurelius`0"addnav("Weiter","battlearena.php?op=win&op2=Aurelius");
                    if (
$badguy['creaturename']=="`EProximo`0"addnav("Weiter","battlearena.php?op=win&op2=Proximo");
                    if (
$badguy['creaturename']=="`DMaximus`0"addnav("Weiter","battlearena.php?op=win&op2=Maximus");
                    
output("`n`n`3Deine Gesundheit: `n");
        
output(grafbar($session[user][maxhitpoints],$session[user][hitpoints],"50%",15),true);
                    
output("`n");
                    
output("`n".$badguy[creaturename]."`3's Gesundheit: `n");
        
output(grafbar($session[user][specialmisc],0,"50%",15),true);
        
output("`n`n");
                    
$badguy=array();
                    
$session[user][badguy]="";
/*
        if (!is_array($session['bufflist']) || count($session['bufflist']) <= 0) {
            $session['bufflist'] = unserialize($session['user']['buffbackup']);
            if (is_array($session['bufflist'])) {
            } else {
                $session['bufflist'] = array();
            }
        }
        $session['user']['buffbackup'] = "";
*/
    
}elseif ($defeat){
                    
output("`n`EDu wurdest von `&".$badguy['creaturename']." `Egeschlagen.`n");
                    
$session[user][hitpoints]=1;
                    
$who=$badguy['creaturename'];
                    if (
$badguy['creaturename']=="`ECicero`0"addnav("Weiter","battlearena.php?op=loose&op2=Cicero");
                    if (
$badguy['creaturename']=="`DVibius`0"addnav("Weiter","battlearena.php?op=loose&op2=Vibius");
                    if (
$badguy['creaturename']=="`EQuintus`0"addnav("Weiter","battlearena.php?op=loose&op2=Quintus");
                    if (
$badguy['creaturename']=="`DCassius`0"addnav("Weiter","battlearena.php?op=loose&op2=Cassius");
                    if (
$badguy['creaturename']=="`ELucius`0"addnav("Weiter","battlearena.php?op=loose&op2=Lucius");
                    if (
$badguy['creaturename']=="`DAurelius`0"addnav("Weiter","battlearena.php?op=loose&op2=Aurelius");
                    if (
$badguy['creaturename']=="`EProximo`0"addnav("Weiter","battlearena.php?op=loose&op2=Proximo");
                    if (
$badguy['creaturename']=="`DMaximus`0"addnav("Weiter","battlearena.php?op=loose&op2=Maximus");
                    
output("`n`n`3Deine Gesundheit: `n");
        
output(grafbar($session[user][maxhitpoints],0,"50%",15),true);
        
output("`n`n");
                    
output("`n".$badguy[creaturename]."`3's Gesundheit: `n");
        
output(grafbar($session[user][specialmisc],$badguy[creaturehealth],"50%",15),true);
/*
        if (!is_array($session['bufflist']) || count($session['bufflist']) <= 0) {
            $session['bufflist'] = unserialize($session['user']['buffbackup']);
            if (is_array($session['bufflist'])) {
            } else {
                $session['bufflist'] = array();
            }
        }
        $session['user']['buffbackup'] = "";
*/
    
}else{
                    
fightnav(true,false);
                    
output("`n");
                    switch(
e_rand(1,11)){
            case 
1:
            
output("`b".$badguy[creaturename]."`f versucht einen billigen Trick.`b`n");
            break;
            case 
2:
            break;
            case 
3:
            break;
            case 
4:
            
output("`b".$badguy[creaturename]."`f knurrt dich an.`b`n");
            break;
            case 
5:
            
output("`b".$badguy[creaturename]."`f versucht, dir ein Ohr abzubeissen!`b`n");
            break;
            case 
6:
            
output("`b".$badguy[creaturename]."`f schimpft dich einen Feigling!`b`n");
            break;
            case 
7:
            break;
            case 
8:
            
output("`b".$badguy[creaturename]."`f behauptet, deine Oma kämpft besser!`b`n");
            break;
            case 
9:
            
output("`b".$badguy[creaturename]."`f sagt, du kämpfst wie ein Kind!`b`n");
            break;
            case 
10:
            
output("`b".$badguy[creaturename]."`f sagt, dass du hässlich bist und dass dir deine Mami komische Sachen zum Anziehen gibt!`b`n");
            break;
            case 
11:
            break;
        }
        switch(
e_rand(1,15)){
                case 
1:
                
output("`FDie Menge tobt vor Begeisterung!`n");
                break;
                case 
2:
                
output("`FDie Menge gröhlt: \"".$session[user][name]." `F".$session[user][name]."`#\".`n");
                break;
                case 
3:
                
output("`FDie Menge gröhlt: \"".$badguy[creaturename]." `F".$badguy[creaturename]."`#\".`n");
                break;
                case 
4:
                
output("`FDie Menge wird still.`n");
                break;
                case 
5:
                
output("`FDie Menge wird nervös!`n");
                break;
                case 
6:
                
output("`FDie Menge macht eine Welle.`n");
                break;
                case 
7:
                
output("`FDie Spannung steigt.`n");
                break;
                case 
8:
                
output("`FDie Menge brüllt: \"Nieder mit ".$badguy[creaturename]." `#\".`n");
                break;
                case 
9:
                
output("`FDie Menge brüllt: \"Nieder mit ".$session[user][name]." `#\".`n");
                break;
                case 
10:
                
output("`FDie Menge kommt in Bewegung!`n Einige Zuschauer fallen in die Arena, nur um anschließend von einer Wache wieder weggetragen zu werden.`n");
                break;
                case 
11:
                
output("`FDie Menge ruft:  \"Mach ihn fertig! Mach ihn fertig!\".`n");
                break;
                case 
12:
                
output("`FDie Menge schreit was das Zeug hält!`n");
                break;
                case 
13:
                
output("`FDie Menge tobt.`n");
                break;
                case 
14:
                
output("`FEin dicker, fetter Kerl bemalt sich mit roten Kringeln und führt einen Tanz auf.`n");
                break;
                case 
15:
                
output("`FEin Fan rennt in die Arena und im Eifer des Gefechts streifst du ihn und er fliegt in eine Ecke der Arena.`n");
                break;
                }
/*
                output("`6Moderator: ");
                if ($selfdmg > 0) output("`6Autsch, ".$badguy[creaturename]."`6 trifft ".$session[user][name]."`6 mit $selfdmg Punkten!`n");
                if ($selfdmg == 0) output($badguy[creaturename]."`6 holt nach ".$session[user][name]."`6 aus, trifft aber nicht!`n");
                if ($selfdmg < 0) output($badguy[creaturename]."`6 holt nach ".$session[user][name]."`6 aus, trifft aber nicht!`n".$session[user][name]."`6 nutzt das aus und trifft ".$badguy[creaturename]."`6.`n");
                output("`6Moderator: ");
                if ($creaturedmg > 0) output("`6Autsch, ".$session[user][name]."`6 trifft ".$badguy[creaturename]."`6 mit $creaturedmg Punkten!`n");
                if ($creaturedmg == 0) output($session[user][name]."`6 holt nach ".$badguy[creaturename]."`6 aus, trifft aber nicht!`n");
                if ($creaturedmg < 0) output($session[user][name]."`6 holt nach ".$badguy[creaturename]."`6 aus, trifft aber nicht!`n".$badguy[creaturename]."`6 nutzt das aus und trifft ".$session[user][name]."`6.`n");
*/
                
output("`n`3Deine Gesundheit: `n");
        
output(grafbar($session[user][maxhitpoints],$session[user][hitpoints],"50%",15),true);
                
output("`n");
                
output("`n".$badguy[creaturename]."`3's Gesundheit: `n");
        
output(grafbar($session[user][specialmisc],$badguy[creaturehealth],"50%",15),true);
 
         }
}else{

}
checkday();
page_footer();
?>