Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[v1.3] Bonusdörfer... Wie?
#1
Gleich auch als Tool erhältlich.

Deutsch - German
  1. Öffne http://localhost/phpmyadmin
  2. Wähle die Datenbank "lan" aus
  3. Drücke auf "SQL"
  4. Gebe das ein: ALTER TABLE `villages` ADD `bonus` INT( 11 ) NOT NULL AFTER `id`;
  5. Öffne die Datei "include.inc.php" im htdocs Ordner mit einem PHP Editor auf
  6. Füge folgende Zeilen hinzu:
    PHP Code:
    <?php
    $sql_bonus_villages 
    mysql_query("SELECT * FROM villages WHERE id = '".$_GET["village"]."'");
    $vill mysql_fetch_assoc($sql_bonus_villages);
    if (
    $vill["bonus"] == "1")
    {
      include(
    "include/configs/raw_material_production_bonus.php");
    }
    ?>
  7. Kopiere [DSLAN]\htdocs\include\configs\raw_material_production.php nach [DSLAN]\htdocs\include\configs\raw_material_production_bonus.php
  8. Editiere die Kopierte datei nach deinen wünschen
  9. Gehe wieder nach localhost/phpmyadmin
  10. Wähle wieder die Datenbank "Lan" aus
  11. Gehe in die Tabelle "villages"
  12. Bearbeite die Dörfer die du als Bonusdörfer haben willst
  13. Setze bei "Bonus" die Zahl 1
  14. Fertig
Werde ich als Tool machen Wink

Englisch - English Bad english xD
  1. Open http://localhost/phpmyadmin
  2. Go to database "lan"
  3. Click on "SQL"
  4. Add this text: ALTER TABLE `villages` ADD `bonus` INT( 11 ) NOT NULL AFTER `id`;
  5. Open "include.inc.php" in htdocs with a PHP Editor
  6. Add lines:
    PHP Code:
    <?php
    $sql_bonus_villages 
    mysql_query("SELECT * FROM villages WHERE id = '".$_GET["village"]."'");
    $vill mysql_fetch_assoc($sql_bonus_villages);
    if (
    $vill["bonus"] == "1")
    {
      include(
    "include/configs/raw_material_production_bonus.php");
    }
    ?>
  7. Copy [DSLAN]\htdocs\include\configs\raw_material_production.php to [DSLAN]\htdocs\include\configs\raw_material_production_bonus.php
  8. Edit the copied file.
  9. Go to localhost/phpmyadmin
  10. Go to database "Lan"
  11. Go to table "villages"
  12. Edit normal villages you want to have as bonus villages.
  13. Set the number 1 to "Bonus"
  14. Finished
I will make as tool
✝ RiP 
Weiter geht's  Cool


Messages In This Thread
Bonusdörfer... Wie? - by Milu2K - 08.07.2010, 02:03
RE: Bonusdörfer... Wie? - by paulgerman - 08.07.2010, 11:11
RE: Bonusdörfer... Wie? - by Milu2K - 08.07.2010, 11:23
RE: Bonusdörfer... Wie? - by Yannici - 08.07.2010, 14:57
RE: Bonusdörfer... Wie? - by Milu2K - 08.07.2010, 14:57
RE: Bonusdörfer... Wie? - by Yannici - 08.07.2010, 15:20
RE: Bonusdörfer... Wie? - by Arthas - 08.07.2010, 16:19
RE: Bonusdörfer... Wie? - by burbot - 08.07.2010, 16:33
RE: Bonusdörfer... Wie? - by Arthas - 08.07.2010, 18:46
RE: Bonusdörfer... Wie? - by Yannici - 08.07.2010, 19:21
RE: Bonusdörfer... Wie? - by Jeezes - 15.08.2010, 00:12
RE: Bonusdörfer... Wie? - by Dsaddicted - 15.08.2010, 00:15
RE: Bonusdörfer... Wie? - by Bettdecke1 - 15.08.2010, 10:38
RE: Bonusdörfer... Wie? - by Dsaddicted - 15.08.2010, 14:23
RE: Bonusdörfer... Wie? - by abbar-2 - 15.08.2010, 14:26
RE: Bonusdörfer... Wie? - by HuGoB0Zz - 15.08.2010, 14:26
RE: Bonusdörfer... Wie? - by Dsaddicted - 15.08.2010, 14:44
RE: Bonusdörfer... Wie? - by Bettdecke1 - 15.08.2010, 17:21
RE: Bonusdörfer... Wie? - by Bettdecke1 - 01.01.2011, 17:53



Users browsing this thread: 8 Guest(s)