commit 4c0a2a5a6da4350b57a91a848118613a1971ef4f
parent ea429cfb0b5f1119f6572a83cf75eb7e8a5a48dc
Author: Kebigon <git@kebigon.xyz>
Date: Mon, 17 Feb 2020 21:28:26 +0900
RPG Illusion v1.2b third release (2007/01/28)
Diffstat:
4 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/config.php b/config.php
@@ -2,13 +2,13 @@
$dbsettings = Array(
"server" => "localhost", // Nom du serveur MySQL. (Default: localhost)
- "user" => "rpgillusion", // Nom de votre login MySQL.
- "pass" => "mickael", // Nom de votre password MySQL.
- "name" => "rpgillusion-db1", // Nom de votre base MySQL.
+ "user" => "????", // Nom de votre login MySQL.
+ "pass" => "????", // Nom de votre password MySQL.
+ "name" => "????", // Nom de votre base MySQL.
"secretword" => "rpg", // Mot secret utilisé lors de la mise a jour des cookies.
// Pour éviter les problèmes MYSQL ne changez pas le préfixe
- "prefix" => "rpg"); // Prefixe des tables MySQL
+ "prefix" => "rpg"); // Prefixe des tables MySQL
?>
\ No newline at end of file
diff --git a/fight.php b/fight.php
@@ -465,9 +465,9 @@ function drop() {
$slotrow = mysql_fetch_array($slotquery);
$old1 = explode(",",$slotrow["attribute1"]);
- if ($slotrow["attribute2"] != "X") { $old2 = explode(",",$slotrow["attribute2"]); } else { $old2 = array(0=>"maxhp",1=>0); }
+ if ($slotrow["attribute2"] != "Aucun") { $old2 = explode(",",$slotrow["attribute2"]); } else { $old2 = array(0=>"maxhp",1=>0); }
$new1 = explode(",",$droprow["attribute1"]);
- if ($droprow["attribute2"] != "X") { $new2 = explode(",",$droprow["attribute2"]); } else { $new2 = array(0=>"maxhp",1=>0); }
+ if ($droprow["attribute2"] != "Aucun") { $new2 = explode(",",$droprow["attribute2"]); } else { $new2 = array(0=>"maxhp",1=>0); }
$userrow[$old1[0]] -= $old1[1];
$userrow[$old2[0]] -= $old2[1];
@@ -493,7 +493,7 @@ function drop() {
} else {
$new1 = explode(",",$droprow["attribute1"]);
- if ($droprow["attribute2"] != "X") { $new2 = explode(",",$droprow["attribute2"]); } else { $new2 = array(0=>"maxhp",1=>0); }
+ if ($droprow["attribute2"] != "Aucun") { $new2 = explode(",",$droprow["attribute2"]); } else { $new2 = array(0=>"maxhp",1=>0); }
$userrow[$new1[0]] += $new1[1];
$userrow[$new2[0]] += $new2[1];
@@ -528,7 +528,7 @@ function drop() {
$page .= $attributearray[$attribute1[0]];
if ($attribute1[1] > 0) { $page .= " +" . $attribute1[1] . "<br />"; } else { $page .= $attribute1[1] . "<br />"; }
- if ($droprow["attribute2"] != "X") {
+ if ($droprow["attribute2"] != "Aucun") {
$attribute2 = explode(",",$droprow["attribute2"]);
$page .= $attributearray[$attribute2[0]];
if ($attribute2[1] > 0) { $page .= " +" . $attribute2[1] . "<br />"; } else { $page .= $attribute2[1] . "<br />"; }
diff --git a/install.php b/install.php
@@ -1506,7 +1506,7 @@ $page = <<<END
<tr><td style="vertical-align:top; font-family:Verdana; font-size:10pt;">Votre Email:</td><td><input type="text" name="email1" style="font-family:Verdana; font-size:10pt" size="30" maxlength="100" /></td></tr>
<tr><td style="vertical-align:top; font-family:Verdana; font-size:10pt;">Retapez Email:</td><td><input type="text" name="email2" style="font-family:Verdana; font-size:10pt" size="30" maxlength="100" /><br><br></td></tr>
<tr><td style="vertical-align:top; font-family:Verdana; font-size:10pt;">Nom du perso:</td><td><input type="text" name="charname" style="font-family:Verdana; font-size:10pt" size="30" maxlength="30" /></td></tr>
-<table><tr><td style="vertical-align:top; font-family:Verdana; font-size:10pt;">Avatar du perso:</td><td><select name="avatar" ><option value="1">numéro 1</option><option value="2">numéro 2</option><option value="3">numéro 3</option><option value="4">numéro 4</option><option value="5">numéro 5</option><option value="6">numéro 6</option><option value="7">numéro 7</option><option value="8">numéro 8</option><option value="9">numéro 9</option><option value="10">numéro 10</option></select></td><td></td></tr><tr><td colspan="2" style="vertical-align:top; font-family:Verdana; font-size:10pt">Pour voir tous les avatars <A HREF="#" onClick="window.open('avatar.html','_blank','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=400, height=265');return(false)">cliquez ici.</A><br /></td></tr></table>
+<table><tr><td style="vertical-align:top; font-family:Verdana; font-size:10pt;">Avatar du perso:</td><td><select name="avatar" ><option value="1">numéro 1</option><option value="2">numéro 2</option><option value="3">numéro 3</option><option value="4">numéro 4</option><option value="5">numéro 5</option><option value="6">numéro 6</option><option value="7">numéro 7</option><option value="8">numéro 8</option><option value="9">numéro 9</option><option value="10">numéro 10</option></select></td><td></td></tr><tr><td colspan="2" style="vertical-align:top; font-family:Verdana; font-size:10pt">Pour voir tous les avatars <A HREF="#" onClick="window.open('avatar.php','_blank','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=400, height=265');return(false)">cliquez ici.</A><br /></td></tr></table>
<table><tr><td style="vertical-align:top; font-family:Verdana; font-size:10pt;">Classe du perso:</td><td><select name="charclass" style="vertical-align:top; font-family:Verdana; font-size:10pt;"><option value="1">Mage</option><option value="2">Guerrier</option><option value="3">Paladin</option></select></td></tr>
<tr><td style="vertical-align:top; font-family:Verdana; font-size:10pt;">Difficultée:</td><td><select name="difficulty" style="vertical-align:top; font-family:Verdana; font-size:10pt;"><option value="1">Facile</option><option value="2">Moyen</option><option value="3">Dur</option></select></td></tr>
<tr><td colspan="2"><input type="submit" name="submit" style="font-family:Verdana; font-size:10pt" value="Valider" /> <input type="reset" name="reset" style="font-family:Verdana; font-size:10pt" value="Annuler" /></td></tr></table>
diff --git a/map.php b/map.php
@@ -9,7 +9,7 @@ $mpstat = $userrow[currentmp] / $userrow[maxmp] * 100;
$tpstat = $userrow[currenttp] / $userrow[maxtp] * 100;
$latmax = $userrow['latitude'] + 4;
-$longmax = $userrow['longitude'] + 8;
+$longmax = $userrow['longitude'] + 7;
$latmin = $userrow['latitude'] - 5;
$longmin = $userrow['longitude'] - 8;
@@ -72,7 +72,7 @@ $sol = $fetcht['nom'];
// infos Maisons
$query3 = doquery("SELECT name FROM {{table}} WHERE latitude='$latitude' AND longitude='$longitude' LIMIT 1", "maison");
$fetchh = mysql_fetch_array($query3);
-$maison = $fetchh['charname'];
+$maison = $fetchh['name'];
// infos Villes
$query4 = doquery("SELECT name FROM {{table}} WHERE latitude='$latitude' AND longitude='$longitude' LIMIT 1", "towns");
@@ -83,7 +83,7 @@ if($villes !='')
{echo "<td><img src=\"images/carte/ville.jpg\" width=\"29\" height=\"29\" border=\"0\" title=\"".$villes."\"></td>"; }
else {
if($persorow['avatar']!='') {
-echo "<td style=\"background-image:url(images/avatar/carte/".$persorow['avatar'].".gif)\" width=\"29\" height=\"29\" title=\"".$persorow['charname']." (".$longitude." , ".$latitude.") est ici\"></td>";
+echo "<td><img src=\"images/avatar/carte/".$persorow['avatar'].".gif\" width=\"29\" height=\"29\" border=\"0\" title=\"".$persorow['charname']." (".$longitude." , ".$latitude.") est ici\"></td>";
} else {
if($maison !='')
{echo "<td><img src=\"images/carte/maison.jpg\" width=\"29\" height=\"29\" border=\"0\" title=\"Maison de ".$maison."\"></td>"; }
@@ -91,7 +91,7 @@ else {
if($sol !='') {
echo "<td style=\"background-image:url(images/carte/".$sol.".gif)\" width=\"29\" height=\"29\"></td>"; }
else {
-echo "<td></td>\n";
+echo "<td width=\"29\" height=\"29\"></td>\n";
}
}
}