fix attacking bug, somthing on buying goldclub, add merchant run 3 times to goldclub and now banned player cannot found new village

This commit is contained in:
unknown
2012-06-04 13:30:36 +03:00
parent f9b9d7faaf
commit 19a286d4c4
10 changed files with 144 additions and 114 deletions
+8 -8
View File
@@ -2013,8 +2013,8 @@
}
}
function addMovement($type, $from, $to, $ref, $time, $endtime) {
$q = "INSERT INTO " . TB_PREFIX . "movement values (0,$type,$from,$to,$ref,$time,$endtime,0)";
function addMovement($type, $from, $to, $ref, $time, $endtime, $send = 1, $wood = 0, $clay = 0, $iron = 0, $crop = 0) {
$q = "INSERT INTO " . TB_PREFIX . "movement values (0,$type,$from,$to,$ref,$time,$endtime,0,$send,$wood,$clay,$iron,$crop)";
return mysql_query($q, $this->connection);
}
@@ -2797,12 +2797,12 @@
return mysql_fetch_array($result);
}
function getMovementById($id){
$q="SELECT * FROM ".TB_PREFIX."movement where moveid = ".$id;
$result=mysql_query($q);
$array=$this->mysql_fetch_all($result);
return $array;
}
function getMovementById($id){
$q = "SELECT * FROM ".TB_PREFIX."movement WHERE moveid = ".$id."";
$result = mysql_query($q);
$array = $this->mysql_fetch_all($result);
return $array;
}
function getLinks($id){
$q = 'SELECT * FROM `' . TB_PREFIX . 'links` WHERE `userid` = ' . $id . ' ORDER BY `pos` ASC';