|
|
@ -101,7 +101,7 @@ $runden_gif_technik2 = "";
|
|
|
|
if ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
|
|
|
|
if ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
|
|
|
|
$sql = "INSERT 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]', glueck1='$k_glueck[0]', glueck2='$k_glueck[1]'";
|
|
|
|
$sql = "INSERT 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]', glueck1='$k_glueck[0]', glueck2='$k_glueck[1]'";
|
|
|
|
mysql_query($sql);
|
|
|
|
mysql_query($sql);
|
|
|
|
// echo $sql . '<br>';
|
|
|
|
// echo $sql . '<br>';
|
|
|
|
if (mysql_affected_rows() == 0) {
|
|
|
|
if (mysql_affected_rows() == 0) {
|
|
|
|
echo '"' . $sql . '" konnte nicht ausgefürt werden!<br>';
|
|
|
|
echo '"' . $sql . '" konnte nicht ausgefürt werden!<br>';
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -180,9 +180,6 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
|
|
|
|
##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken
|
|
|
|
##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken
|
|
|
|
include (ROOT_PATH . '/include/kampf/majin.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/majin.php');
|
|
|
|
|
|
|
|
|
|
|
|
include (ROOT_PATH . '/include/kampf/generic_technik.php');
|
|
|
|
|
|
|
|
include (ROOT_PATH . '/include/kampf/generic_rechnung.php');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
|
|
|
|
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
|
|
|
|
include (ROOT_PATH . '/include/kampf/atk_wert.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/atk_wert.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen
|
|
|
|
include (ROOT_PATH . '/include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen
|
|
|
@ -201,18 +198,20 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
|
|
|
|
include (ROOT_PATH . '/include/kampf/ausdauer.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/ausdauer.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/mpv.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/mpv.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/hpmp.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/hpmp.php');
|
|
|
|
|
|
|
|
include (ROOT_PATH . '/include/kampf/generic_technik.php');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include (ROOT_PATH . '/include/kampf/generic_rechnung.php');
|
|
|
|
|
|
|
|
include (ROOT_PATH . '/include/kampf/atk_wert.php');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 (ROOT_PATH . '/include/kampf/konter_heal.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/konter_heal.php');
|
|
|
|
//Nach Konterheal, damit überstehende HP bleibt
|
|
|
|
//Nach Konterheal, damit überstehende HP bleibt
|
|
|
|
include (ROOT_PATH . '/include/kampf/tausch.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/tausch.php');
|
|
|
|
//include "kampf/summon.php";
|
|
|
|
include (ROOT_PATH . '/include/kampf/reborn.php');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
include (ROOT_PATH . '/include/kampf/heilung.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/heilung.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/atk_wert.php');
|
|
|
|
|
|
|
|
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
|
|
|
|
|
|
|
|
include (ROOT_PATH . '/include/kampf/schatten.php');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#####################################KAMPF SYSTEM
|
|
|
|
#####################################KAMPF SYSTEM
|
|
|
|
include (ROOT_PATH . '/include/kampf/kampf_rechnung.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/kampf_rechnung.php');
|
|
|
@ -327,9 +326,9 @@ mysql_query('Update arena set einnahmen = einnahmen + '.$k_geld[0].' WHERE besit
|
|
|
|
mysql_query('Update arena set einnahmen = einnahmen + '.$k_geld[1].' WHERE besitzer = '.$chara_2['besitzer']);
|
|
|
|
mysql_query('Update arena set einnahmen = einnahmen + '.$k_geld[1].' WHERE besitzer = '.$chara_2['besitzer']);
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
// Das ist der Teil, der an das Heim-Team geht und versteuert werden muss! 10%
|
|
|
|
// Das ist der Teil, der an das Heim-Team geht und versteuert werden muss! 10%
|
|
|
|
$arena_geld = round($arena_data['geld']*0.1);
|
|
|
|
$arena_geld = round($arena_data['geld']*0.1);
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
$arena_geld = 0;
|
|
|
|
$arena_geld = 0;
|
|
|
|
|
|
|
|
|
|
|
|
$dauer_Z = time() + ($kampf_info[zeit_rec]);
|
|
|
|
$dauer_Z = time() + ($kampf_info[zeit_rec]);
|
|
|
@ -347,7 +346,7 @@ if ($kampf_info['rasse'] != "NPC") {
|
|
|
|
|
|
|
|
|
|
|
|
$sql = "INSERT kampf SET preis='$nw_preis', art='$kampf_info[art]', art2='$kampf_info[rasse]', hp1='$db_query2[hp1]', hp2='$db_query2[hp2]', mp1='$db_query2[mp1]', mp2='$db_query2[mp2]', attacke1='$db_query2[attacke1]', attacke2='$db_query2[attacke2]', schaden1='$db_query2[schaden1]', schaden2='$db_query2[schaden2]', char1='$db_query2[char1]', char2='$db_query2[char2]', starke1='$db_query2[starke1]', starke2='$db_query2[starke2]', ver1='$db_query2[ver1]', ver2='$db_query2[ver2]', speed1='$db_query2[speed1]',speed2='$db_query2[speed2]', ausdauer1='$db_query2[ausdauer1]', ausdauer2='$db_query2[ausdauer2]', glueck1='$db_query2[glueck1]', glueck2='$db_query2[glueck2]', exp1='$db_query2[exp1]', exp2='$db_query2[exp2]', geld1='$db_query2[geld1]', geld2='$db_query2[geld2]', loge='$db_query2[loge]', sitz=$db_query2[sitz], steh=$db_query2[steh], win='$db_query2[win]', lose='$db_query2[lose]', dauer='$dauer_Z', db_satz ='$chara_2[id]', arena_name='$db_query2[arena_name]', arena_exp=$arena_exp_new, arena_geld='$db_query2[arena_geld]'";
|
|
|
|
$sql = "INSERT kampf SET preis='$nw_preis', art='$kampf_info[art]', art2='$kampf_info[rasse]', hp1='$db_query2[hp1]', hp2='$db_query2[hp2]', mp1='$db_query2[mp1]', mp2='$db_query2[mp2]', attacke1='$db_query2[attacke1]', attacke2='$db_query2[attacke2]', schaden1='$db_query2[schaden1]', schaden2='$db_query2[schaden2]', char1='$db_query2[char1]', char2='$db_query2[char2]', starke1='$db_query2[starke1]', starke2='$db_query2[starke2]', ver1='$db_query2[ver1]', ver2='$db_query2[ver2]', speed1='$db_query2[speed1]',speed2='$db_query2[speed2]', ausdauer1='$db_query2[ausdauer1]', ausdauer2='$db_query2[ausdauer2]', glueck1='$db_query2[glueck1]', glueck2='$db_query2[glueck2]', exp1='$db_query2[exp1]', exp2='$db_query2[exp2]', geld1='$db_query2[geld1]', geld2='$db_query2[geld2]', loge='$db_query2[loge]', sitz=$db_query2[sitz], steh=$db_query2[steh], win='$db_query2[win]', lose='$db_query2[lose]', dauer='$dauer_Z', db_satz ='$chara_2[id]', arena_name='$db_query2[arena_name]', arena_exp=$arena_exp_new, arena_geld='$db_query2[arena_geld]'";
|
|
|
|
mysql_query($sql);
|
|
|
|
mysql_query($sql);
|
|
|
|
// echo $sql . '<br>';
|
|
|
|
// echo $sql . '<br>';
|
|
|
|
if (mysql_affected_rows() == 0) {
|
|
|
|
if (mysql_affected_rows() == 0) {
|
|
|
|
echo '"' . $sql . '" konnte nicht ausgefürt werden!<br>';
|
|
|
|
echo '"' . $sql . '" konnte nicht ausgefürt werden!<br>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|