LoGD Standardrelease steht hier zum Download zur Verfügung!

Zeige Source: /logd/meister.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: /logd/meister.php

<?php

require_once "common.php";
require_once 
"func/fightnav.php";

if(isset(
$_GET['meister'])){
    
$_SESSION['tmp']['meister']=$_GET['meister'];
}

$badguys = array(1=> array("creaturename"=>"Zulan, Meister des Wassers"
                            
,"creaturelevel"=>15
                            
,"creatureweapon"=>"Wasserschwert"
                            
,"creatureattack"=>20
                            
,"creaturedefense"=>20
                            
,"creaturehealth"=>200
                            
,"diddamage"=>0),

                    
2=> array("creaturename"=>"Elwus, Meister des Feuers"
                            
,"creaturelevel"=>20
                            
,"creatureweapon"=>"Flammenpeitsche"
                            
,"creatureattack"=>25
                            
,"creaturedefense"=>25
                            
,"creaturehealth"=>350
                            
,"diddamage"=>0),

                    
3=> array("creaturename"=>"Reanda, Meisterin des Windes"
                            
,"creaturelevel"=>25
                            
,"creatureweapon"=>"Wirbelsturm"
                            
,"creatureattack"=>35
                            
,"creaturedefense"=>35
                            
,"creaturehealth"=>450
                            
,"diddamage"=>0),

                    
4=> array("creaturename"=>"Gaya, Meister der Erde"
                            
,"creaturelevel"=>30
                            
,"creatureweapon"=>"Erdstoß"
                            
,"creatureattack"=>40
                            
,"creaturedefense"=>40
                            
,"creaturehealth"=>550
                            
,"diddamage"=>0),
                            
                    
5=> array("creaturename"=>"Genbu, Meister der Schatten"
                            
,"creaturelevel"=>35
                            
,"creatureweapon"=>"Schattenpeitsche"
                            
,"creatureattack"=>45
                            
,"creaturedefense"=>45
                            
,"creaturehealth"=>650
                            
,"diddamage"=>0),

                    
6=> array("creaturename"=>"Olah, Meister des Lichts"
                            
,"creaturelevel"=>40
                            
,"creatureweapon"=>"Lichtbogen"
                            
,"creatureattack"=>50
                            
,"creaturedefense"=>50
                            
,"creaturehealth"=>750
                            
,"diddamage"=>0),

                    
7=> array("creaturename"=>"Durlok, Meister des Todes"
                            
,"creaturelevel"=>45
                            
,"creatureweapon"=>"Schattenpeitsche"
                            
,"creatureattack"=>55
                            
,"creaturedefense"=>55
                            
,"creaturehealth"=>850
                            
,"diddamage"=>0),

                    
8=> array("creaturename"=>"Lavariel, Meister des Lebens"
                            
,"creaturelevel"=>50
                            
,"creatureweapon"=>"Lebensstrahl"
                            
,"creatureattack"=>60
                            
,"creaturedefense"=>60
                            
,"creaturehealth"=>950
                            
,"diddamage"=>0),

                    
9=> array("creaturename"=>"Xeron, Meister des Äthers"
                            
,"creaturelevel"=>55
                            
,"creatureweapon"=>"Ätherflamme"
                            
,"creatureattack"=>65
                            
,"creaturedefense"=>65
                            
,"creaturehealth"=>1050
                            
,"diddamage"=>0),

                    
10=> array("creaturename"=>"Alamar, Meister des `4P`\$h`Qo`qe`^n`qi`\$x"
                            
,"creaturelevel"=>60
                            
,"creatureweapon"=>"Phoenix"
                            
,"creatureattack"=>70
                            
,"creaturedefense"=>70
                            
,"creaturehealth"=>1150
                            
,"diddamage"=>0),

                    
11=> array("creaturename"=>"Adastrea, Meisterin der Liebe"
                            
,"creaturelevel"=>65
                            
,"creatureweapon"=>"Liebesschwur"
                            
,"creatureattack"=>75
                            
,"creaturedefense"=>75
                            
,"creaturehealth"=>1250
                            
,"diddamage"=>0),

                    
12=> array("creaturename"=>"Pandora, Meisterin des Glücks"
                            
,"creaturelevel"=>70
                            
,"creatureweapon"=>"Büchse der Pandora"
                            
,"creatureattack"=>80
                            
,"creaturedefense"=>80
                            
,"creaturehealth"=>1350
                            
,"diddamage"=>0),

                    
13=> array("creaturename"=>"Salazar, Meister der Zuversicht"
                            
,"creaturelevel"=>75
                            
,"creatureweapon"=>"Zuversicht"
                            
,"creatureattack"=>85
                            
,"creaturedefense"=>85
                            
,"creaturehealth"=>1450
                            
,"diddamage"=>0),

                    
14=> array("creaturename"=>"Telesto, Meister der Treue"
                            
,"creaturelevel"=>78
                            
,"creatureweapon"=>"Treueeid"
                            
,"creatureattack"=>95
                            
,"creaturedefense"=>95
                            
,"creaturehealth"=>1750
                            
,"diddamage"=>0),

                    
15=> array("creaturename"=>"Tiara, Meisterin der Morgenröte"
                            
,"creaturelevel"=>81
                            
,"creatureweapon"=>"Sonnenstrahl"
                            
,"creatureattack"=>100
                            
,"creaturedefense"=>100
                            
,"creaturehealth"=>2200
                            
,"diddamage"=>0),

                    
16=> array("creaturename"=>"Kapari, Meister des Raureifs"
                            
,"creaturelevel"=>84
                            
,"creatureweapon"=>"Eiskristall"
                            
,"creatureattack"=>110
                            
,"creaturedefense"=>110
                            
,"creaturehealth"=>2450
                            
,"diddamage"=>0),

                    
17=> array("creaturename"=>"Arkadon, Meister der Drachen"
                            
,"creaturelevel"=>88
                            
,"creatureweapon"=>"Drachentöter"
                            
,"creatureattack"=>125
                            
,"creaturedefense"=>125
                            
,"creaturehealth"=>2750
                            
,"diddamage"=>0)
);

