From 989d27374d35d96a17d2bb6bf239f068a78b1da9 Mon Sep 17 00:00:00 2001 From: heuzef Date: Sun, 3 May 2015 23:18:23 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20Tableau=20joueur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 23 +++++++++---- medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml | 28 ++++++++-------- medias/default/index.php | 39 +++++------------------ 3 files changed, 38 insertions(+), 52 deletions(-) diff --git a/index.php b/index.php index 2fdc637..708b5be 100755 --- a/index.php +++ b/index.php @@ -188,9 +188,9 @@ $message[11]=' - - - + Att + Déf + Équipements @@ -217,7 +217,9 @@ $message[11]=' $itemnb++; } foreach($xml->entry as $entry) { - $somme_ecos=$entry->ecos->verte+$entry->ecos->bleue+$entry->ecos->jaune+$entry->ecos->rouge; + $somme_ecos=$entry->ecos->verte+$entry->ecos->bleue+$entry->ecos->jaune+$entry->ecos->rouge+$entry->ecos->blanche+$entry->ecos->noire; + $somme_att=$entry->attack+$entry->stuff->stuff_1->spec+$entry->level; + $somme_def=$entry->defense+$entry->stuff->stuff_2->spec+$entry->level; echo '    ['.$entry->level.'] '.$entry->nom.' @@ -225,9 +227,16 @@ $message[11]=' '.$entry->xp.' '.$entry->money.' '.$somme_ecos.' - '.$entry->ecos->blanche.' - '.$entry->ecos->noire.' - '.substr($entry->notes, 0, 40).'... + '.$somme_att.' + '.$somme_def.' + + '.$entry->stuff->stuff_1->info.' + '.$entry->stuff->stuff_2->info.' + '.$entry->stuff->stuff_3->info.' + '.$entry->stuff->stuff_4->info.' + '.$entry->stuff->stuff_5->info.' + '.$entry->stuff->stuff_6->info.' + '; } } diff --git a/medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml b/medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml index 00dcd96..65e1513 100644 --- a/medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml +++ b/medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml @@ -2,14 +2,14 @@ derpy - 2 - 23 - 50 - 5 + 0 + 10 + 0 + 0 0 0 - 1 + 0 0 0 0 @@ -18,19 +18,19 @@ - Épée de mort - rouge - 2 + Vide + default + 0 - Armure métalique - bleue - 1 + Vide + default + 0 - Pot. soin - verte - Une potion de soin rétablissant 2 PV + Vide + default + Emplacement vide Vide diff --git a/medias/default/index.php b/medias/default/index.php index 7900176..bff9450 100755 --- a/medias/default/index.php +++ b/medias/default/index.php @@ -1,39 +1,15 @@ '; -} function button_modif_hp($nom_parametre, $nom_perso, $texte_bouton) { - echo '
'; -} -function button_modif_xp($nom_parametre, $nom_perso, $texte_bouton) -{ - echo '
'; -} -function button_modif_money($nom_parametre, $nom_perso, $texte_bouton) -{ - echo '
'; -} -function trans($nom_parametre, $nom_perso, $couleur) -{ - echo '
'; -} -function button_modif_attack($nom_parametre, $nom_perso, $texte_bouton) -{ - echo '
'; -} -function button_modif_defense($nom_parametre, $nom_perso, $texte_bouton) -{ - echo '
'; + $currentpath = explode("/", dirname(__FILE__)); + $hash=$currentpath[6]; + echo '
'; } function button_modif_ecos($nom_parametre, $nom_perso, $texte_bouton) { - echo '
'; -} -function button_modif_gift($nom_parametre, $nom_perso, $texte_bouton) -{ - echo '
'; + $currentpath = explode("/", dirname(__FILE__)); + $hash=$currentpath[6]; + echo '
'; } ?> @@ -69,7 +45,7 @@ function button_modif_gift($nom_parametre, $nom_perso, $texte_bouton)
level; ?>    - nom; ?>       + nom; ?>     Attaque + attack+$entry->level+$entry->stuff->stuff_1->spec; ?>    Défense + defense+$entry->level+$entry->stuff->stuff_2->spec; ?> +