mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-29 14:47:14 +00:00
fix oasis populate
This commit is contained in:
@@ -473,10 +473,10 @@ function getVilWref($x, $y) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function populateOasisUnitsLow() {
|
function populateOasisUnitsLow() {
|
||||||
$q2 = "SELECT * FROM " . TB_PREFIX . "odata where conqured == 0";
|
$q2 = "SELECT * FROM " . TB_PREFIX . "wdata where oasistype != 0";
|
||||||
$result2 = mysql_query($q2, $this->connection);
|
$result2 = mysql_query($q2, $this->connection);
|
||||||
while($row = mysql_fetch_array($result2)) {
|
while($row = mysql_fetch_array($result2)) {
|
||||||
$wid = $row['wref'];
|
$wid = $row['id'];
|
||||||
$basearray = $this->getMInfo($wid);
|
$basearray = $this->getMInfo($wid);
|
||||||
//each Troop is a Set for oasis type like mountains have rats spiders and snakes fields tigers elphants clay wolves so on stonger one more not so less
|
//each Troop is a Set for oasis type like mountains have rats spiders and snakes fields tigers elphants clay wolves so on stonger one more not so less
|
||||||
switch($basearray['oasistype']) {
|
switch($basearray['oasistype']) {
|
||||||
@@ -529,10 +529,10 @@ function getVilWref($x, $y) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function populateOasisUnitsHigh() {
|
function populateOasisUnitsHigh() {
|
||||||
$q2 = "SELECT * FROM " . TB_PREFIX . "odata where conqured == 0";
|
$q2 = "SELECT * FROM " . TB_PREFIX . "wdata where oasistype != 0";
|
||||||
$result2 = mysql_query($q2, $this->connection);
|
$result2 = mysql_query($q2, $this->connection);
|
||||||
while($row = mysql_fetch_array($result2)) {
|
while($row = mysql_fetch_array($result2)) {
|
||||||
$wid = $row['wref'];
|
$wid = $row['id'];
|
||||||
$basearray = $this->getMInfo($wid);
|
$basearray = $this->getMInfo($wid);
|
||||||
//each Troop is a Set for oasis type like mountains have rats spiders and snakes fields tigers elphants clay wolves so on stonger one more not so less
|
//each Troop is a Set for oasis type like mountains have rats spiders and snakes fields tigers elphants clay wolves so on stonger one more not so less
|
||||||
switch($basearray['oasistype']) {
|
switch($basearray['oasistype']) {
|
||||||
|
|||||||
Reference in New Issue
Block a user