$mfarben=array(0=>""1=>"`4"2=>"`$"3=>"`Q"4=>"`q"5=>"`X"6=>"`_"7=>"`&",
                    
8=>"`Á"9=>"`D"10=>"`("11=>"`9"12=>"`m"13=>"`M"14=>"`é",
                    
15=>"`x"16=>"`Z"17=>"`]"18=>"`="19=>"`8"20=>"`g"21=>"`g",
                    
22=>"`g"23=>"`g"24=>"`g");                    

page_header($badguys[$_SESSION['tmp']['meister']]['creaturename']);

if(
$_SESSION['tmp']['meister']<||$_SESSION['tmp']['meister']>17){
    
output('Es ist ein Fehler aufgetreten, benachrichtige bitte einen Admin und füge die folgende Fehlermeldung an deine Nachricht an: '
            
.'`n(meister.php, '.$_SESSION['tmp']['meister'].', '.$session['user']['acctid'].', '.date('d.m.Y, H:i:s').')');
    
addnav("Zurück","man.php");
    
page_footer();
    unset(
$_SESSION['tmp']['meister']);
    exit();
}

$badguy=$badguys[$_SESSION['tmp']['meister']];
$badguy['creaturename']=$mfarben[$_SESSION['tmp']['meister']].$badguy['creaturename'];
//if($_GET['init']=='true') $session['user']['badguy']=createstring($badguy);
$session['user']['badguy']=createstring($badguy);

/*
    $atkflux = e_rand(0,$session['user']['dragonkills']*2);
    $defflux = e_rand(0,($session['user']['dragonkills']*2-$atkflux));
    $hpflux = ($session['user']['dragonkills']*2 - ($atkflux+$defflux)) * 5;
    $badguy['creatureattack']+=$atkflux;
    $badguy['creaturedefense']+=$defflux;
    $badguy['creaturehealth']+=$hpflux;
*/

$battle=true;

if (
$battle){
    include (
"battle.php");
    if (
$victory){
            
output("`n`^Du hast `^".$mfarben[$_SESSION['tmp']['meister']].$badguys[$_SESSION['tmp']['meister']]['creaturename']."`^ besiegt.`n`#Du erhältst einen Orden!");
            
$badguy=array();
            
$session[user][badguy]="";
            
$session[user][orden]+=1;
            unset(
$_SESSION['tmp']['meister']);
            
addnav("Verlasse den Raum","man.php");
    }elseif(
$defeat){
        
output("Du wurdest von deinem Meister besiegt! Du bist tot!");
        
$session[user][hitpoints]=0;
        
$session[user][specialinc]="";
        
$session[user][reputation]--;
        unset(
$_SESSION['tmp']['meister']);
        
addnav("Tägliche News","news.php");
    } else {
        
fightnav();
    }
}

page_footer();
?>