Anpassen der cronjob kampf dateien, dass sie nur noch die kampf/include sachen nutzen.

main
hecht 10 years ago
parent c16ede1133
commit 7880e4f26d

@ -1,223 +0,0 @@
<?php
/*
*
* @copyright (c) 2010 animegame.eu
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
$uzze=0;
while($uzze < 10) {
$aktion_AV1[$uzze] = "";
$aktion_AV2[$uzze] = "";
$uzze++;
}
$ssj_tech_1="";
$ssj_tech_2="";
$play1_ausweich="";
$play2_ausweich="";
$k_exp[0] = "";
$X23 = "";
$X13 = "";
$schaden_1="";
$schaden_2="";
################## Kaempfer 1
$k_hp1 = explode(",", $chara_1[hp]);
$k_mp1 = explode(",", $chara_1[mp]);
$k_hp1[0] = $k_hp1[1];
$k_mp1[0] = $k_mp1[1];
$k_starke[0] = $chara_1[starke] + $k_rustung[ru_mal];
$k_speed[0] = $chara_1[speed];
$k_ver[0] = $chara_1[verteidigung] + $k_rustung[ru_mal];
$k_ausdauer[0] = $chara_1[ausdauer];
$k_glueck[0] = $chara_1[glueck];
$k_attacke1 = explode(",", $chara_1[attacken]);
$k_hp[0] = round($k_hp1[0]);
$k_mp[0] = round($k_mp1[0]);
$k_aufgabe_a_1 = $k_hp1[1] / 100;
$k_aufgabe[0] = $k_aufgabe_a_1 * $chara_1[aufgeben];
######################################Kaempfer2
$k_hp2 = explode(",", $chara_2[hp]);
$k_mp2 = explode(",", $chara_2[mp]);
$k_hp2[0] = $k_hp2[1];
$k_mp2[0] = $k_mp2[1];
$k_starke[1] = $chara_2[starke] + $k_rustung[ru_mal];
$k_speed[1] = $chara_2[speed];
$k_ver[1] = $chara_2[verteidigung] + $k_rustung[ru_mal];
$k_ausdauer[1] = $chara_2[ausdauer];
$k_glueck[1] = $chara_2[glueck];
$k_attacke2 = explode(",", $chara_2[attacken]);
$k_hp[1] = round($k_hp2[0]);
$k_mp[1] = round($k_mp2[0]);
$k_aufgabe_a_2 = $k_hp2[1] / 100;
$k_aufgabe[1] = $k_aufgabe_a_2 * $chara_2[aufgeben];
$x=0;
mysql_query("INSERT clan_kampf SET hp1='$k_hp[0]', hp2='$k_hp[1]', mp1='$k_mp[0]', mp2='$k_mp[1]', schaden1='$schaden_1', schaden2='$schaden_2', attacke1='$technick1[name]', attacke2='$technick2[name]', char1='$chara_1[id]', char2='$chara_2[id]', starke1='$k_starke[0]', starke2='$k_starke[1]', ver1='$k_ver[0]', ver2='$k_ver[1]', speed1='$k_speed[0]', speed2='$k_speed[1]', ausdauer1='$k_ausdauer[0]', ausdauer2='$k_ausdauer[1]'");
while($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
$technick1 = mysql_fetch_array(mysql_query("SELECT at_id, aktiv FROM lernen WHERE id='$k_attacke1[$x]' LIMIT 10"));
$prozent_technik1 = (20*$technick1[aktiv])-20;
$technick1 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$technick1[at_id]' LIMIT 10"));
$technick2 = mysql_fetch_array(mysql_query("SELECT at_id, aktiv FROM lernen WHERE id='$k_attacke2[$x]' LIMIT 10"));
$prozent_technik2 = (20*$technick2[aktiv])-20;
$technick2 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$technick2[at_id]' LIMIT 10"));
///////////////////Hier laedt er den RELOAD der technik wenn die zusammen setzung nicht stimmen sollte
include(ROOT_PATH.'/include/kampf/andere_technik.php'); /////////////////// Wenn man ne andere technik sich aussuchen will...
$technick1[speed]=$technick1[speed]+(($technick1[speed]/100)*$prozent_technik1);
$technick2[speed]=$technick2[speed]+(($technick2[speed]/100)*$prozent_technik2);
$technick1[verteidigung]=$technick1[verteidigung]+(($technick1[verteidigung]/100)*$prozent_technik1);
$technick2[verteidigung]=$technick2[verteidigung]+(($technick2[verteidigung]/100)*$prozent_technik2);
$technick1[starke]=$technick1[starke]+(($technick1[starke]/100)*$prozent_technik1);
$technick2[starke]=$technick2[starke]+(($technick2[starke]/100)*$prozent_technik2);
$speeds_char1 = ($k_speed[0] + $technick1[speed]);
$speeds_char2 = ($k_speed[1] + $technick2[speed]);
$speeds_char1_4 = ($k_speed[0] + $technick1[speed]) / 1.5;
$speeds_char2_4 = ($k_speed[1] + $technick2[speed]) / 1.5;
if($speeds_char1_4 < 1) { $speeds_char1_4 = 1; }
if($speeds_char2_4 < 1) { $speeds_char2_4 = 1; }
$speed_char1 = mt_rand($speeds_char1_4,$speeds_char1);
$speed_char2 = mt_rand($speeds_char2_4,$speeds_char2);
$aussetzten_runde = ""; ////// MUSS SO BLEIBEN WICHTIG
##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken
include(ROOT_PATH.'/include/kampf/majin.php');
if(!$aussetzten_runde) {
include(ROOT_PATH.'/include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen
include(ROOT_PATH.'/include/kampf/gift.php');
include(ROOT_PATH.'/include/kampf/frucht.php');
include(ROOT_PATH.'/include/kampf/mp.php');
include(ROOT_PATH.'/include/kampf/hp.php');
include(ROOT_PATH.'/include/kampf/hp2.php');
include(ROOT_PATH.'/include/kampf/SSJ.php');
include(ROOT_PATH.'/include/kampf/kaioken.php');
include(ROOT_PATH.'/include/kampf/kaioken2.php');
include(ROOT_PATH.'/include/kampf/copy.php');
include(ROOT_PATH.'/include/kampf/lose.php');
include(ROOT_PATH.'/include/kampf/lose2.php');
include(ROOT_PATH.'/include/kampf/ausdauer.php');
include(ROOT_PATH.'/include/kampf/mpv.php');
include(ROOT_PATH.'/include/kampf/tausch.php');
include(ROOT_PATH.'/include/kampf/hpmp.php');
}
include(ROOT_PATH.'/include/kampf/atk_wert.php');
#####################################KAMPF SYSTEM
include(ROOT_PATH.'/include/kampf/kampf_rechnung.php');
$db_query = mysql_fetch_array(mysql_query("SELECT * FROM clan_kampf WHERE (char1='$chara_1[id]' OR char1='$chara_2[id]') AND dauer='0' order by id DESC LIMIT 1"));
mysql_query("UPDATE clan_kampf SET hp1='$db_query[hp1],$k_hp7[0]', hp2='$db_query[hp2],$k_hp7[1]', mp1='$db_query[mp1],$k_mp7[0]', mp2='$db_query[mp2],$k_mp7[1]', schaden1='$db_query[schaden1],$schaden_1', schaden2='$db_query[schaden2],$schaden_2', attacke1='$db_query[attacke1],$technick1[name]', attacke2='$db_query[attacke2],$technick2[name]', starke1='$db_query[starke1],$k_starke[0]', starke2='$db_query[starke2],$k_starke[1]', ver1='$db_query[ver1],$k_ver[0]', ver2='$db_query[ver2],$k_ver[1]', speed1='$db_query[speed1],$k_speed[0]', speed2='$db_query[speed2],$k_speed[1]', ausdauer1='$db_query[ausdauer1],$k_ausdauer[0]', ausdauer2='$db_query[ausdauer2],$k_ausdauer[1]' WHERE id='$db_query[id]'");
$x++;
}
###########################EXP VERTEILUNG
$s=0;
while($s < 2) {
if($s == 1) {
if($k_hp[0] > $k_hp[1]) { $X13 = HALLO; } else { $X23 = HALLO; }
}
if($k_hp[1] < $k_aufgabe[1] OR $X13 == "HALLO") {
$clan1_win = 1;
$clan2_win = 0;
$k_exp[1] = 0;
$k_geld[1] = 2000;
$k_exp[0] = 0;
$k_geld[0] = 5000;
$sieger = $chara_1[id];
$verlierer = $chara_2[id];
}
if($k_hp[0] < $k_aufgabe[0] OR $X23 == "HALLO") {
$sieger = $chara_2[id];
$verlierer = $chara_1[id];
$clan1_win= 0;
$clan2_win = 1;
$k_exp[1] = 0;
$k_geld[1] = 5000;
$k_exp[0] = 0;
$k_geld[0] = 2000;
}
if($k_exp[0]) { $s=2; } else { $s++; }
}
$iws = $iw-1;
mysql_query("UPDATE clan_kampf SET clan1_id='$clan1[$iws]', clan2_id='$clan2[$iws]', exp1='$k_exp[0]', win='$sieger', lose='$verlierer', exp2='$k_exp[1]', geld1='$k_geld[0]', geld2='$k_geld[1]', clan1_win='$clan1_win', clan2_win='$clan2_win' WHERE id='$db_query[id]'");
if($yt == 3) {
$yt=0;
$win_rows1 = mysql_num_rows(mysql_query("SELECT id FROM clan_kampf WHERE clan1_win='1' AND clan1_id='$clan1[$iws]' LIMIT 2"));
$win_rows2 = mysql_num_rows(mysql_query("SELECT id FROM clan_kampf WHERE clan2_win='1' AND clan2_id='$clan2[$iws]' LIMIT 2"));
if($win_rows1 > $win_rows2) {
////CLAN 1 WINS
$exp_rows1 = mysql_fetch_array(mysql_query("SELECT siege, level, min_exp, max_exp FROM clan WHERE id='$clan1[$iws]' LIMIT 1"));
$exp_rows2 = mysql_fetch_array(mysql_query("SELECT siege, level, min_exp, max_exp FROM clan WHERE id='$clan2[$iws]' LIMIT 1"));
$EXP_new1 = ($exp_rows2[siege]+1) * 10;
$EXP_new2 = ($exp_rows1[siege]+1) * 5;
include "clan_exp.php";
include(ROOT_PATH.'/include/kampf/kampf_rechnung.php');
mysql_query("UPDATE clan SET geld=geld+'5000', siege=siege+1, min_exp=min_exp+'$EXP1_new1' WHERE id='$clan1[$iws]'");
mysql_query("UPDATE clan SET geld=geld+'2000', niederlagen=niederlagen+1, min_exp=min_exp+'$EXP1_new2' WHERE id='$clan2[$iws]'");
} else {
$exp_rows1 = mysql_fetch_array(mysql_query("SELECT siege, level, min_exp, max_exp FROM clan WHERE id='$clan1[$iws]' LIMIT 1"));
$exp_rows2 = mysql_fetch_array(mysql_query("SELECT siege, level, min_exp, max_exp FROM clan WHERE id='$clan2[$iws]' LIMIT 1"));
$EXP_new2 = ($exp_rows1[siege]+1) * 10;
$EXP_new1 = ($exp_rows2[siege]+1) * 5;
include "clan_exp.php";
////CLAN 2 WINS
mysql_query("UPDATE clan SET geld=geld+'2000', niederlagen=niederlagen+1, min_exp=min_exp+'$EXP1_new1' WHERE id='$clan1[$iws]'");
mysql_query("UPDATE clan SET geld=geld+'5000', siege=siege+1, min_exp=min_exp+'$EXP1_new2' WHERE id='$clan2[$iws]'");
}
}

@ -1,191 +0,0 @@
<?php
/*
*
* @copyright (c) 2010 animegame.eu
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
$uzze=0;
while($uzze < 10) {
$aktion_AV1[$uzze] = "";
$aktion_AV2[$uzze] = "";
$uzze++;
}
$ssj_tech_1="";
$ssj_tech_2="";
$play1_ausweich="";
$play2_ausweich="";
$k_exp[0] = "";
$X23 = "";
$X13 = "";
$schaden_1="";
$schaden_2="";
################## Kaempfer 1
$k_hp1 = explode(",", $chara_1[hp]);
$k_mp1 = explode(",", $chara_1[mp]);
$k_hp1[0] = $k_hp1[1];
$k_mp1[0] = $k_mp1[1];
$k_starke[0] = $chara_1[starke] + $k_rustung[ru_mal];
$k_speed[0] = $chara_1[speed];
$k_ver[0] = $chara_1[verteidigung] + $k_rustung[ru_mal];
$k_ausdauer[0] = $chara_1[ausdauer];
$k_glueck[0] = $chara_1[glueck];
$k_attacke1 = explode(",", $chara_1[attacken]);
$k_hp[0] = round($k_hp1[0]);
$k_mp[0] = round($k_mp1[0]);
$k_aufgabe_a_1 = $k_hp1[1] / 100;
$k_aufgabe[0] = $k_aufgabe_a_1 * $chara_1[aufgeben];
######################################Kaempfer2
$k_hp2 = explode(",", $chara_2[hp]);
$k_mp2 = explode(",", $chara_2[mp]);
$k_hp2[0] = $k_hp2[1];
$k_mp2[0] = $k_mp2[1];
$k_starke[1] = $chara_2[starke] + $k_rustung[ru_mal];
$k_speed[1] = $chara_2[speed];
$k_ver[1] = $chara_2[verteidigung] + $k_rustung[ru_mal];
$k_ausdauer[1] = $chara_2[ausdauer];
$k_glueck[1] = $chara_2[glueck];
$k_attacke2 = explode(",", $chara_2[attacken]);
$k_hp[1] = round($k_hp2[0]);
$k_mp[1] = round($k_mp2[0]);
$k_aufgabe_a_2 = $k_hp2[1] / 100;
$k_aufgabe[1] = $k_aufgabe_a_2 * $chara_2[aufgeben];
$x=0;
mysql_query("INSERT liga_kampf SET hp1='$k_hp[0]', hp2='$k_hp[1]', mp1='$k_mp[0]', mp2='$k_mp[1]', schaden1='$schaden_1', schaden2='$schaden_2', attacke1='$technick1[name]', attacke2='$technick2[name]', char1='$chara_1[id]', char2='$chara_2[id]', starke1='$k_starke[0]', starke2='$k_starke[1]', ver1='$k_ver[0]', ver2='$k_ver[1]', speed1='$k_speed[0]', speed2='$k_speed[1]', ausdauer1='$k_ausdauer[0]', ausdauer2='$k_ausdauer[1]'");
while($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
$technick1 = mysql_fetch_array(mysql_query("SELECT at_id, aktiv FROM lernen WHERE id='$k_attacke1[$x]' LIMIT 10"));
$prozent_technik1 = (20*$technick1[aktiv])-20;
$technick1 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$technick1[at_id]' LIMIT 10"));
$technick2 = mysql_fetch_array(mysql_query("SELECT at_id, aktiv FROM lernen WHERE id='$k_attacke2[$x]' LIMIT 10"));
$prozent_technik2 = (20*$technick2[aktiv])-20;
$technick2 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$technick2[at_id]' LIMIT 10"));
///////////////////Hier laedt er den RELOAD der technik wenn die zusammen setzung nicht stimmen sollte
include "kampf/andere_technik.php"; /////////////////// Wenn man ne andere technik sich aussuchen will...
$technick1[speed]=$technick1[speed]+(($technick1[speed]/100)*$prozent_technik1);
$technick2[speed]=$technick2[speed]+(($technick2[speed]/100)*$prozent_technik2);
$technick1[verteidigung]=$technick1[verteidigung]+(($technick1[verteidigung]/100)*$prozent_technik1);
$technick2[verteidigung]=$technick2[verteidigung]+(($technick2[verteidigung]/100)*$prozent_technik2);
$technick1[starke]=$technick1[starke]+(($technick1[starke]/100)*$prozent_technik1);
$technick2[starke]=$technick2[starke]+(($technick2[starke]/100)*$prozent_technik2);
$speeds_char1 = ($k_speed[0] + $technick1[speed]);
$speeds_char2 = ($k_speed[1] + $technick2[speed]);
$speeds_char1_4 = ($k_speed[0] + $technick1[speed]) / 1.5;
$speeds_char2_4 = ($k_speed[1] + $technick2[speed]) / 1.5;
if($speeds_char1_4 < 1) { $speeds_char1_4 = 1; }
if($speeds_char2_4 < 1) { $speeds_char2_4 = 1; }
$speed_char1 = $speeds_char1;
$speed_char2 = $speeds_char2;
$aussetzten_runde = ""; ////// MUSS SO BLEIBEN WICHTIG
##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken
include "kampf/majin.php";
if(!$aussetzten_runde) {
include "kampf/atk_wert.php";
include "kampf/tausch2.php"; //////////////////Muss ganz oben sein wegen technik Tauschen
include "kampf/frucht.php";
include "kampf/runde.php";
include "kampf/mp.php";
include "kampf/hp.php";
include "kampf/hp2.php";
include "kampf/SSJ.php";
include "kampf/kaioken.php";
include "kampf/kaioken2.php";
include "kampf/copy.php";
include "kampf/lose.php";
include "kampf/lose2.php";
include "kampf/ausdauer.php";
include "kampf/mpv.php";
include "kampf/tausch.php";
include "kampf/hpmp.php";
}
include "kampf/atk_wert.php";
#####################################KAMPF SYSTEM
include "kampf/kampf_rechnung.php";
$db_query = mysql_fetch_array(mysql_query("SELECT * FROM liga_kampf WHERE (char1='$chara_1[id]' OR char1='$chara_2[id]') AND dauer='0' order by id DESC LIMIT 1"));
mysql_query("UPDATE liga_kampf SET hp1='$db_query[hp1],$k_hp7[0]', hp2='$db_query[hp2],$k_hp7[1]', mp1='$db_query[mp1],$k_mp7[0]', mp2='$db_query[mp2],$k_mp7[1]', schaden1='$db_query[schaden1],$schaden_1', schaden2='$db_query[schaden2],$schaden_2', attacke1='$db_query[attacke1],$technick1[name]', attacke2='$db_query[attacke2],$technick2[name]', starke1='$db_query[starke1],$k_starke[0]', starke2='$db_query[starke2],$k_starke[1]', ver1='$db_query[ver1],$k_ver[0]', ver2='$db_query[ver2],$k_ver[1]', speed1='$db_query[speed1],$k_speed[0]', speed2='$db_query[speed2],$k_speed[1]', ausdauer1='$db_query[ausdauer1],$k_ausdauer[0]', ausdauer2='$db_query[ausdauer2],$k_ausdauer[1]' WHERE id='$db_query[id]'");
$x++;
}
###########################EXP VERTEILUNG
$s=0;
while($s < 2) {
if($s == 1) {
if($k_hp[0] > $k_hp[1]) { $X13 = HALLO; } else { $X23 = HALLO; }
}
if($k_hp[1] < $k_aufgabe[1] OR $X13 == "HALLO") {
$k_exp[1] = 0;
$k_geld[1] = 0;
$k_exp[0] = 0;
$k_geld[0] = 0;
$sieger = $chara_1[id];
$verlierer = $chara_2[id];
}
if($k_hp[0] < $k_aufgabe[0] OR $X23 == "HALLO") {
$sieger = $chara_2[id];
$verlierer = $chara_1[id];
$k_exp[1] = 0;
$k_geld[1] = 0;
$k_exp[0] = 0;
$k_geld[0] = 0;
}
if($k_exp[0]) { $s=2; } else { $s++; }
}
$punkt_sieger = (11-$x) + 500;
$punkt_verlierer = 0;
$dauer_Z = time();
mysql_query("UPDATE chars SET liga_siege=liga_siege+1, liga_punkte=liga_punkte+'$punkt_sieger' WHERE id='$sieger' LIMIT 1");
mysql_query("UPDATE chars SET liga_niederlagen=liga_niederlagen+1, liga_punkte=liga_punkte+'$punkt_verlierer' WHERE id='$verlierer' LIMIT 1");
mysql_query("UPDATE liga_kampf SET exp1='$k_exp[0]', win='$sieger', lose='$verlierer', exp2='$k_exp[1]', geld1='$k_geld[0]', geld2='$k_geld[1]', dauer='$dauer_Z' WHERE id='$db_query[id]'");

@ -1,192 +0,0 @@
<?php
/*
*
* @copyright (c) 2010 animegame.eu
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
$uzze=0;
while($uzze < 10) {
$aktion_AV1[$uzze] = "";
$aktion_AV2[$uzze] = "";
$uzze++;
}
$ssj_tech_1="";
$ssj_tech_2="";
$play1_ausweich="";
$play2_ausweich="";
$k_exp[0] = "";
$X23 = "";
$X13 = "";
$schaden_1="";
$schaden_2="";
################## Kaempfer 1
$k_hp1 = explode(",", $chara_1[hp]);
$k_mp1 = explode(",", $chara_1[mp]);
$k_hp1[0] = $k_hp1[1];
$k_mp1[0] = $k_mp1[1];
$k_starke[0] = $chara_1[starke] + $k_rustung[ru_mal];
$k_speed[0] = $chara_1[speed];
$k_ver[0] = $chara_1[verteidigung] + $k_rustung[ru_mal];
$k_ausdauer[0] = $chara_1[ausdauer];
$k_glueck[0] = $chara_1[glueck];
$k_attacke1 = explode(",", $chara_1[attacken]);
$k_hp[0] = round($k_hp1[0]);
$k_mp[0] = round($k_mp1[0]);
$k_aufgabe_a_1 = $k_hp1[1] / 100;
$k_aufgabe[0] = $k_aufgabe_a_1 * $chara_1[aufgeben];
######################################Kaempfer2
$k_hp2 = explode(",", $chara_2[hp]);
$k_mp2 = explode(",", $chara_2[mp]);
$k_hp2[0] = $k_hp2[1];
$k_mp2[0] = $k_mp2[1];
$k_starke[1] = $chara_2[starke] + $k_rustung[ru_mal];
$k_speed[1] = $chara_2[speed];
$k_ver[1] = $chara_2[verteidigung] + $k_rustung[ru_mal];
$k_ausdauer[1] = $chara_2[ausdauer];
$k_glueck[1] = $chara_2[glueck];
$k_attacke2 = explode(",", $chara_2[attacken]);
$k_hp[1] = round($k_hp2[0]);
$k_mp[1] = round($k_mp2[0]);
$k_aufgabe_a_2 = $k_hp2[1] / 100;
$k_aufgabe[1] = $k_aufgabe_a_2 * $chara_2[aufgeben];
$x=0;
mysql_query("INSERT turnier_kampf SET hp1='$k_hp[0]', hp2='$k_hp[1]', mp1='$k_mp[0]', mp2='$k_mp[1]', schaden1='$schaden_1', schaden2='$schaden_2', attacke1='$technick1[name]', attacke2='$technick2[name]', char1='$chara_1[id]', char2='$chara_2[id]', starke1='$k_starke[0]', starke2='$k_starke[1]', ver1='$k_ver[0]', ver2='$k_ver[1]', speed1='$k_speed[0]', speed2='$k_speed[1]', ausdauer1='$k_ausdauer[0]', ausdauer2='$k_ausdauer[1]'");
while($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
$technick1 = mysql_fetch_array(mysql_query("SELECT at_id, aktiv FROM lernen WHERE id='$k_attacke1[$x]' LIMIT 10"));
$prozent_technik1 = (20*$technick1[aktiv])-20;
$technick1 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$technick1[at_id]' LIMIT 10"));
$technick2 = mysql_fetch_array(mysql_query("SELECT at_id, aktiv FROM lernen WHERE id='$k_attacke2[$x]' LIMIT 10"));
$prozent_technik2 = (20*$technick2[aktiv])-20;
$technick2 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$technick2[at_id]' LIMIT 10"));
///////////////////Hier laedt er den RELOAD der technik wenn die zusammen setzung nicht stimmen sollte
include "kampf/andere_technik.php"; /////////////////// Wenn man ne andere technik sich aussuchen will...
$technick1[speed]=$technick1[speed]+(($technick1[speed]/100)*$prozent_technik1);
$technick2[speed]=$technick2[speed]+(($technick2[speed]/100)*$prozent_technik2);
$technick1[verteidigung]=$technick1[verteidigung]+(($technick1[verteidigung]/100)*$prozent_technik1);
$technick2[verteidigung]=$technick2[verteidigung]+(($technick2[verteidigung]/100)*$prozent_technik2);
$technick1[starke]=$technick1[starke]+(($technick1[starke]/100)*$prozent_technik1);
$technick2[starke]=$technick2[starke]+(($technick2[starke]/100)*$prozent_technik2);
$speeds_char1 = ($k_speed[0] + $technick1[speed]);
$speeds_char2 = ($k_speed[1] + $technick2[speed]);
$speeds_char1_4 = ($k_speed[0] + $technick1[speed]) / 1.5;
$speeds_char2_4 = ($k_speed[1] + $technick2[speed]) / 1.5;
if($speeds_char1_4 < 1) { $speeds_char1_4 = 1; }
if($speeds_char2_4 < 1) { $speeds_char2_4 = 1; }
$speed_char1 = $speeds_char1;
$speed_char2 = $speeds_char2;
$aussetzten_runde = ""; ////// MUSS SO BLEIBEN WICHTIG
##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken
include "kampf/majin.php";
if(!$aussetzten_runde) {
include "kampf/atk_wert.php";
include "kampf/tausch2.php"; //////////////////Muss ganz oben sein wegen technik Tauschen
include "kampf/frucht.php";
include "kampf/runde.php";
include "kampf/mp.php";
include "kampf/hp.php";
include "kampf/hp2.php";
include "kampf/SSJ.php";
include "kampf/kaioken.php";
include "kampf/kaioken2.php";
include "kampf/copy.php";
include "kampf/lose.php";
include "kampf/lose2.php";
include "kampf/ausdauer.php";
include "kampf/mpv.php";
include "kampf/tausch.php";
include "kampf/hpmp.php";
}
include "kampf/atk_wert.php";
#####################################KAMPF SYSTEM
include "kampf/kampf_rechnung.php";
$db_query = mysql_fetch_array(mysql_query("SELECT * FROM turnier_kampf WHERE (char1='$chara_1[id]' OR char1='$chara_2[id]') AND dauer='0' order by id DESC LIMIT 1"));
mysql_query("UPDATE turnier_kampf SET hp1='$db_query[hp1],$k_hp7[0]', hp2='$db_query[hp2],$k_hp7[1]', mp1='$db_query[mp1],$k_mp7[0]', mp2='$db_query[mp2],$k_mp7[1]', schaden1='$db_query[schaden1],$schaden_1', schaden2='$db_query[schaden2],$schaden_2', attacke1='$db_query[attacke1],$technick1[name]', attacke2='$db_query[attacke2],$technick2[name]', starke1='$db_query[starke1],$k_starke[0]', starke2='$db_query[starke2],$k_starke[1]', ver1='$db_query[ver1],$k_ver[0]', ver2='$db_query[ver2],$k_ver[1]', speed1='$db_query[speed1],$k_speed[0]', speed2='$db_query[speed2],$k_speed[1]', ausdauer1='$db_query[ausdauer1],$k_ausdauer[0]', ausdauer2='$db_query[ausdauer2],$k_ausdauer[1]' WHERE id='$db_query[id]'");
$x++;
}
###########################EXP VERTEILUNG
$s=0;
while($s < 2) {
if($s == 1) {
if($k_hp[0] > $k_hp[1]) { $X13 = HALLO; } else { $X23 = HALLO; }
}
if($k_hp[1] < $k_aufgabe[1] OR $X13 == "HALLO") {
$k_exp[1] = (($chara_1[starke] + $chara_1[verteidigung] + $chara_1[speed] + $chara_1[ausdauer] + $chara_1[glueck] + $chara_2[starke] + $chara_2[verteidigung] + $chara_2[speed] + $chara_2[ausdauer] + $chara_2[glueck] * ($x / 4)) / 2) * 5;
$k_geld[1] = (($chara_1[starke] + $chara_1[verteidigung] + $chara_1[speed] + $chara_1[ausdauer] + $chara_1[glueck] + $chara_2[starke] + $chara_2[verteidigung] + $chara_2[speed] + $chara_2[ausdauer] + $chara_2[glueck] * ($x / 6)) / 2) * 2;
$k_exp[0] = ($chara_1[starke] + $chara_1[verteidigung] + $chara_1[speed] + $chara_1[ausdauer] + $chara_1[glueck] + $chara_2[starke] + $chara_2[verteidigung] + $chara_2[speed] + $chara_2[ausdauer] + $chara_2[glueck] * ($x / 4)) * 5;
$k_geld[0] = ($chara_1[starke] + $chara_1[verteidigung] + $chara_1[speed] + $chara_1[ausdauer] + $chara_1[glueck] + $chara_2[starke] + $chara_2[verteidigung] + $chara_2[speed] + $chara_2[ausdauer] + $chara_2[glueck] * ($x / 6)) * 2;
$sieger = $chara_1[id];
$verlierer = $chara_2[id];
}
if($k_hp[0] < $k_aufgabe[0] OR $X23 == "HALLO") {
$sieger = $chara_2[id];
$verlierer = $chara_1[id];
$k_exp[1] = ($chara_1[starke] + $chara_1[verteidigung] + $chara_1[speed] + $chara_1[ausdauer] + $chara_1[glueck] + $chara_2[starke] + $chara_2[verteidigung] + $chara_2[speed] + $chara_2[ausdauer] + $chara_2[glueck] * ($x / 4)) * 5;
$k_geld[1] = ($chara_1[starke] + $chara_1[verteidigung] + $chara_1[speed] + $chara_1[ausdauer] + $chara_1[glueck] + $chara_2[starke] + $chara_2[verteidigung] + $chara_2[speed] + $chara_2[ausdauer] + $chara_2[glueck] * ($x / 6)) * 2;
$k_exp[0] = (($chara_1[starke] + $chara_1[verteidigung] + $chara_1[speed] + $chara_1[ausdauer] + $chara_1[glueck] + $chara_2[starke] + $chara_2[verteidigung] + $chara_2[speed] + $chara_2[ausdauer] + $chara_2[glueck] * ($x / 4)) / 2) * 5;
$k_geld[0] = (($chara_1[starke] + $chara_1[verteidigung] + $chara_1[speed] + $chara_1[ausdauer] + $chara_1[glueck] + $chara_2[starke] + $chara_2[verteidigung] + $chara_2[speed] + $chara_2[ausdauer] + $chara_2[glueck] * ($x / 6)) / 2) * 2;
}
if($k_exp[0]) { $s=2; } else { $s++; }
}
$dauer_Z = time();
mysql_query("UPDATE turnier_kampf SET art='$art_1', round='$round', exp1='$k_exp[0]', win='$sieger', lose='$verlierer', exp2='$k_exp[1]', geld1='$k_geld[0]', geld2='$k_geld[1]', dauer='$dauer_Z' WHERE id='$db_query[id]'");

@ -1,206 +0,0 @@
<?php
/*
*
* @copyright (c) 2010 animegame.eu
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
$uzze=0;
while($uzze < 10) {
$aktion_AV1[$uzze] = "";
$aktion_AV2[$uzze] = "";
$uzze++;
}
$ssj_tech_1="";
$ssj_tech_2="";
$play1_ausweich="";
$play2_ausweich="";
$k_exp[0] = "";
$X23 = "";
$X13 = "";
$schaden_1="";
$schaden_2="";
################## Kaempfer 1
$k_hp1 = explode(",", $chara_1[hp]);
$k_mp1 = explode(",", $chara_1[mp]);
$k_hp1[0] = $k_hp1[1];
$k_mp1[0] = $k_mp1[1];
$k_starke[0] = $chara_1[starke] + $k_rustung[ru_mal];
$k_speed[0] = $chara_1[speed];
$k_ver[0] = $chara_1[verteidigung] + $k_rustung[ru_mal];
$k_ausdauer[0] = $chara_1[ausdauer];
$k_glueck[0] = $chara_1[glueck];
$k_attacke1 = explode(",", $chara_1[attacken]);
$k_hp[0] = round($k_hp1[0]);
$k_mp[0] = round($k_mp1[0]);
$k_aufgabe_a_1 = $k_hp1[1] / 100;
$k_aufgabe[0] = $k_aufgabe_a_1 * $chara_1[aufgeben];
######################################Kaempfer2
$k_hp2 = explode(",", $chara_2[hp]);
$k_mp2 = explode(",", $chara_2[mp]);
$k_hp2[0] = $k_hp2[1];
$k_mp2[0] = $k_mp2[1];
$k_starke[1] = $chara_2[starke] + $k_rustung[ru_mal];
$k_speed[1] = $chara_2[speed];
$k_ver[1] = $chara_2[verteidigung] + $k_rustung[ru_mal];
$k_ausdauer[1] = $chara_2[ausdauer];
$k_glueck[1] = $chara_2[glueck];
$k_attacke2 = explode(",", $chara_2[attacken]);
$k_hp[1] = round($k_hp2[0]);
$k_mp[1] = round($k_mp2[0]);
$k_aufgabe_a_2 = $k_hp2[1] / 100;
$k_aufgabe[1] = $k_aufgabe_a_2 * $chara_2[aufgeben];
$x=0;
mysql_query("INSERT wanted_kampf SET hp1='$k_hp[0]', hp2='$k_hp[1]', mp1='$k_mp[0]', mp2='$k_mp[1]', schaden1='$schaden_1', schaden2='$schaden_2', attacke1='$technick1[name]', attacke2='$technick2[name]', char1='$chara_1[id]', char2='$chara_2[id]', starke1='$k_starke[0]', starke2='$k_starke[1]', ver1='$k_ver[0]', ver2='$k_ver[1]', speed1='$k_speed[0]', speed2='$k_speed[1]', ausdauer1='$k_ausdauer[0]', ausdauer2='$k_ausdauer[1]'");
while($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
$technick1 = mysql_fetch_array(mysql_query("SELECT at_id, aktiv FROM lernen WHERE id='$k_attacke1[$x]' LIMIT 10"));
$prozent_technik1 = (20*$technick1[aktiv])-20;
$technick1 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$technick1[at_id]' LIMIT 10"));
$technick2 = mysql_fetch_array(mysql_query("SELECT at_id, aktiv FROM lernen WHERE id='$k_attacke2[$x]' LIMIT 10"));
$prozent_technik2 = (20*$technick2[aktiv])-20;
$technick2 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$technick2[at_id]' LIMIT 10"));
///////////////////Hier laedt er den RELOAD der technik wenn die zusammen setzung nicht stimmen sollte
include "kampf/andere_technik.php"; /////////////////// Wenn man ne andere technik sich aussuchen will...
$technick1[speed]=$technick1[speed]+(($technick1[speed]/100)*$prozent_technik1);
$technick2[speed]=$technick2[speed]+(($technick2[speed]/100)*$prozent_technik2);
$technick1[verteidigung]=$technick1[verteidigung]+(($technick1[verteidigung]/100)*$prozent_technik1);
$technick2[verteidigung]=$technick2[verteidigung]+(($technick2[verteidigung]/100)*$prozent_technik2);
$technick1[starke]=$technick1[starke]+(($technick1[starke]/100)*$prozent_technik1);
$technick2[starke]=$technick2[starke]+(($technick2[starke]/100)*$prozent_technik2);
$speeds_char1 = ($k_speed[0] + $technick1[speed]);
$speeds_char2 = ($k_speed[1] + $technick2[speed]);
$speeds_char1_4 = ($k_speed[0] + $technick1[speed]) / 1.5;
$speeds_char2_4 = ($k_speed[1] + $technick2[speed]) / 1.5;
if($speeds_char1_4 < 1) { $speeds_char1_4 = 1; }
if($speeds_char2_4 < 1) { $speeds_char2_4 = 1; }
$speed_char1 = $speeds_char1;
$speed_char2 = $speeds_char2;
$aussetzten_runde = ""; ////// MUSS SO BLEIBEN WICHTIG
##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken
include "kampf/majin.php";
if(!$aussetzten_runde) {
include "kampf/atk_wert.php";
include "kampf/tausch2.php"; //////////////////Muss ganz oben sein wegen technik Tauschen
include "kampf/frucht.php";
include "kampf/runde.php";
include "kampf/mp.php";
include "kampf/hp.php";
include "kampf/hp2.php";
include "kampf/SSJ.php";
include "kampf/kaioken.php";
include "kampf/kaioken2.php";
include "kampf/copy.php";
include "kampf/lose.php";
include "kampf/lose2.php";
include "kampf/ausdauer.php";
include "kampf/mpv.php";
include "kampf/tausch.php";
include "kampf/hpmp.php";
}
include "kampf/atk_wert.php";
#####################################KAMPF SYSTEM
include "kampf/kampf_rechnung.php";
$db_query = mysql_fetch_array(mysql_query("SELECT * FROM wanted_kampf WHERE (char1='$chara_1[id]' OR char1='$chara_2[id]') AND dauer='0' order by id DESC LIMIT 1"));
mysql_query("UPDATE wanted_kampf SET hp1='$db_query[hp1],$k_hp7[0]', hp2='$db_query[hp2],$k_hp7[1]', mp1='$db_query[mp1],$k_mp7[0]', mp2='$db_query[mp2],$k_mp7[1]', schaden1='$db_query[schaden1],$schaden_1', schaden2='$db_query[schaden2],$schaden_2', attacke1='$db_query[attacke1],$technick1[name]', attacke2='$db_query[attacke2],$technick2[name]', starke1='$db_query[starke1],$k_starke[0]', starke2='$db_query[starke2],$k_starke[1]', ver1='$db_query[ver1],$k_ver[0]', ver2='$db_query[ver2],$k_ver[1]', speed1='$db_query[speed1],$k_speed[0]', speed2='$db_query[speed2],$k_speed[1]', ausdauer1='$db_query[ausdauer1],$k_ausdauer[0]', ausdauer2='$db_query[ausdauer2],$k_ausdauer[1]' WHERE id='$db_query[id]'");
$x++;
}
###########################EXP VERTEILUNG
$s=0;
while($s < 2) {
if($s == 1) {
if($k_hp[0] > $k_hp[1]) { $X13 = HALLO; } else { $X23 = HALLO; }
}
if($k_hp[1] < $k_aufgabe[1] OR $X13 == "HALLO") {
$k_exp[1] = 0;
$k_geld[1] = 0;
$k_exp[0] = 0;
$k_geld[0] = 0;
$new_dead_list1 = "$chara_1[dead_list],$chara_2[name]";
$new_dead_list2 = "";
$new_preis1 = $chara_1[preis] + (($chara_2[preis] / 100) * 10);
$new_preis2 = $chara_2[preis] - (($chara_2[preis] / 100) * 10);
$sieger = $chara_1[id];
$verlierer = $chara_2[id];
}
if($k_hp[0] < $k_aufgabe[0] OR $X23 == "HALLO") {
$new_dead_list2 = "$chara_2[dead_list],$chara_1[name]";
$new_dead_list1 = "";
$new_preis2 = $chara_2[preis] + (($chara_1[preis] / 100) * 10);
$new_preis1 = $chara_1[preis] - (($chara_1[preis] / 100) * 10);
$sieger = $chara_2[id];
$verlierer = $chara_1[id];
$k_exp[1] = 0;
$k_geld[1] = 0;
$k_exp[0] = 0;
$k_geld[0] = 0;
}
if($k_exp[0]) { $s=2; } else { $s++; }
}
$dauer_Z = time();
mysql_query("UPDATE chars SET preis='$new_preis1', dead_list='$new_dead_list1' WHERE id='$chara_1[id]' LIMIT 1");
mysql_query("UPDATE chars SET preis='$new_preis2', dead_list='$new_dead_list2' WHERE id='$chara_2[id]' LIMIT 1");
mysql_query("UPDATE wanted_kampf SET exp1='$k_exp[0]', win='$sieger', lose='$verlierer', exp2='$k_exp[1]', geld1='$k_geld[0]', geld2='$k_geld[1]', dauer='$dauer_Z' WHERE id='$db_query[id]'");

@ -19,42 +19,38 @@ $tmp_hp[1] = 0;
$tmp_hp[2] = false; $tmp_hp[2] = false;
$tmp_hp[3] = false; $tmp_hp[3] = false;
##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken ##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken
include ('/kampf/majin.php'); include ('include/kampf/majin.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include ('kampf/atk_wert.php'); include ('include/kampf/atk_wert.php');
include ('kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen include ('include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen
include ('kampf/gift.php'); include ('include/kampf/gift.php');
include ('kampf/frucht.php'); include ('include/kampf/frucht.php');
include ('kampf/runde.php'); include ('include/kampf/runde.php');
include ('kampf/mp.php'); include ('include/kampf/mp.php');
include ('kampf/hp.php'); include ('include/kampf/hp.php');
include ('kampf/hp2.php'); include ('include/kampf/hp2.php');
include ('kampf/SSJ.php'); include ('include/kampf/SSJ.php');
include ('kampf/kaioken.php'); include ('include/kampf/kaioken.php');
include ('kampf/kaioken2.php'); include ('include/kampf/kaioken2.php');
include ('kampf/copy.php'); include ('include/kampf/copy.php');
include ('kampf/lose.php'); include ('include/kampf/lose.php');
include ('kampf/lose2.php'); include ('include/kampf/lose2.php');
include ('kampf/ausdauer.php'); include ('include/kampf/ausdauer.php');
include ('kampf/mpv.php'); include ('include/kampf/mpv.php');
include ('kampf/hpmp.php'); include ('include/kampf/hpmp.php');
include ('kampf/generic_technik.php'); include ('include/kampf/generic_technik.php');
} }
include ('kampf/generic_rechnung.php'); include ('include/kampf/generic_rechnung.php');
include ('kampf/atk_wert.php'); include ('include/kampf/atk_wert.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
//Als letztes um alle HP-Attacken zu kontern (in $tmp_hp gespeichert) //Als letztes um alle HP-Attacken zu kontern (in $tmp_hp gespeichert)
include ('kampf/konter_heal.php'); include ('include/kampf/konter_heal.php');
//Nach Konterheal, damit überstehende HP bleibt //Nach Konterheal, damit überstehende HP bleibt
include ('kampf/tausch.php'); include ('include/kampf/tausch.php');
include ('kampf/reborn.php'); include ('include/kampf/reborn.php');
} }
include ('kampf/heilung.php'); include ('include/kampf/heilung.php');

@ -95,7 +95,7 @@ $technick2 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$te
///////////////////Hier laedt er den RELOAD der technik wenn die zusammen setzung nicht stimmen sollte ///////////////////Hier laedt er den RELOAD der technik wenn die zusammen setzung nicht stimmen sollte
include "kampf/andere_technik.php"; /////////////////// Wenn man ne andere technik sich aussuchen will... include "include/kampf/andere_technik.php"; /////////////////// Wenn man ne andere technik sich aussuchen will...
$technick1[speed]=$technick1[speed]+(($technick1[speed]/100)*$prozent_technik1); $technick1[speed]=$technick1[speed]+(($technick1[speed]/100)*$prozent_technik1);
@ -126,7 +126,7 @@ $speed_char2 = mt_rand($speeds_char2_4,$speeds_char2);
include "kampf_include.php"; include "kampf_include.php";
#####################################KAMPF SYSTEM #####################################KAMPF SYSTEM
include "kampf/kampf_rechnung.php"; include "include/kampf/kampf_rechnung.php";

@ -103,7 +103,7 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
$technick2 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$technick2[at_id]' LIMIT 10")); $technick2 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$technick2[at_id]' LIMIT 10"));
///////////////////Hier laedt er den RELOAD der technik wenn die zusammen setzung nicht stimmen sollte ///////////////////Hier laedt er den RELOAD der technik wenn die zusammen setzung nicht stimmen sollte
include "kampf/andere_technik.php"; /////////////////// Wenn man ne andere technik sich aussuchen will... include "include/kampf/andere_technik.php"; /////////////////// Wenn man ne andere technik sich aussuchen will...
$technick1[speed] = $technick1[speed] + (($technick1[speed] / 100) * $prozent_technik1); $technick1[speed] = $technick1[speed] + (($technick1[speed] / 100) * $prozent_technik1);
$technick2[speed] = $technick2[speed] + (($technick2[speed] / 100) * $prozent_technik2); $technick2[speed] = $technick2[speed] + (($technick2[speed] / 100) * $prozent_technik2);
@ -133,7 +133,7 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
include "kampf_include.php"; ////Rechnung include "kampf_include.php"; ////Rechnung
#####################################KAMPF SYSTEM #####################################KAMPF SYSTEM
include "kampf/kampf_rechnung.php"; include "include/kampf/kampf_rechnung.php";
$sql = "SELECT * FROM turnier_kampf WHERE (char1='$chara_1[id]' OR char1='$chara_2[id]') AND dauer='0' order by id DESC LIMIT 1"; $sql = "SELECT * FROM turnier_kampf WHERE (char1='$chara_1[id]' OR char1='$chara_2[id]') AND dauer='0' order by id DESC LIMIT 1";

@ -95,7 +95,7 @@ $technick2 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$te
///////////////////Hier laedt er den RELOAD der technik wenn die zusammen setzung nicht stimmen sollte ///////////////////Hier laedt er den RELOAD der technik wenn die zusammen setzung nicht stimmen sollte
include "kampf/andere_technik.php"; /////////////////// Wenn man ne andere technik sich aussuchen will... include "include/kampf/andere_technik.php"; /////////////////// Wenn man ne andere technik sich aussuchen will...
$technick1[speed]=$technick1[speed]+(($technick1[speed]/100)*$prozent_technik1); $technick1[speed]=$technick1[speed]+(($technick1[speed]/100)*$prozent_technik1);
@ -125,7 +125,7 @@ $speed_char2 = mt_rand($speeds_char2_4,$speeds_char2);
include "kampf_include.php"; ////Rechnung include "kampf_include.php"; ////Rechnung
#####################################KAMPF SYSTEM #####################################KAMPF SYSTEM
include "kampf/kampf_rechnung.php"; include "include/kampf/kampf_rechnung.php";

Loading…
Cancel
Save