now you cannot build WW without building plan (did not tested, but should to work)

This commit is contained in:
unknown
2012-05-17 16:54:11 +03:00
parent c8a51ddddc
commit be725860f5
8 changed files with 190 additions and 10 deletions
+14
View File
@@ -1997,6 +1997,12 @@
function getUserByTribe($tribe){
$q = "SELECT * FROM " . TB_PREFIX . "users where tribe = $tribe";
$result = mysql_query($q, $this->connection);
return $this->mysql_fetch_all($result);
}
function getUserByAlliance($aid){
$q = "SELECT * FROM " . TB_PREFIX . "users where alliance = $aid";
$result = mysql_query($q, $this->connection);
return $this->mysql_fetch_all($result);
}
@@ -2612,11 +2618,19 @@
$result = mysql_query($q, $this->connection);
return mysql_fetch_array($result);
}
function getOwnArtefactInfoByType($vref, $type) {
$q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vref AND type = $type";
$result = mysql_query($q, $this->connection);
return mysql_fetch_array($result);
}
function getOwnArtefactInfoByType2($vref, $type) {
$q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vref AND type = $type";
$result = mysql_query($q, $this->connection);
return $this->mysql_fetch_all($result);
}
function getOwnUniqueArtefactInfo($id, $type, $size) {
$q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE owner = $id AND type = $type AND size=$size";
$result = mysql_query($q, $this->connection);