yi12345/TravianZ

finishTech function not working

Closed this issue · 0 comments

public function finishTech() {
    global $database,$village;
    $q = "UPDATE ".TB_PREFIX."research SET timestamp=".(time()-1)." WHERE vref = ".$village->wid;
    $database->query($q);
}

That function not working , tested on Academy , Blacksmith and Armoury , none of that not working research not instant finish after press : Complete construction orders and researches in this village now (does not work for Palace and Residence).

Detailed explication : when i BUILD something and also research something in Academy , Blacksmith and Armoury works good , finish all instant. BUT if i just simply research something in Academy , Blacksmith and Armoury without build something doesnt work

Must be fixed. (Templates/Plus/7.tpl) and (GameEngine/Tehnology.php at finisTech)