예제 #1
0
    Artefact($uid, 9, 1, 'انبار برتر كوچك', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type9.gif');
}
unset($i);
unset($vname);
unset($effect);
$vname = 'کتیبه انبار برتر';
$effect = '';
for ($i > 1; $i < 4; $i++) {
    Artefact($uid, 9, 2, 'انبار برتر بزرگ', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type9.gif');
}
/**
 * HAWK'S EYESIGHT
 */
$desc = "اين كتيبه تاثير دفاعي ديوار هاي دهكده را برابر كاهش مي دهد .";
unset($i);
unset($vname);
unset($effect);
$vname = 'کتیبه دهكده احمق ها';
$effect = '2x';
for ($i > 1; $i < 6; $i++) {
    Artefact($uid, 3, 1, 'دهكده احمق ها كوچك', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type3.gif');
}
unset($i);
unset($vname);
unset($effect);
$vname = 'کتیبه دهكده احمق ها';
$effect = '5x';
for ($i > 1; $i < 1; $i++) {
    Artefact($uid, 3, 3, 'دهكده احمق ها منحصر به فرد', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type3.gif');
}
header("Location: dorf1.php");
        for ($i > 1; $i < 5; $i++) {
            Artefact($uid, 8, 1, 'Artefact of the slight fool', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type8.gif');
        }
        unset($i);
        unset($vname);
        unset($effect);
        $vname = 'Pendant of Mischief';
        for ($i > 1; $i < 5; $i++) {
            Artefact($uid, 8, 2, 'Artefact of the slight fool', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type8.gif');
        }
        unset($i);
        unset($vname);
        unset($effect);
        $vname = 'Forbidden Manuscript';
        for ($i > 1; $i < 1; $i++) {
            Artefact($uid, 8, 3, 'Artefact of the unique fool', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type8.gif');
        }
        $myFile = "Templates/text.tpl";
        $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: templates/text.tpl");
        $text = file_get_contents("Templates/text_format.tpl");
        $text = preg_replace("'%TEKST%'", "Construction plans\n\n\n\nCountless days have passed since the first battles upon the walls of the cursed villages of the Dread Natars, many armies of both the free ones and the Natarian empire struggled and died before the walls of the many strongholds from which the Natars had once ruled all creation. Now with the dust settled and a relative calm having settled in, armies began to count their losses and collect their dead, the stench of combat still lingering in the night air, a smell of a slaughter unforgettable in its extent and brutality yet soon to be dwarfed by yet others. The largest armies of the free ones and the Dread Natars were marshalling for yet another renewed assault upon the coveted former strongholds of the Natarian Empire.\n\nSoon scouts arrived telling of a most awesome sight and a chilling reminder, a dread army of an unfathomable size had been spotted marshalling at the end of the world, the Natarian capital, a force so great and unstoppable that the dust from their march would choke off all light, a force so brutal and ruthless that it would crush all hope. The free people knew that they had to race now, race against time and the endless hordes of the Natarian Empire to raise a Wonder of the World to restore the world to peace and vanquish the Natarian threat.\n\nBut to raise such a great Wonder would be no easy task, one would need construction plans created in the distant past, plans of such an arcane nature that even the very wisest of sages knew not their contents or locations.\n\nTens of thousands of scouts roamed across all existence searching in vain for these mystical plans, looking in all places but the dreaded Natarian Capital, yet could not find them. Today however, they return bearing good news, they return baring the locations of the plans, hidden by the armies of the Natars inside secret strongholds constructed to be hidden from the eyes of man.\n\nNow begins the final stretch, when the greatest armies of the Free people and the Natars will clash across the world for the fate of all that lies under heaven. This is the war that will echo across the eons, this is your war, and here you shall etch your name across history, here you shall become legend.\n\n\nFacts:\nTo steal one, the following things must happen:\nYou must attack the village (NO Raid!)\nWIN the Attack\nDestroy the treasury\nAn empty treasury lvl 10 MUST be in the village where that attack came from\nHave a hero in an attack\n\nIf not, the next attack on that village, winning with a hero and empty treasury will take the building plan.\n\nTo build a WW, you must own a plan yourself (you = the WW village owner) from lvl 0 to 49, from 50 to 100 you need an additional plan in your alliance! Two plans in the WW village account would not work!\n\nThe construction plans are conquerable immediately when they appear to the server. \n\nThere will be a countdown in game, showing the exact time of the release, 5 days prior to the launch.", $text);
        fwrite($fh, $text);
        $query = "SELECT * FROM " . TB_PREFIX . "users ORDER BY id + 0 DESC";
        $result = mysql_query($query) or die(mysql_error());
        for ($i = 0; $row = mysql_fetch_row($result); $i++) {
            $updateattquery = mysql_query("UPDATE " . TB_PREFIX . "users SET ok = '1' WHERE id = '" . $row[0] . "'") or die(mysql_error());
        }
        echo "Done";
    } elseif ($database->checkExist('Natars', 0)) {
        ?>
<p>
예제 #3
0
        for ($i > 1; $i < 5; $i++) {
            Artefact($uid, 8, 1, FOOL_SMALL, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type8.gif');
        }
        unset($i);
        unset($vname);
        unset($effect);
        $vname = FOOL_SMALLVILLAGE;
        for ($i > 1; $i < 5; $i++) {
            Artefact($uid, 8, 2, FOOL_SMALL, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type8.gif');
        }
        unset($i);
        unset($vname);
        unset($effect);
        $vname = FOOL_UNIQUEVILLAGE;
        for ($i > 1; $i < 1; $i++) {
            Artefact($uid, 8, 3, FOOL_UNIQUE, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type8.gif');
        }
        $myFile = "Templates/text.tpl";
        $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: templates/text.tpl");
        $text = file_get_contents("Templates/text_format.tpl");
        $text = preg_replace("'%TEKST%'", ARTEFACT, $text);
        fwrite($fh, $text);
        $query = "SELECT * FROM " . TB_PREFIX . "users ORDER BY id + 0 DESC";
        $result = mysql_query($query) or die(mysql_error());
        for ($i = 0; $row = mysql_fetch_row($result); $i++) {
            $updateattquery = mysql_query("UPDATE " . TB_PREFIX . "users SET ok = '1' WHERE id = '" . $row[0] . "'") or die(mysql_error());
        }
        echo "Done";
    } elseif ($database->checkExist('Natars', 0)) {
        ?>
<p>