sorry but I don't know why it's happen.
you have a free host?
It's dedicate host. Try to install again but the problem still occur :/:
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!sorry but I don't know why it's happen.
you have a free host?
It's dedicate host. Try to install again but the problem still occur :/:
try to change host. is may help you.
include("GameEngine/Database.php");
include("GameEngine/Session.php");
Good friend yi12345
the hero is not to steal the artifac
public function canClaimArtifact($from,$vref,$type) {
$DefenderFields = $this->getResourceLevel($vref);
$defcanclaim = TRUE;
for($i=19;$i<=38;$i++) {
if($DefenderFields['f'.$i.'t'] == 27) {
$defTresuaryLevel = $DefenderFields['f'.$i];
if($defTresuaryLevel > 0) {
$defcanclaim = FALSE;
} else {
$defcanclaim = TRUE;
}
}
}
$AttackerFields = $this->getResourceLevel($from);
for($i=19;$i<=38;$i++) {
if($AttackerFields['f'.$i.'t'] == 27) {
$attTresuaryLevel = $AttackerFields['f'.$i];
if ($attTresuaryLevel >= 10) {
$villageartifact = TRUE;
} else {
$villageartifact = FALSE;
}
if ($attTresuaryLevel >= 20){
$accountartifact = TRUE;
} else {
$accountartifact = FALSE;
}
}
}
if ($type == 1) {
if ($defcanclaim == TRUE && $villageartifact == TRUE) {
return TRUE;
} else {
return FALSE;
}
} else if ($type == 2) {
if ($defcanclaim == TRUE && $accountartifact == TRUE) {
return TRUE;
} else {
return FALSE;
}
} else if ($type == 3) {
if ($defcanclaim == TRUE && $accountartifact == TRUE) {
return TRUE;
} else {
return FALSE;
}
} else {
return FALSE;
}
}
function claimArtefact($vref, $ovref, $id) {
$time = time();
$q = "UPDATE " . TB_PREFIX . "artefacts SET vref = $vref, owner = $id, conquered = $time WHERE vref = $ovref";
return mysql_query($q, $this->connection);
}
if($data['t11'] > 0){
if ($isoasis != 0) {
if ($database->canConquerOasis($data['from'],$data['to'])) {
$database->conquerOasis($data['from'],$data['to']);
$info_chief = $hero_pic.",Your hero has conquered this oasis and gained ".$heroxp." XP";
} else {
$OasisInfo = $database->getOasisInfo($data['to']);
if ($OasisInfo['conqured'] != 0) {
$Oloyaltybefore = $OasisInfo['loyalty'];
$database->modifyOasisLoyalty($data['to']);
$OasisInfo = $database->getOasisInfo($data['to']);
$Oloyaltynow = $OasisInfo['loyalty'];
$info_chief = $hero_pic.",Your hero has reduced oasis loyalty to ".$Oloyaltynow." from ".$Oloyaltybefore." and gained ".$heroxp." XP";
} else {
if ($heroxp == 0) {
$info_chief = $hero_pic.",Your hero had nothing to kill therfore gains no XP at all";
} else {
$info_chief = $hero_pic.",Your hero gained ".$heroxp." XP";
}
}
}
} else {
$artifact = $database->getOwnArtefactInfo($data['to']);
if ($artifact['vref'] == $data['to']) {
if ($database->canClaimArtifact($data['from'],$artifact['vref'],$artifact['size'])) {
$database->claimArtefact($data['from'],$data['to'],$database->getVillageField($data['from'],"owner"));
$info_chief = $hero_pic.",Your hero is carrying home a artefact and gained ".$heroxp." XP from the battle";
} else {
$info_chief = $hero_pic.",Your hero could not claim the artefact and gained ".$heroxp." XP from the battle";
}
}
}
}
Here my TravianZ in github:
You must be registered to see links
cancel troops still don't working..i mean attacks
now i fix it
- Delete ville not woking.
- and i want image map ville color.
you can delete village in official server? i don't think so.
maybe he about expansion after village is crushed?
steal the artifact working. Nice.
yi12345
Do not delete the report.