| | This script is property of TravianX Project. You are allowed to change | its source and release it, but you have no rights to remove copyright | notices. | | TravianX All rights reserved | */ if(isset($aid)) { $aid = $aid; } else { $aid = $session->alliance; } $allianceinfo = $database->getAlliance($aid); echo "

".$allianceinfo['tag']." - ".$allianceinfo['name']."

"; include("alli_menu.tpl"); ?>
Alliance diplomacy
Alliance
Hint
It's part of diplomatic etiquette to talk to another alliance and negotiate before sending an offer for a non-aggression pact or a confederation.

alliance; if(count($database->diplomacyOwnOffers($alliance))){ foreach($database->diplomacyOwnOffers($alliance) as $key => $value){ if($value['type'] == 1){ $type = "Conf."; } else if($value['type'] == 2){ $type = "Nap"; } else if($value['type'] == 3){ $type = "War"; } echo ''; } } else { echo ''; } ?>
Own offers
'.$database->getAllianceName($value['alli2']).'
'.$type.'
none
Tip
If you want to see connections in the alliance description automatically, type [diplomatie] into the description, [ally], [nap] and [war] are also possible.
alliance; if(count($database->diplomacyInviteCheck($alliance))){ foreach($database->diplomacyInviteCheck($alliance) as $key => $row){ if($row['type'] == 1){ $type = "Conf."; } else if($row['type'] == 2){ $type = "Nap"; } else if($row['type'] == 3){ $type = "War"; } echo ''; } } else { echo ''; } ?>
Foreign offers
'.$database->getAllianceName($row['alli1']).'
'.$type.'
none
alliance; if(count($database->diplomacyExistingRelationships($alliance))){ foreach($database->diplomacyExistingRelationships($alliance) as $key => $row){ if($row['type'] == 1){ $type = "Conf."; } else if($row['type'] == 2){ $type = "Nap"; } else if($row['type'] == 3){ $type = "War"; } echo ''; } } elseif(count($database->diplomacyExistingRelationships2($alliance))){ foreach($database->diplomacyExistingRelationships2($alliance) as $key => $row){ if($row['type'] == 1){ $type = "Conf."; } else if($row['type'] == 2){ $type = "Nap"; } else if($row['type'] == 3){ $type = "War"; } echo ''; } }else { echo ''; } ?>
Existing relationships
'.$database->getAllianceName($row['alli1']).'
'.$type.'
'.$database->getAllianceName($row['alli2']).'
'.$type.'
none