function include_alliance_news_text() { $objSrcUser =& $GLOBALS["objSrcUser"]; $iAlliance = $objSrcUser->get_stat(ALLIANCE); // Navigational Links echo $topLinks = '<div class="center">' . '<a href="main.php?cat=game&page=news">Tribe News</a> | ' . '<b>Alliance News</b> | ' . '<a href="main.php?cat=game&page=global_news">Global News</a>' . '</div><br />'; // Show alliance News echo showAllianceNews($iAlliance); }
function cast_spell(&$objSrcUser, &$objTrgUser, $arrSpell, $amount, $minHours, $dmg) { include_once 'inc/pages/alliance_news.inc.php'; // include_once("inc/functions/war.php"); // // $modifier = war_alli($objSrcUser->get_stat(ALLIANCE), $objTrgUser->get_stat(ALLIANCE)); // if ($modifier == 0 && war_target($objTrgUser->get_stat(ALLIANCE)) != 0) // { // echo "Cannot use Fly Over on alliances in war!"; // include_game_down(); // exit; // } $result["text_screen"] = showAllianceNews($objTrgUser->get_stat(ALLIANCE)); $result["casted"] = $amount; $result["damage"] = 1; return $result; }
function call_flyover_text() { global $go, $alli_id, $tool; include_once 'inc/functions/resort_tools.php'; if (!user_has_access($tool)) { echo "Sorry, this page is restricted to ORKFiA Staff"; include_game_down(); exit; } if ($alli_id && $go == "yes") { include_once 'inc/pages/alliance_news.inc.php'; echo showAllianceNews($alli_id); } echo "<form method=\"post\" action=\"" . $_SERVER['REQUEST_URI'] . "\">"; echo "Input alliance id to attain flyover:"; echo "<input type=text size=4 name=alli_id>"; echo "<input type=hidden name=go value=yes>"; echo "<br><input type=submit value=\"show me\"></form>"; }