• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

TravianZ - yi12345

Status
Not open for further replies.
Newbie Spellweaver
Joined
Mar 20, 2011
Messages
88
Reaction score
1
try to change host. is may help you.

ok, one more question. It said that don't click. what's it mean? click "create" and wait or just wait.
I clicked create button (after a few minute waiting & it didn't change to next page), maybe it the reason for a blank screen
 
Junior Spellweaver
Joined
Mar 29, 2011
Messages
119
Reaction score
56
For the problem at the admin panel:

Open admin.php and search for
PHP:
include("GameEngine/Database.php");

and replace it with
PHP:
include("GameEngine/Session.php");

regards,
hard working pro coder
 
Newbie Spellweaver
Joined
Mar 20, 2011
Messages
88
Reaction score
1
hmm... maybe your install code got some problem. Can you check?
- I tried travianx v6, no problem with login & register.

- But the error occur with your version:
 
Elite Diviner
Joined
Aug 26, 2011
Messages
495
Reaction score
109
Good friend yi12345


the hero is not to steal the artifac

you know version that hero steal the artifact in it?
if yes, give me download link and I will try to make it (I use advocaite's fix but is still not work).
 
Skilled Illusionist
Joined
Sep 5, 2011
Messages
360
Reaction score
14
my friends

With this code you already steal the artifact


GameEngine/Database/db_MYSQL.php

PHP:
            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;
                }
            }



PHP:
  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);
            }

GameEngine/Automation.php
PHP:
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";  
                           
                    }
                }
            }
        }
 
Newbie Spellweaver
Joined
Mar 28, 2012
Messages
50
Reaction score
16
- Delete ville not woking. :D
- and i want image map ville color.
 
Newbie Spellweaver
Joined
Aug 17, 2011
Messages
86
Reaction score
15
after of make this improvements, my marketplace dont work.
 
Status
Not open for further replies.
Back
Top