3 include ("GameEngine/Account.php");
5 #################################################################################
6 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
7 ## --------------------------------------------------------------------------- ##
8 ## Filename multihunter.php ##
10 ## License: TravianX Project ##
11 ## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
13 #################################################################################
15 if($session->access
!= ADMIN
) die("Access Denied: You are not administrator!");
21 echo $_SERVER['PHP_SELF'];
24 <table id
="coords" cellpadding
="3" cellspacing
="3">
27 <input
class="text" name
="uid" value
="" maxlength
="5" type
="text">
32 <input type
="submit" name
="submit" value
="OK">
38 if(isset($_POST['submit'])) {
47 $q = "SELECT id FROM ".TB_PREFIX
."wdata where x = $x and y = $y";
48 $result = mysql_query($q, $database->connection
);
49 $r = mysql_fetch_array($result);
52 $status = $database->getVillageState($wid);
55 $database->setFieldTaken($wid);
56 $database->addVillage($wid, $uid, 'Multihunter', '0');
57 $database->addResourceFields($wid, $database->getVillageType($wid));
58 $database->addUnits($wid);
59 $database->addTech($wid);
60 $database->addABTech($wid);
61 echo "You have created village on (".$x."|".$y."). Owner of the village is <a href=\"spieler.php?uid=".$uid."\">".$database->getUserField($uid, "username", 0)."</a>";
64 echo "Coordinates (".$x."|".$y.") are occupied and you can't create village there!";