Tudo que stauro postou
-
Erro no mapa TFS 1.5
No rme está tudo perfeito, o erro é só quando tento abrir o server com o TFS 1.4 ou 1.5, nos outros TFS está normal...
-
Erro no mapa TFS 1.5
Bom dia, baixei esse TFS 1.5 para 8.60 e quando coloco meu mapa global ele da debug e quando logo pelo OTC não aparece umas partes do mapa. Já tentei com outros mapas e acontece a mesma coisa. Já tentei trocar outros items.otb e nada de arrumar. Alguém sabe o que pode ser e como arrumar?
-
[Resolvido] Erro site Gesior
Como resolve eu não sei, não manjo de programação. Mas com esse configlua.php resolveu o problema: <?php if(!defined('INITIALIZED')) exit; // NOT SAFE CLASS, LUA CONFIG CAN BE EXECUTED AS PHP CODE class ConfigLUA { private $config; public function __construct($path = false) { if($path) $this->loadFromFile($path); } public function loadFromFile($path) { if(Website::fileExists($path)) { $content = Website::getFileContents($path); $this->loadFromString($content); } else { throw new InvalidArgumentException('#C-2 LUA config file doesn\'t exist. Path: <b>' . $path . '</b>'); } } public function fileExists($path) { return Website::fileExists($path); } public function loadFromString($string) { $lines = explode("\n", $string); if(count($lines) > 0) foreach($lines as $ln => $line) { $tmp_exp = explode('=', $line, 2); if(count($tmp_exp) >= 2) { $key = trim($tmp_exp[0]); if(substr($key, 0, 2) != '--') { $value = trim($tmp_exp[1]); if(is_numeric($value)) $this->config[ $key ] = (float) $value; elseif(in_array(substr($value, 0 , 1), array("'", '"')) && in_array(substr($value, -1 , 1), array("'", '"'))) $this->config[ $key ] = (string) substr(substr($value, 1), 0, -1); elseif(in_array($value, array('true', 'false'))) $this->config[ $key ] = ($value == 'true') ? true : false; else { foreach($this->config as $tmp_key => $tmp_value) // load values definied by other keys, like: dailyFragsToBlackSkull = dailyFragsToRedSkull $value = str_replace($tmp_key, $tmp_value, $value); try { $ret = @eval("return $value;"); if ((string)$ret == '') // = parser error { throw new RuntimeException( '#C-1 - Line <b>' . ($ln + 1) . '</b> of LUA config file is not valid [key: <b>' . $key . '</b>]' ); } $this->config[$key] = $ret; } catch(ParseError $e) { // skip LUA table errors } } } } } } public function getValue($key) { if(isset($this->config[ $key ])) return $this->config[ $key ]; else throw new RuntimeException('#C-3 Config key <b>' . $key . '</b> doesn\'t exist.'); } public function isSetKey($key) { return isset($this->config[ $key ]); } public function getConfig() { return $this->config; } }
-
System de guardian - Tfs 1.3 ( Sem ataque automatico )
Sou leigo, pra que serve esse sistema?
-
Procuro Script de NPC que compra Loot! 12.7
Que tipo de loot?
-
Erro ao comprar backpack de potions ou runas
Olha amigo, de 10 tópicos que eu abro aqui, 9 eu acabo resolvendo sozinho, porque essa comunidade BR só quer cobrar pelo problema, não me ajudam em 99% dos casos. Aprendi quase tudo sozinho!!! Mesmo não sabendo nada de Lua e C++. Então não da nem vontade de falar como resolvi, mas não serei cuzão, porque continuarei abrindo tópicos e a gente nunca sabe o dia de amanhã. Resolvi da seguinte forma: em data/npc/lib/npcsystem/modules.lua eu alterei tudo que estava como "Item_Shopping_Bag" para "Item_Backpack". Levei mais de 1 mês pra descobrir isso, data do post é de outubro e estamos em dezembro, é foda viu.
-
[Resolvido] Erro site Gesior
Salve galera, to com problema no meu Gesior. Eu mudei o sistema de Exp Stage de Xml por Lua e acrescentei isso no config.lua: experienceStages = { { minlevel = 1, maxlevel = 7, multiplier = 10 }, { minlevel = 8, maxlevel = 100, multiplier = 50 }, { minlevel = 101, maxlevel = 150, multiplier = 40 }, { minlevel = 151, maxlevel = 160, multiplier = 30 }, { minlevel = 161, maxlevel = 170, multiplier = 20 }, { minlevel = 171, maxlevel = 180, multiplier = 10 }, { minlevel = 181, maxlevel = 190, multiplier = 5 }, { minlevel = 191, maxlevel = 200, multiplier = 3 }, { minlevel = 201, maxlevel = 300, multiplier = 1 }, { minlevel = 301, maxlevel = 310, multiplier = 0.8 }, { minlevel = 311, maxlevel = 320, multiplier = 0.7 }, { minlevel = 321, maxlevel = 330, multiplier = 0.6 }, { minlevel = 331, maxlevel = 340, multiplier = 0.5 }, { minlevel = 341, maxlevel = 350, multiplier = 0.4 }, { minlevel = 351, multiplier = 0.3 } } Contudo, por conta de agora o config.lua estar utilizando " { " o site não funciona mais, aparecendo esse erro: Parse error: syntax error, unexpected '{', expecting ';' in C:\xampp\htdocs\classes\configlua.php(56) : eval()'d code on line 1 configlua.php <?php if(!defined('INITIALIZED')) exit; class ConfigLUA extends Errors // NOT SAFE CLASS, LUA CONFIG CAN BE EXECUTED AS PHP CODE { private $config; public function __construct($path = false) { if($path) $this->loadFromFile($path); } public function loadFromFile($path) { if(Website::fileExists($path)) { $content = Website::getFileContents($path); $this->loadFromString($content); } else { new Error_Critic('#C-2', 'ERROR: <b>#C-2</b> : Class::ConfigLUA - LUA config file doesn\'t exist. Path: <b>' . $path . '</b>'); } } public function fileExists($path) { return Website::fileExists($path); } public function loadFromString($string) { $lines = explode("\n", $string); if(count($lines) > 0) foreach($lines as $ln => $line) { $tmp_exp = explode('=', $line, 2); if(count($tmp_exp) >= 2) { $key = trim($tmp_exp[0]); if(substr($key, 0, 2) != '--') { $value = trim($tmp_exp[1]); if(is_numeric($value)) $this->config[ $key ] = (float) $value; elseif(in_array(substr($value, 0 , 1), array("'", '"')) && in_array(substr($value, -1 , 1), array("'", '"'))) $this->config[ $key ] = (string) substr(substr($value, 1), 0, -1); elseif(in_array($value, array('true', 'false'))) $this->config[ $key ] = ($value == 'true') ? true : false; else { foreach($this->config as $tmp_key => $tmp_value) // load values definied by other keys, like: dailyFragsToBlackSkull = dailyFragsToRedSkull $value = str_replace($tmp_key, $tmp_value, $value); $ret = @eval("return $value;"); if((string) $ret == '') // = parser error { new Error_Critic('', 'ERROR: <b>#C-1</b> : Class::ConfigLUA - Line <b>' . ($ln + 1) . '</b> of LUA config file is not valid [key: <b>' . $key . '</b>]'); } $this->config[ $key ] = $ret; } } } } } public function getValue($key) { if(isset($this->config[ $key ])) return $this->config[ $key ]; else new Error_Critic('#C-3', 'ERROR: <b>#C-3</b> : Class::ConfigLUA - Key <b>' . $key . '</b> doesn\'t exist.'); } public function isSetKey($key) { return isset($this->config[ $key ]); } public function getConfig() { return $this->config; } } Alguém sabe como resolvo isso???
-
Erro ao comprar backpack de potions ou runas
Resolvi.
-
Compilando TFS 1.3
Tenta iniciar com xampp aberto e startado, geralmente isso acontece quando não acessa o banco de dados
-
Erro ao comprar backpack de potions ou runas
Boa noite, estou com problema no meu server, que não estou conseguindo comprar bps de runas e potions Uso TFS 1.3 Nekiro
-
Erro database... Gerando sempre o mesmo id
Boa tarde, minha database está gerando as informações com o mesmo 'id' tudo id = 0. Com isso, não estou conseguindo fazer ações repetitivas no shop, como comprar mais de um item. Alguém sabe como resolvo isso? z_shop_payment: CREATE TABLE `z_shop_offer` ( `id` int(11) NOT NULL, `category` int(11) NOT NULL, `coins` int(11) NOT NULL DEFAULT 0, `price` varchar(50) NOT NULL, `itemid` int(11) NOT NULL DEFAULT 0, `mount_id` varchar(100) NOT NULL, `addon_name` varchar(100) NOT NULL, `count` int(11) NOT NULL DEFAULT 0, `offer_type` varchar(255) DEFAULT NULL, `offer_description` text NOT NULL, `offer_name` varchar(255) NOT NULL, `offer_date` int(11) NOT NULL, `default_image` varchar(50) NOT NULL, `hide` int(11) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `z_shop_payment` ( `id` int(11) NOT NULL, `ref` varchar(10) NOT NULL, `account_name` varchar(50) NOT NULL, `service_id` int(11) NOT NULL, `service_category_id` int(11) NOT NULL, `payment_method_id` int(11) NOT NULL, `price` varchar(50) NOT NULL, `coins` int(11) UNSIGNED NOT NULL, `status` varchar(50) NOT NULL DEFAULT 'waiting', `date` int(11) NOT NULL, `gift` int(11) NOT NULL DEFAULT '0' ) ENGINE=MyISAM DEFAULT CHARSET=utf8; Shop.php <?php if(!defined('INITIALIZED')) exit; $main_content .= ' <script type="text/javascript" > g_Deactivated = true; </script>'; $services_errors = array(); if (!isset($_REQUEST['ServiceCategoryID'])) header("Location: ?subtopic=accountmanagement&action=manage"); else $serviceCategoryId = $_REQUEST['ServiceCategoryID']; if (isset($_REQUEST['step'])) $step = (int) $_REQUEST['step']; else $step = 1; switch($step) { case 2: $service = "Enter payment data"; break; case 3: $service = "Confirm your order"; break; case 4: $service = "Summary"; break; default: $service = "Select service"; } //Progress Bar #js part $get_Services = $SQL->query("SELECT * FROM `z_shop_offer` WHERE `category` = '$serviceCategoryId'")->fetchAll(); $g_Services = '['; #start foreach($get_Services as $g_Ser) { $g_Services .= $g_Ser['id'].','; #repeat items } $g_Services = substr($g_Services,0,-1); #cut $g_Services .= ']'; $g_Prices = '{'; foreach($get_Services as $g_Ser) { $g_Prices .= '"'.$g_Ser['id'].'":{'; $g_Prices .= '"1":"'.$g_Ser['coins'].'"'; $g_Prices .= '},'; } $g_Prices = substr($g_Prices,0,-1); $g_Prices.= '};'; $main_content .= ' <script> $(document).ready(function() { ChangePMC(1); ChangeService(8,2); }); var g_Services = '.$g_Services.'; var g_PaymentMethodCategories = {1:1}; var g_Prices = '.$g_Prices.' var g_QF_Mounts_ServiceCategoryID = 15; var g_QF_Outfits_ServiceCategoryID = 17; function ChangeService(a_ServiceID, a_ServiceCategoryID) { // set the ServiceID for the change country form $(\'#ServiceID\').val(a_ServiceID); $(\'#ServiceID\').attr(\'name\', \'InitialServiceID\'); // activate the radio button itself and set the price $(\'#ServiceID_\' + a_ServiceID).attr(\'checked\', \'checked\'); $(\'.ServiceID_Icon_Container\').css(\'background-color\', \'\'); // handle mounts if (a_ServiceCategoryID == g_QF_Mounts_ServiceCategoryID || a_ServiceCategoryID == g_QF_Outfits_ServiceCategoryID) { $(\'.ServiceID_Icon_Animation_1\').hide(); $(\'.ServiceID_Icon_New_Animation_1\').hide(); $(\'.ServiceID_Icon_New\').show(); $(\'#ServiceID_Icon_Animation_1_\' + a_ServiceID).show(); $(\'#ServiceID_Icon_New_\' + a_ServiceID).hide(); } // handle payment methods for (var i = 0; i < g_PaymentMethodCategories.length; i++) { if (typeof g_Prices[a_ServiceID] !== \'undefined\') { if (typeof g_Prices[a_ServiceID][g_PaymentMethodCategories[i]] === \'undefined\') { // deactivate the payment method // note: the radio button can not be disabled or we will receive the wrong error message $(\'#PMCID_NotAllowed_\' + g_PaymentMethodCategories[i]).show(); } else { // activate the payment method $(\'#PMCID_NotAllowed_\' + g_PaymentMethodCategories[i]).hide(); } } } // activate and mark the selected icon $(\'.ServiceID_Icon_Selected\').css(\'background-image\', \'\'); $(\'#ServiceID_Icon_Selected_\' + a_ServiceID).css(\'background-image\', \'url(\' + JS_DIR_IMAGES + \'payment/serviceid_icon_selected.png)\'); return; } function ChangePMC(a_PaymentMethodID) { // set the PMCID for the change country form $(\'#PMCID\').val(a_PaymentMethodID); $(\'#PMCID\').attr(\'name\', \'InitialPMCID\'); // activate the radio button $(\'#PMCID_\' + a_PaymentMethodID).attr(\'checked\', \'checked\'); $(\'.PMCID_Icon_Container\').css(\'background-color\', \'\'); // handle services for (var i = 0; i < g_Services.length; i++) { if (typeof g_Prices[g_Services[i]] !== \'undefined\') { if (typeof g_Prices[g_Services[i]][a_PaymentMethodID] === \'undefined\') { // deactivate the service // note: the radio button can not be disabled or we will receive the wrong error message $(\'#ServiceID_NotAllowed_\' + g_Services[i]).show(); // set the price $(\'#PD_\' + g_Services[i]).html(\'---\'); $(\'#ServiceID_\' + g_Services[i]).val(\'0\'); } else { // activate the service // set the price $(\'#PD_\' + g_Services[i]).html(g_Prices[g_Services[i]][a_PaymentMethodID] + \' Coins\'); $(\'#ServiceID_NotAllowed_\' + g_Services[i]).hide(); } } } // activate and mark the selected icon $(\'.PMCID_Icon_Selected\').css(\'background-image\', \'\'); $(\'#PMCID_Icon_Selected_\' + a_PaymentMethodID).css(\'background-image\', \'url(\' + JS_DIR_IMAGES + \'payment/pmcid_icon_selected.png)\'); return; } // mouse over effect for payment methods function MouseOverPMCID(a_PMCID) { $(\'#PMCID_Icon_Over_\' + a_PMCID).css(\'background-image\', \'url(\' + JS_DIR_IMAGES + \'payment/pmcid_icon_over.png)\'); } // mouse out effect for payment methods function MouseOutPMCID(a_PMCID) { $(\'#PMCID_Icon_Over_\' + a_PMCID).css(\'background-image\', \'\'); } // mouse over effect for products function MouseOverServiceID(a_ServiceID, a_ServiceCategoryID) { $(\'#ServiceID_Icon_Over_\' + a_ServiceID).css(\'background-image\', \'url(\' + JS_DIR_IMAGES + \'payment/serviceid_icon_over.png)\'); if (a_ServiceCategoryID == g_QF_Mounts_ServiceCategoryID || a_ServiceCategoryID == g_QF_Outfits_ServiceCategoryID) { $(\'#ServiceID_Icon_Animation_1_\' + a_ServiceID).show(); $(\'#ServiceID_Icon_New_\' + a_ServiceID).hide(); } } // mouse out effect for products function MouseOutServiceID(a_ServiceID, a_ServiceCategoryID) { $(\'#ServiceID_Icon_Over_\' + a_ServiceID).css(\'background-image\', \'\'); // mounts have an animation if ((a_ServiceCategoryID == g_QF_Mounts_ServiceCategoryID || a_ServiceCategoryID == g_QF_Outfits_ServiceCategoryID) && ($(\'#ServiceID_\' + a_ServiceID).attr(\'checked\') != \'checked\')) { $(\'#ServiceID_Icon_Animation_1_\' + a_ServiceID).hide(); $(\'#ServiceID_Icon_New_\' + a_ServiceID).show(); } } </script>'; $main_content .= ' <div id="ProgressBar"> <div id="MainContainer"> <div id="BackgroundContainer"> <img id="BackgroundContainerLeftEnd" src="'.$layout_name.'/images/global/content/stonebar-left-end.gif" /> <div id="BackgroundContainerCenter"> <div id="BackgroundContainerCenterImage" style="background-image:url('.$layout_name.'/images/global/content/stonebar-center.gif);" /> </div> </div> <img id="BackgroundContainerRightEnd" src="'.$layout_name.'/images/global/content/stonebar-right-end.gif" /> </div> <img id="TubeLeftEnd" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-left-green.gif" /> <img id="TubeRightEnd" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-right-'.(($step == 4) ? 'green' : 'blue').'.gif" /> <div id="FirstStep" class="Steps" > <div class="SingleStepContainer" > <img class="StepIcon" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-icon-1-green.gif" /> <div class="StepText" style="font-weight:'.((!isset($step) || $step == 1) ? 'bold' : 'normal').';" >Select service</div> </div> </div> <div id="StepsContainer1" > <div id="StepsContainer2" > <div class="Steps" style="width:33%" > <div class="TubeContainer" > <img class="Tube" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-'.((!isset($step) || $step == 1) ? 'green-blue' : 'green').'.gif" /> </div> <div class="SingleStepContainer" > <img class="StepIcon" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-icon-2-'.(($step >= 2) ? 'green' : 'blue').'.gif" /> <div class="StepText" style="font-weight:'.(($step == 2) ? 'bold' : 'normal').';" >Enter payment data</div> </div> </div> <div class="Steps" style="width:33%" > <div class="TubeContainer" >'; if ($step == 2) { $main_content .= ' <img class="Tube" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-green-blue.gif" />'; }elseif ($step >= 3) { $main_content .= ' <img class="Tube" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-green.gif" />'; }else{ $main_content .= ' <img class="Tube" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-blue.gif" />'; } $main_content .= ' </div> <div class="SingleStepContainer" > <img class="StepIcon" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-icon-3-'.(($step >= 3) ? 'green' : 'blue').'.gif" /> <div class="StepText" style="font-weight:'.(($step == 3) ? 'bold' : 'normal').';" >Confirm your order</div> </div> </div> <div class="Steps" style="width:33%" > <div class="TubeContainer" > '; if ($step == 3) { $main_content .= ' <img class="Tube" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-green-blue.gif" />'; }elseif ($step >= 4) { $main_content .= ' <img class="Tube" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-green.gif" />'; }else{ $main_content .= ' <img class="Tube" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-blue.gif" />'; } $main_content .= ' </div> <div class="SingleStepContainer" > <img class="StepIcon" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-icon-4-'.(($step == 4) ? 'green' : 'blue').'.gif" /> <div class="StepText" style="font-weight:'.(($step == 4) ? 'bold' : 'normal').';" >Summary</div> </div> </div> </div> </div> </div> </div>'; #progress bar end if ($step == 1) { $doubleStatus = $SQL->query("SELECT `value` FROM `server_config` WHERE `config` = 'double'")->fetch(); $main_content .= ' <style> .ribbonShop-double { background:url('.$layout_name.'/images/shop/ribbon-double.png) no-repeat; width: 80px; height: 80px; position:absolute; right: -5px; top: -5px; z-index:999; } </style>'; $main_content .= ' <form method="post" action="?subtopic=accountmanagement&action=services"> <div class="TableContainer" style="position:relative;"> '.(($doubleStatus['value'] == "active") ? '<div class="ribbonShop-double"></div>' : '').' <table class="Table5" cellpadding="0" cellspacing="0"> <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <div class="Text" >'.$service.'</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;" >'; #menu $main_content .= ' <tr> <td>'; $getCat = $SQL->query("SELECT * FROM `z_shop_category` WHERE `hide` = 0 ORDER BY `id` ASC")->fetchAll(); foreach($getCat as $category) { $main_content .= ' <span class="HelperDivIndicator" onMouseOver="ActivateHelperDiv($(this), \''.$category['name'].'\', \''.$category['desc'].'\', \'ProductCategoryHelperDiv_'.$category['id'].'\');" onMouseOut="$(\'#HelperDivContainer\').hide();" > <div class="InnerTableTab '.(($serviceCategoryId == $category['id']) ? 'ActiveInnerTableTab' : '').'"> <div id="ProductCategoryHelperDiv_'.$category['id'].'" class="ProductCategoryHelperDiv" ></div> <a href="?subtopic=accountmanagement&action=services&ServiceCategoryID='.$category['id'].'&step='.$step.'"> <img src="'.$layout_name.'/images/payment/products_tab_'.(($serviceCategoryId == $category['id']) ? '' : 'non').'active.png" /> <div class="InnerTableTabLabel" >'.$category['name'].'</div>'; $newCategory = $category['id']; $getNews = $SQL->query("SELECT `offer_date` FROM `z_shop_offer` WHERE `category` = '$newCategory' ORDER BY `offer_date` DESC LIMIT 1")->fetch(); if ((time() - ($config['shop']['newitemdays'] * 86400)) < $getNews['offer_date']) $main_content .= '<div class="RibbonNewProduct" style="background-image: url('.$layout_name.'/images/payment/ribbon-tab-new-product'.(($serviceCategoryId == $category['id']) ? '_active' : '').'.png);" ></div>'; $main_content .= ' </a> </div> </span>'; } $main_content .= ' </td> </tr>'; #services $main_content .= ' <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" > <tr> <td style="text-align: center;" align="center" > <div style="max-height: 500px; min-height: 100px; overflow-y: auto;">'; $getProducts = $SQL->query("SELECT * FROM `z_shop_offer` WHERE `category` = '$serviceCategoryId' AND `hide` = 0 ORDER BY `offer_date` DESC")->fetchAll(); if (count($getProducts) >= 1) foreach($getProducts as $product) { $main_content .= ' <div class="ServiceID_Icon_Container" id="ServiceID_Icon_Container_'.$product['id'].'"> <div class="ServiceID_Icon_Container_Background" id="" style="background-image:url('.$layout_name.'/images/payment/serviceid_icon_normal.png);" > <div class="ServiceID_Icon" id="ServiceID_Icon_'.$product['id'].'" '.(($product['category'] == 2) ? 'style="background-image:url('.$layout_name.'/images/payment/'.$product['default_image'].');"' : '').' onclick="ChangeService('.$product['id'].', '.$product['category'].');" onmouseover="MouseOverServiceID('.$product['id'].', '.$product['category'].');" onmouseout="MouseOutServiceID('.$product['id'].', '.$product['category'].');" > <div class="PermanentDeactivated" >'; if(!empty($product['offer_description'])) $main_content .= ' <span class="HelperDivIndicator" onMouseOver="ActivateHelperDiv($(this), \''.$product['offer_name'].'\', \''.$product['offer_description'].'\', \'\');" onMouseOut="$(\'#HelperDivContainer\').hide();" >'; $main_content .= ' <div class="ServiceID_HelperDiv" ></div> </span> </div> <div class="PermanentDeactivated ServiceID_Deactivated_ByChoice" id="ServiceID_NotAllowed_'.$product['id'].'" style="display: none;" > <span class="HelperDivIndicator" onMouseOver="ActivateHelperDiv($(this), \'Service Info:\', \'<p>The product is not available for the selected payment method!</p>\', \'\');" onMouseOut="$(\'#HelperDivContainer\').hide();" > <div class="ServiceID_Deactivated" style="background-image: url('.$layout_name.'/images/payment/serviceid_deactivated.png);" ></div> </span> </div>'; if ((time() - ($config['shop']['newitemdays'] * 86400)) < $product['offer_date']) $main_content .= ' <div class="RibbonNewProduct" style="background-image: url('.$layout_name.'/images/payment/ribbon-new-product.png);"></div> <div class="PermanentDeactivated" > <span class="HelperDivIndicator" onMouseOver="ActivateHelperDiv($(this), \'New Product!\', \'We have a new product for you in store - the <b>'.$product['offer_name'].'</b>.\', \'\');" onMouseOut="$(\'#HelperDivContainer\').hide();" > <div class="ServiceID_HelperDiv" style="z-index: 999;" ></div> </span> </div>'; if ($product['category'] == 4) { $main_content .= ' <div class="ServiceID_Icon_New" id="ServiceID_Icon_New_'.$product['id'].'" style="background-image:url('.$layout_name.'/images/shop/outfits/'.strtolower(str_replace(" ","_",$product['addon_name'])).'_male.gif); background-repeat:no-repeat; margin:5px 0;" ></div> <div class="ServiceID_Icon_New" id="ServiceID_Icon_New_'.$product['id'].'" style="background-image:url('.$layout_name.'/images/shop/outfits/'.strtolower(str_replace(" ","_",$product['addon_name'])).'_female.gif); background-repeat:no-repeat; margin:5px 60px;" ></div>'; } if ($product['category'] == 5) $main_content .= ' <div class="ServiceID_Icon_New" id="ServiceID_Icon_New_'.$product['id'].'" style="background-image:url('.$layout_name.'/images/shop/items/'.$product['itemid'].'.gif); background-repeat:no-repeat; margin:20px 45px;" ></div>'; if ($product['category'] == 3) { $main_content .= ' <div class="ServiceID_Icon_New" id="ServiceID_Icon_New_'.$product['id'].'" style="background-image:url('.$layout_name.'/images/shop/mounts/'.str_replace(" ","_",$product['offer_name']).'.gif); background-repeat:no-repeat; margin:-5px 22px;" ></div>'; } if ($product['category'] == 6) { $main_content .= ' <div class="ServiceID_Icon_New" id="ServiceID_Icon_New_'.$product['id'].'" style="background-image:url('.$layout_name.'/images/shop/points.gif); background-repeat:no-repeat; margin:20px 45px;" ></div>'; } $main_content .= ' <div class="ServiceID_Icon_Selected" id="ServiceID_Icon_Selected_'.$product['id'].'" ></div> <div class="ServiceID_Icon_Over" id="ServiceID_Icon_Over_'.$product['id'].'" ></div>'; $main_content .= ' <div class="ServiceID_Icon_Animation_1" id="ServiceID_Icon_Animation_1_'.$product['id'].'" style="background-image: url('.$layout_name.'/images/shop/items/serviceid_'.$product['id'].'_animation_1.gif);" ></div>'; $main_content .= ' <label for="ServiceID_'.$product['id'].'" > <div class="ServiceIDLabelContainer" > <div class="ServiceIDLabel" > <input type="radio" id="ServiceID_'.$product['id'].'" class="ServiceID" name="ServiceID" value="'.$product['id'].'" /> '.$product['offer_name'].' </div> </div> <div class="ServiceIDPriceContainer" ><span class="ServiceIDPrice" id="PD_'.$product['id'].'" >'.$product['coins'].' Coins</span></div> </label> </div> </div> </div>'; } else { if($serviceCategoryId == 2) $itemName = "Extra Services"; if($serviceCategoryId == 3) $itemName = "Mounts"; if($serviceCategoryId == 4) $itemName = "Outfits"; if($serviceCategoryId == 5) $itemName = "Items"; $main_content .= '<p>None <strong>'.$itemName.'</strong> has been added for sale yet .</p>'; } $main_content .= ' </div> </td> </tr> </table> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr>'; $main_content .= ' <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" > <tr> <td style="text-align: center;" align="center" > <div style="max-height: 240px; overflow-y: auto;" > <div class="PMCID_Icon_Container" id="PMCID_Icon_Container_1" > <div class="PMCID_Icon" id="PMCID_Icon_1" style="background-image:url('.$layout_name.'/images/payment/pmcid_icon_normal.png);" onclick="ChangePMC(1);" onmouseover="MouseOverPMCID(1);" onmouseout="MouseOutPMCID(1);" > <div class="PermanentDeactivated PMCID_Deactivated_ByChoice" id="PMCID_NotAllowed_1" style="display: none;"" > <span class="HelperDivIndicator" onMouseOver="ActivateHelperDiv($(this), \'Payment Method Info:\', \'<p>The payment method is not allowed for the selected service!</p>\', \'\');" onMouseOut="$(\'#HelperDivContainer\').hide();" > <div class="PMCID_Deactivated" style="background-image: url('.$layout_name.'/images/payment/pmcid_deactivated.png);" ></div> </span> </div> <div class="PMCID_Icon_Selected" id="PMCID_Icon_Selected_1" ></div> <div class="PMCID_Icon_Over" id="PMCID_Icon_Over_1" ></div> <span style="position: absolute; left: 125px; top: 53px; z-index: 99;" > <span style="margin-left: 5px; position: absolute; margin-top: 2px;" > <span class="HelperDivIndicator" onMouseOver="ActivateHelperDiv($(this), \'Information:\', \'Tibia Coins can be used to purchase addons, mounts, items and extra services.\', \'\');" onMouseOut="$(\'#HelperDivContainer\').hide();" > <image style="border:0px;" src="'.$layout_name.'/images/global/content/info.gif" /> </span> </span> </span> <img class="PMCID_CP_Icon" src="'.$layout_name.'/images/payment/points.gif" /> <div class="PMCID_CP_Label" > <input type="radio" id="PMCID_1" name="PMCID" value="1"> <label for="PMCID_1" >Points</label> </div> </div> </div> </div> </td> </tr> </table> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr>'; $main_content .= ' </table> </div> </td> </tr> </table> </div>'; #next and back buttons $main_content .= ' <div class="SubmitButtonRow" > <div class="LeftButton" > <input type="hidden" name="ServiceCategoryID" value="'.$serviceCategoryId.'"> <input type="hidden" name="step" value="2"> <div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_green.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_green_over.gif);" ></div> <input id="sendService" class="ButtonText" type="image" name=s"Next" alt="Next" src="'.$layout_name.'/images/global/buttons/_sbutton_next.gif" > </div> </div> </div> </form> <div class="RightButton" > <form action="?subtopic=accountmanagement&action=manage" method="post" style="padding:0px;margin:0px;" > <div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_red.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_red_over.gif);" ></div> <input class="ButtonText" type="image" name="Cancel" alt="Cancel" src="'.$layout_name.'/images/global/buttons/_sbutton_cancel.gif" > </div> </div> </form> </div> </div>'; } if($step == 2) { $serviceCategoryID = (int) $_REQUEST['ServiceCategoryID']; $payment_method = (int) $_REQUEST['PMCID']; $service_id = (int) $_REQUEST['ServiceID']; if($service_id == 1) $services_errors[] = "You need to select a valid service you wish to purchase."; if($payment_method == 0) $services_errors[] = "You must select a valid payment method to purchase the service."; if(empty($services_errors)) { $shop_offer = $SQL->query("SELECT * FROM `z_shop_offer` WHERE `id` = '$service_id'")->fetch(); $service_price = $shop_offer['price']; $service_points = $shop_offer['coins']; $service_name = $shop_offer['offer_name']; if($account_logged->getPremiumPoints() < $service_points) $services_errors[] = "You need at least ".$service_points." tibia coins to purchase the ".$service_name."."; } if(empty($services_errors)) if($account_logged->getKey() == "") $services_errors[] = "Your account has not yet been registered, you need to register to buy on ".$config['server']['serverName']." Shop."; if(empty($services_errors)) { $main_content .= ' <form method="post" action="?subtopic=accountmanagement&action=services"> <div class="TableContainer" > <table class="Table5" cellpadding="0" cellspacing="0"> <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <div class="Text" >'.$service.'</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;" > <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" > <tr><td class="LabelV">Send to my account <input type="radio" name="sendTo" value="me" checked></td></tr> <tr> <td class="LabelV">Send to my friend <input type="radio" name="sendTo" value="friend" onBlur="showSelect()"> <select name="selectFriend"> <option value="">Select a Friend</option>'; $get_friends = $SQL->query("SELECT * FROM `account_viplist` WHERE `account_id` = '".$account_logged->getID()."'")->fetchAll(); foreach($get_friends as $fID) { $friend = new Player(); $friend->loadById($fID['player_id']); $main_content .= '<option value="'.$friend->getName().'">'.$friend->getName().'</option>'; } $main_content .= ' </select> </td> </tr> </table> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> <tr> <td>The friend list above is according to your vip list in-game.</td> </tr> </table> </div> </td> </tr> </table> </div> <div class="SubmitButtonRow" > <div class="LeftButton" > <input type="hidden" name="ServiceCategoryID" value="'.$serviceCategoryID.'"> <input type="hidden" name="PMCID" value="'.$payment_method.'"> <input type="hidden" name="ServiceID" value="'.$service_id.'"> <input type="hidden" name="step" value="3"> <div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_green.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_green_over.gif);" ></div> <input class="ButtonText" type="image" name="Next" alt="Next" src="'.$layout_name.'/images/global/buttons/_sbutton_next.gif" > </div> </div> </div> </form> <div class="RightButton" > <form method="post" action="?subtopic=accountmanagement&action=services" > <input type="hidden" name="ServiceCategoryID" value="'.$serviceCategoryID.'" /> <input type="hidden" name="step" value="1"> <div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_over.gif);" ></div> <input class="ButtonText" type="image" name="Previous" alt="Previous" src="'.$layout_name.'/images/global/buttons/_sbutton_previous.gif" > </div> </div> </form> </div> </div>'; } if(!empty($services_errors)) { $main_content .= ' <div class="TableContainer" > <table class="Table1" cellpadding="0" cellspacing="0" > <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <div class="Text" >Services Page Errors</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer" > <table style="width:100%;" > <tr> <td>'; foreach($services_errors as $service_error) $main_content .= $service_error . '<br>'; $main_content .= ' </td> </tr> </table> </div> </td> </tr> </table> </div><BR> <TABLE BORDER=0 WIDTH=100%> <TR> <TD ALIGN=center> <table border="0" cellspacing="0" cellpadding="0" > <form action="?subtopic=accountmanagement&action=services" method="post"> <input type="hidden" name="ServiceCategoryID" value="'.$serviceCategoryID.'" /> <input type="hidden" name="step" value="1"> <tr> <td style="border:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_over.gif);" ></div> <input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/global/buttons/_sbutton_back.gif" > </div> </div> </td> </tr> </form> </table> </TD> </TR> </TABLE>'; } } if($step == 3) { $serviceCategoryID = (int) $_REQUEST['ServiceCategoryID']; $payment_method = (int) $_REQUEST['PMCID']; $service_id = (int) $_REQUEST['ServiceID']; $sendTo = $_REQUEST['sendTo']; if($sendTo == "friend") $friend_name = $_REQUEST['selectFriend']; if($sendTo == "friend" && $_REQUEST['selectFriend'] == "") $services_errors[] = "You need to select a friend to send this service."; $service_info = $SQL->query("SELECT * FROM `z_shop_offer` WHERE `id` = '$service_id'")->fetch(); if(empty($services_errors)) { $main_content .= ' <div class="TableContainer" > <table class="Table5" cellpadding="0" cellspacing="0"> <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <div class="Text" >'.$service.'</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;" > <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" > <tr> <td class="LabelV200" >Service</td> <td>' . $service_info['offer_name'] . '</td> </tr>'; $main_content .= ' <tr> <td class="LabelV200" >Coins</td> <td>' . $service_info['coins'] . ' Tibia Coins</td> </tr>'; $main_content .= ' </table> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" > <tr> <td class="LabelV200" >Payment Method</td> <td>Tibia Coins</td> </tr>'; if($sendTo == "friend") $main_content .= ' <tr> <td class="LabelV200" >Sendo to:</td> <td>' . $friend_name . '</td> </tr>'; $main_content .= ' </table> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" > <form method="post" action="?subtopic=accountmanagement&action=services" > <tr> <td colspan="2" > <input type="checkbox" name="RulesAccept" value="1" id="AgreementsCheckbox" /> <span> <Label for="AgreementsCheckbox" >I have read and I agree to the <a href="#" target="_blank" >' . $config['server']['serverName'] . ' Rules</a>.</label> </span> </td> </tr> </table> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> </table> </div> </td> </tr> </table> </div>'; $main_content .= ' <div class="SubmitButtonRow" > <div class="LeftButton" > <input type="hidden" name="ServiceID" value="' . $service_id . '" > <input type="hidden" name="PMCID" value="' . $payment_method . '" > <input type="hidden" name="ServiceCategoryID" value="' . $serviceCategoryID . '" > <input type="hidden" name="Points" value="' . $service_info['coins'] . '" /> <input type="hidden" name="selectFriend" value="'.$friend_name.'"> <input type="hidden" name="sendTo" value="'.$sendTo.'"> <input type="hidden" name="step" value="4" > <div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_green.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_green_over.gif);" ></div> <input class="ButtonText" type="image" name="BuyNow" alt="BuyNow" src="'.$layout_name.'/images/global/buttons/_sbutton_buynow.gif" > </div> </div> </div> </form> <div class="RightButton" > <form method="post" action="?subtopic=accountmanagement&action=services" > <input type="hidden" name="ServiceCategoryID" value="' . $serviceCategoryID . '" > <input type="hidden" name="ServiceID" value="' . $service_id . '" > <input type="hidden" name="PMCID" value="' . $payment_method . '" > <input type="hidden" name="step" value="2" > <div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_over.gif);" ></div> <input class="ButtonText" type="image" name="Previous" alt="Previous" src="'.$layout_name.'/images/global/buttons/_sbutton_previous.gif" > </div> </div> </form> </div> </div>'; } else { $main_content .= ' <div class="TableContainer" > <table class="Table1" cellpadding="0" cellspacing="0" > <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <div class="Text" >Services Page Errors</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer" > <table style="width:100%;" > <tr> <td>'; foreach($services_errors as $service_error) $main_content .= $service_error . '<br>'; $main_content .= ' </td> </tr> </table> </div> </td> </tr> </table> </div><BR> <TABLE BORDER=0 WIDTH=100%> <TR> <TD ALIGN=center> <table border="0" cellspacing="0" cellpadding="0" > <form action="?subtopic=accountmanagement&action=services" method="post"> <input type="hidden" name="ServiceID" value="' . $service_id . '" > <input type="hidden" name="PMCID" value="' . $payment_method . '" > <input type="hidden" name="ServiceCategoryID" value="'.$serviceCategoryID.'" /> <input type="hidden" name="selectFriend" value="'.$friend_name.'"> <input type="hidden" name="sendTo" value="'.$sendTo.'"> <input type="hidden" name="step" value="2"> <tr> <td style="border:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_over.gif);" ></div> <input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/global/buttons/_sbutton_back.gif" > </div> </div> </td> </tr> </form> </table> </TD> </TR> </TABLE>'; } } if($step == 4) { $serviceCategoryID = (int) $_REQUEST['ServiceCategoryID']; $payment_method = (int) $_REQUEST['PMCID']; $service_id = (int) $_REQUEST['ServiceID']; $service_info = $SQL->query("SELECT * FROM `z_shop_offer` WHERE `id` = '$service_id'")->fetch(); $sendTo = $_REQUEST['sendTo']; $sendFriend = $_REQUEST['selectFriend']; $friendInfo = new Player(); $friendInfo->find($sendFriend); if($sendTo == "friend" && !$friendInfo->isLoaded()) $services_errors[] = "The friend to whom you want to send the gift does not exist."; $service_points = $service_info['coins']; $debitPoints = $account_logged->getPremiumPoints() - $service_points; $rules_accept = (int) $_REQUEST['RulesAccept']; $orderDate = time(); $account_name = $account_logged->getName(); $friend_acc = $friendInfo->getAccount()->getName(); if($account_logged->getPremiumPoints() < $service_points) $services_errors[] = "You need at least ".$service_points." tibia coins to purchase it."; if($rules_accept == 0) $services_errors[] = "You have to accept the ".$config['server']['serverName']." Rules."; if(empty($services_errors)) { if( $_SERVER['REQUEST_METHOD']=='POST' ) { $hash = md5( implode( $_POST ) ); if( isset( $_SESSION['hash'] ) && $_SESSION['hash'] == $hash ) { // Refresh! Não faz nada ou re-exibe o formulário preenchido } else { $_SESSION['hash'] = $request; if($sendTo == "friend") { $add_order = $SQL->query("INSERT INTO `z_shop_payment` (`account_name`,`service_id`,`service_category_id`,`payment_method_id`,`coins`,`status`,`date`,`gift`) VALUES ('$account_name','$service_id','$serviceCategoryID','$payment_method','$service_points','gift','$orderDate','0')"); $add_friend = $SQL->query("INSERT INTO `z_shop_payment` (`account_name`,`service_id`,`service_category_id`,`payment_method_id`,`coins`,`status`,`date`,`gift`) VALUES ('$friend_acc','$service_id','$serviceCategoryID','$payment_method','$service_points','ready','$orderDate','1')"); } else { $add_order = $SQL->query("INSERT INTO `z_shop_payment` (`account_name`,`service_id`,`service_category_id`,`payment_method_id`,`coins`,`status`,`date`,`gift`) VALUES ('$account_name','$service_id','$serviceCategoryID','$payment_method','$service_points','ready','$orderDate','0')"); } $account_logged->setPremiumPoints($debitPoints); $account_logged->save(); } } } if(empty($services_errors)) { $main_content .= ' <div class="TableContainer" > <table class="Table5" cellpadding="0" cellspacing="0"> <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <div class="Text" >'.$service.'</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;" > <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" > <tr>'; if($sendTo == "friend") $main_content .= ' <td>Thank you for your order. The '.$service_info['offer_name'].' been sent to your friend successfully.</td>'; else $main_content .= ' <td>Thank you for your order. The '.$service_info['offer_name'].' is available for you to choose the character which will activate . Simply access your available products and activate.</td>'; $main_content .= ' </tr> </table> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> </table> </div> </td> </tr> </table> </div> <TABLE width="100%"> <tr align="center"> <td> <form action="?subtopic=accountmanagement&action=manage" method="post" style="padding:0px;margin:0px;" > <div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_over.gif);" ></div> <input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/global/buttons/_sbutton_back.gif" > </div> </div> </form> </td> </tr> </TABLE>'; } if(!empty($services_errors)) { $main_content .= ' <div class="TableContainer" > <table class="Table1" cellpadding="0" cellspacing="0" > <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <div class="Text" >Services Page Errors</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer" > <table style="width:100%;" > <tr> <td>'; foreach($services_errors as $service_error) $main_content .= $service_error . '<br>'; $main_content .= ' </td> </tr> </table> </div> </td> </tr> </table> </div><BR> <TABLE BORDER=0 WIDTH=100%> <TR> <TD ALIGN=center> <table border="0" cellspacing="0" cellpadding="0" > <form action="?subtopic=accountmanagement&action=services" method="post"> <input type="hidden" name="ServiceID" value="' . $_REQUEST['ServiceID'] . '" /> <input type="hidden" name="PMCID" value="' . $_REQUEST['PMCID'] . '" /> <input type="hidden" name="ServiceCategoryID" value="' . $_REQUEST['ServiceCategoryID'] . '" /> <input type="hidden" name="Price" value="' . $_REQUEST['Price'] . '" /> <input type="hidden" name="selectFriend" value="'.$sendFriend.'"> <input type="hidden" name="sendTo" value="'.$sendTo.'"> <input type="hidden" name="step" value="3"> <tr> <td style="border:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_over.gif);" ></div> <input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/global/buttons/_sbutton_back.gif" > </div> </div> </td> </tr> </form> </table> </TD> </TR> </TABLE>'; } }
-
Database Gesior Ferobra
Alguém tem uma Database compatível com o Gesior The Real Gesior Ferobra pra disponibilizar??? Pois todas que eu testei o Shop fica bugado!!!! plsssssssssssss!!!!!!!!
-
Exp stage
Boa tarde, estou tentando colocar exp abaixo de 1x em meu server, porém quando coloco, por exemplo, 0.5x o player não ganha exp. Alguém sabe o que pode ser? Uso TFS 1.3 <?xml version="1.0" encoding="UTF-8"?> <stages> <config enabled="1" /> <stage minlevel="8" maxlevel="100" multiplier="50" /> <stage minlevel="101" maxlevel="150" multiplier="40" /> <stage minlevel="151" maxlevel="160" multiplier="30" /> <stage minlevel="161" maxlevel="170" multiplier="20" /> <stage minlevel="171" maxlevel="180" multiplier="10" /> <stage minlevel="181" maxlevel="190" multiplier="5" /> <stage minlevel="191" maxlevel="200" multiplier="3" /> <stage minlevel="201" maxlevel="300" multiplier="1" /> <stage minlevel="301" multiplier="0.5" /> </stages>
-
(Resolvido)Por que não remove a assassin star do inventario
Perdão é em weapons.xml <distance id="7368" breakchance="33" unproperly="1" level="80" />
-
(Resolvido)Por que não remove a assassin star do inventario
Isso é em weapons.xml <distance id="7368" breakchance="33" unproperly="1" level="80" />
-
Erro Shop Gesior
Salve galera do TK, estou com um erro no gesior que não faço ideia de como resolver. Eu adicionei 2 itens no shop e quando clico pra selecionar um deles, seleciona apenas o primeiro item, o segundo não consigo. E mesmo com o primeiro item selecionado aparece o seguinte erro: You need to select a valid service you wish to purchase. Alguém tem ideia de onde arruma isso? Bom, fuçando aqui eu acredito que o problema está em htdocs/pages/accountmanagement/shop.php <?php if(!defined('INITIALIZED')) exit; $main_content .= ' <script type="text/javascript" > g_Deactivated = true; </script>'; $services_errors = array(); if (!isset($_REQUEST['ServiceCategoryID'])) header("Location: ?subtopic=accountmanagement&action=manage"); else $serviceCategoryId = $_REQUEST['ServiceCategoryID']; if (isset($_REQUEST['step'])) $step = (int) $_REQUEST['step']; else $step = 1; switch($step) { case 2: $service = "Enter payment data"; break; case 3: $service = "Confirm your order"; break; case 4: $service = "Summary"; break; default: $service = "Select service"; } //Progress Bar #js part $get_Services = $SQL->query("SELECT * FROM `z_shop_offer` WHERE `category` = '$serviceCategoryId'")->fetchAll(); $g_Services = '['; #start foreach($get_Services as $g_Ser) { $g_Services .= $g_Ser['id'].','; #repeat items } $g_Services = substr($g_Services,0,-1); #cut $g_Services .= ']'; $g_Prices = '{'; foreach($get_Services as $g_Ser) { $g_Prices .= '"'.$g_Ser['id'].'":{'; $g_Prices .= '"1":"'.$g_Ser['coins'].'"'; $g_Prices .= '},'; } $g_Prices = substr($g_Prices,0,-1); $g_Prices.= '};'; $main_content .= ' <script> $(document).ready(function() { ChangePMC(1); ChangeService(8,2); }); var g_Services = '.$g_Services.'; var g_PaymentMethodCategories = {1:1}; var g_Prices = '.$g_Prices.' var g_QF_Mounts_ServiceCategoryID = 15; var g_QF_Outfits_ServiceCategoryID = 17; function ChangeService(a_ServiceID, a_ServiceCategoryID) { // set the ServiceID for the change country form $(\'#ServiceID\').val(a_ServiceID); $(\'#ServiceID\').attr(\'name\', \'InitialServiceID\'); // activate the radio button itself and set the price $(\'#ServiceID_\' + a_ServiceID).attr(\'checked\', \'checked\'); $(\'.ServiceID_Icon_Container\').css(\'background-color\', \'\'); // handle mounts if (a_ServiceCategoryID == g_QF_Mounts_ServiceCategoryID || a_ServiceCategoryID == g_QF_Outfits_ServiceCategoryID) { $(\'.ServiceID_Icon_Animation_1\').hide(); $(\'.ServiceID_Icon_New_Animation_1\').hide(); $(\'.ServiceID_Icon_New\').show(); $(\'#ServiceID_Icon_Animation_1_\' + a_ServiceID).show(); $(\'#ServiceID_Icon_New_\' + a_ServiceID).hide(); } // handle payment methods for (var i = 0; i < g_PaymentMethodCategories.length; i++) { if (typeof g_Prices[a_ServiceID] !== \'undefined\') { if (typeof g_Prices[a_ServiceID][g_PaymentMethodCategories[i]] === \'undefined\') { // deactivate the payment method // note: the radio button can not be disabled or we will receive the wrong error message $(\'#PMCID_NotAllowed_\' + g_PaymentMethodCategories[i]).show(); } else { // activate the payment method $(\'#PMCID_NotAllowed_\' + g_PaymentMethodCategories[i]).hide(); } } } // activate and mark the selected icon $(\'.ServiceID_Icon_Selected\').css(\'background-image\', \'\'); $(\'#ServiceID_Icon_Selected_\' + a_ServiceID).css(\'background-image\', \'url(\' + JS_DIR_IMAGES + \'payment/serviceid_icon_selected.png)\'); return; } function ChangePMC(a_PaymentMethodID) { // set the PMCID for the change country form $(\'#PMCID\').val(a_PaymentMethodID); $(\'#PMCID\').attr(\'name\', \'InitialPMCID\'); // activate the radio button $(\'#PMCID_\' + a_PaymentMethodID).attr(\'checked\', \'checked\'); $(\'.PMCID_Icon_Container\').css(\'background-color\', \'\'); // handle services for (var i = 0; i < g_Services.length; i++) { if (typeof g_Prices[g_Services[i]] !== \'undefined\') { if (typeof g_Prices[g_Services[i]][a_PaymentMethodID] === \'undefined\') { // deactivate the service // note: the radio button can not be disabled or we will receive the wrong error message $(\'#ServiceID_NotAllowed_\' + g_Services[i]).show(); // set the price $(\'#PD_\' + g_Services[i]).html(\'---\'); $(\'#ServiceID_\' + g_Services[i]).val(\'0\'); } else { // activate the service // set the price $(\'#PD_\' + g_Services[i]).html(g_Prices[g_Services[i]][a_PaymentMethodID] + \' Coins\'); $(\'#ServiceID_NotAllowed_\' + g_Services[i]).hide(); } } } // activate and mark the selected icon $(\'.PMCID_Icon_Selected\').css(\'background-image\', \'\'); $(\'#PMCID_Icon_Selected_\' + a_PaymentMethodID).css(\'background-image\', \'url(\' + JS_DIR_IMAGES + \'payment/pmcid_icon_selected.png)\'); return; } // mouse over effect for payment methods function MouseOverPMCID(a_PMCID) { $(\'#PMCID_Icon_Over_\' + a_PMCID).css(\'background-image\', \'url(\' + JS_DIR_IMAGES + \'payment/pmcid_icon_over.png)\'); } // mouse out effect for payment methods function MouseOutPMCID(a_PMCID) { $(\'#PMCID_Icon_Over_\' + a_PMCID).css(\'background-image\', \'\'); } // mouse over effect for products function MouseOverServiceID(a_ServiceID, a_ServiceCategoryID) { $(\'#ServiceID_Icon_Over_\' + a_ServiceID).css(\'background-image\', \'url(\' + JS_DIR_IMAGES + \'payment/serviceid_icon_over.png)\'); if (a_ServiceCategoryID == g_QF_Mounts_ServiceCategoryID || a_ServiceCategoryID == g_QF_Outfits_ServiceCategoryID) { $(\'#ServiceID_Icon_Animation_1_\' + a_ServiceID).show(); $(\'#ServiceID_Icon_New_\' + a_ServiceID).hide(); } } // mouse out effect for products function MouseOutServiceID(a_ServiceID, a_ServiceCategoryID) { $(\'#ServiceID_Icon_Over_\' + a_ServiceID).css(\'background-image\', \'\'); // mounts have an animation if ((a_ServiceCategoryID == g_QF_Mounts_ServiceCategoryID || a_ServiceCategoryID == g_QF_Outfits_ServiceCategoryID) && ($(\'#ServiceID_\' + a_ServiceID).attr(\'checked\') != \'checked\')) { $(\'#ServiceID_Icon_Animation_1_\' + a_ServiceID).hide(); $(\'#ServiceID_Icon_New_\' + a_ServiceID).show(); } } </script>'; $main_content .= ' <div id="ProgressBar"> <div id="MainContainer"> <div id="BackgroundContainer"> <img id="BackgroundContainerLeftEnd" src="'.$layout_name.'/images/global/content/stonebar-left-end.gif" /> <div id="BackgroundContainerCenter"> <div id="BackgroundContainerCenterImage" style="background-image:url('.$layout_name.'/images/global/content/stonebar-center.gif);" /> </div> </div> <img id="BackgroundContainerRightEnd" src="'.$layout_name.'/images/global/content/stonebar-right-end.gif" /> </div> <img id="TubeLeftEnd" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-left-green.gif" /> <img id="TubeRightEnd" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-right-'.(($step == 4) ? 'green' : 'blue').'.gif" /> <div id="FirstStep" class="Steps" > <div class="SingleStepContainer" > <img class="StepIcon" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-icon-1-green.gif" /> <div class="StepText" style="font-weight:'.((!isset($step) || $step == 1) ? 'bold' : 'normal').';" >Select service</div> </div> </div> <div id="StepsContainer1" > <div id="StepsContainer2" > <div class="Steps" style="width:33%" > <div class="TubeContainer" > <img class="Tube" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-'.((!isset($step) || $step == 1) ? 'green-blue' : 'green').'.gif" /> </div> <div class="SingleStepContainer" > <img class="StepIcon" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-icon-2-'.(($step >= 2) ? 'green' : 'blue').'.gif" /> <div class="StepText" style="font-weight:'.(($step == 2) ? 'bold' : 'normal').';" >Enter payment data</div> </div> </div> <div class="Steps" style="width:33%" > <div class="TubeContainer" >'; if ($step == 2) { $main_content .= ' <img class="Tube" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-green-blue.gif" />'; }elseif ($step >= 3) { $main_content .= ' <img class="Tube" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-green.gif" />'; }else{ $main_content .= ' <img class="Tube" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-blue.gif" />'; } $main_content .= ' </div> <div class="SingleStepContainer" > <img class="StepIcon" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-icon-3-'.(($step >= 3) ? 'green' : 'blue').'.gif" /> <div class="StepText" style="font-weight:'.(($step == 3) ? 'bold' : 'normal').';" >Confirm your order</div> </div> </div> <div class="Steps" style="width:33%" > <div class="TubeContainer" > '; if ($step == 3) { $main_content .= ' <img class="Tube" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-green-blue.gif" />'; }elseif ($step >= 4) { $main_content .= ' <img class="Tube" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-green.gif" />'; }else{ $main_content .= ' <img class="Tube" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-tube-blue.gif" />'; } $main_content .= ' </div> <div class="SingleStepContainer" > <img class="StepIcon" src="'.$layout_name.'/images/global/content/progressbar/progress-bar-icon-4-'.(($step == 4) ? 'green' : 'blue').'.gif" /> <div class="StepText" style="font-weight:'.(($step == 4) ? 'bold' : 'normal').';" >Summary</div> </div> </div> </div> </div> </div> </div>'; #progress bar end if ($step == 1) { $doubleStatus = $SQL->query("SELECT `value` FROM `server_config` WHERE `config` = 'double'")->fetch(); $main_content .= ' <style> .ribbonShop-double { background:url('.$layout_name.'/images/shop/ribbon-double.png) no-repeat; width: 80px; height: 80px; position:absolute; right: -5px; top: -5px; z-index:999; } </style>'; $main_content .= ' <form method="post" action="?subtopic=accountmanagement&action=services"> <div class="TableContainer" style="position:relative;"> '.(($doubleStatus['value'] == "active") ? '<div class="ribbonShop-double"></div>' : '').' <table class="Table5" cellpadding="0" cellspacing="0"> <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <div class="Text" >'.$service.'</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;" >'; #menu $main_content .= ' <tr> <td>'; $getCat = $SQL->query("SELECT * FROM `z_shop_category` WHERE `hide` = 0 ORDER BY `id` ASC")->fetchAll(); foreach($getCat as $category) { $main_content .= ' <span class="HelperDivIndicator" onMouseOver="ActivateHelperDiv($(this), \''.$category['name'].'\', \''.$category['desc'].'\', \'ProductCategoryHelperDiv_'.$category['id'].'\');" onMouseOut="$(\'#HelperDivContainer\').hide();" > <div class="InnerTableTab '.(($serviceCategoryId == $category['id']) ? 'ActiveInnerTableTab' : '').'"> <div id="ProductCategoryHelperDiv_'.$category['id'].'" class="ProductCategoryHelperDiv" ></div> <a href="?subtopic=accountmanagement&action=services&ServiceCategoryID='.$category['id'].'&step='.$step.'"> <img src="'.$layout_name.'/images/payment/products_tab_'.(($serviceCategoryId == $category['id']) ? '' : 'non').'active.png" /> <div class="InnerTableTabLabel" >'.$category['name'].'</div>'; $newCategory = $category['id']; $getNews = $SQL->query("SELECT `offer_date` FROM `z_shop_offer` WHERE `category` = '$newCategory' ORDER BY `offer_date` DESC LIMIT 1")->fetch(); if ((time() - ($config['shop']['newitemdays'] * 86400)) < $getNews['offer_date']) $main_content .= '<div class="RibbonNewProduct" style="background-image: url('.$layout_name.'/images/payment/ribbon-tab-new-product'.(($serviceCategoryId == $category['id']) ? '_active' : '').'.png);" ></div>'; $main_content .= ' </a> </div> </span>'; } $main_content .= ' </td> </tr>'; #services $main_content .= ' <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" > <tr> <td style="text-align: center;" align="center" > <div style="max-height: 500px; min-height: 100px; overflow-y: auto;">'; $getProducts = $SQL->query("SELECT * FROM `z_shop_offer` WHERE `category` = '$serviceCategoryId' AND `hide` = 0 ORDER BY `offer_date` DESC")->fetchAll(); if (count($getProducts) >= 1) foreach($getProducts as $product) { $main_content .= ' <div class="ServiceID_Icon_Container" id="ServiceID_Icon_Container_'.$product['id'].'"> <div class="ServiceID_Icon_Container_Background" id="" style="background-image:url('.$layout_name.'/images/payment/serviceid_icon_normal.png);" > <div class="ServiceID_Icon" id="ServiceID_Icon_'.$product['id'].'" '.(($product['category'] == 2) ? 'style="background-image:url('.$layout_name.'/images/payment/'.$product['default_image'].');"' : '').' onclick="ChangeService('.$product['id'].', '.$product['category'].');" onmouseover="MouseOverServiceID('.$product['id'].', '.$product['category'].');" onmouseout="MouseOutServiceID('.$product['id'].', '.$product['category'].');" > <div class="PermanentDeactivated" >'; if(!empty($product['offer_description'])) $main_content .= ' <span class="HelperDivIndicator" onMouseOver="ActivateHelperDiv($(this), \''.$product['offer_name'].'\', \''.$product['offer_description'].'\', \'\');" onMouseOut="$(\'#HelperDivContainer\').hide();" >'; $main_content .= ' <div class="ServiceID_HelperDiv" ></div> </span> </div> <div class="PermanentDeactivated ServiceID_Deactivated_ByChoice" id="ServiceID_NotAllowed_'.$product['id'].'" style="display: none;" > <span class="HelperDivIndicator" onMouseOver="ActivateHelperDiv($(this), \'Service Info:\', \'<p>The product is not available for the selected payment method!</p>\', \'\');" onMouseOut="$(\'#HelperDivContainer\').hide();" > <div class="ServiceID_Deactivated" style="background-image: url('.$layout_name.'/images/payment/serviceid_deactivated.png);" ></div> </span> </div>'; if ((time() - ($config['shop']['newitemdays'] * 86400)) < $product['offer_date']) $main_content .= ' <div class="RibbonNewProduct" style="background-image: url('.$layout_name.'/images/payment/ribbon-new-product.png);"></div> <div class="PermanentDeactivated" > <span class="HelperDivIndicator" onMouseOver="ActivateHelperDiv($(this), \'New Product!\', \'We have a new product for you in store - the <b>'.$product['offer_name'].'</b>.\', \'\');" onMouseOut="$(\'#HelperDivContainer\').hide();" > <div class="ServiceID_HelperDiv" style="z-index: 999;" ></div> </span> </div>'; if ($product['category'] == 4) { $main_content .= ' <div class="ServiceID_Icon_New" id="ServiceID_Icon_New_'.$product['id'].'" style="background-image:url('.$layout_name.'/images/shop/outfits/'.strtolower(str_replace(" ","_",$product['addon_name'])).'_male.gif); background-repeat:no-repeat; margin:5px 0;" ></div> <div class="ServiceID_Icon_New" id="ServiceID_Icon_New_'.$product['id'].'" style="background-image:url('.$layout_name.'/images/shop/outfits/'.strtolower(str_replace(" ","_",$product['addon_name'])).'_female.gif); background-repeat:no-repeat; margin:5px 60px;" ></div>'; } if ($product['category'] == 5) $main_content .= ' <div class="ServiceID_Icon_New" id="ServiceID_Icon_New_'.$product['id'].'" style="background-image:url('.$layout_name.'/images/shop/items/'.$product['itemid'].'.gif); background-repeat:no-repeat; margin:20px 45px;" ></div>'; if ($product['category'] == 3) { $main_content .= ' <div class="ServiceID_Icon_New" id="ServiceID_Icon_New_'.$product['id'].'" style="background-image:url('.$layout_name.'/images/shop/mounts/'.str_replace(" ","_",$product['offer_name']).'.gif); background-repeat:no-repeat; margin:-5px 22px;" ></div>'; } if ($product['category'] == 6) { $main_content .= ' <div class="ServiceID_Icon_New" id="ServiceID_Icon_New_'.$product['id'].'" style="background-image:url('.$layout_name.'/images/shop/points.gif); background-repeat:no-repeat; margin:20px 45px;" ></div>'; } $main_content .= ' <div class="ServiceID_Icon_Selected" id="ServiceID_Icon_Selected_'.$product['id'].'" ></div> <div class="ServiceID_Icon_Over" id="ServiceID_Icon_Over_'.$product['id'].'" ></div>'; $main_content .= ' <div class="ServiceID_Icon_Animation_1" id="ServiceID_Icon_Animation_1_'.$product['id'].'" style="background-image: url('.$layout_name.'/images/shop/items/serviceid_'.$product['id'].'_animation_1.gif);" ></div>'; $main_content .= ' <label for="ServiceID_'.$product['id'].'" > <div class="ServiceIDLabelContainer" > <div class="ServiceIDLabel" > <input type="radio" id="ServiceID_'.$product['id'].'" class="ServiceID" name="ServiceID" value="'.$product['id'].'" /> '.$product['offer_name'].' </div> </div> <div class="ServiceIDPriceContainer" ><span class="ServiceIDPrice" id="PD_'.$product['id'].'" >'.$product['coins'].' Coins</span></div> </label> </div> </div> </div>'; } else { if($serviceCategoryId == 2) $itemName = "Extra Services"; if($serviceCategoryId == 3) $itemName = "Mounts"; if($serviceCategoryId == 4) $itemName = "Outfits"; if($serviceCategoryId == 5) $itemName = "Items"; $main_content .= '<p>None <strong>'.$itemName.'</strong> has been added for sale yet .</p>'; } $main_content .= ' </div> </td> </tr> </table> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr>'; $main_content .= ' <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" > <tr> <td style="text-align: center;" align="center" > <div style="max-height: 240px; overflow-y: auto;" > <div class="PMCID_Icon_Container" id="PMCID_Icon_Container_1" > <div class="PMCID_Icon" id="PMCID_Icon_1" style="background-image:url('.$layout_name.'/images/payment/pmcid_icon_normal.png);" onclick="ChangePMC(1);" onmouseover="MouseOverPMCID(1);" onmouseout="MouseOutPMCID(1);" > <div class="PermanentDeactivated PMCID_Deactivated_ByChoice" id="PMCID_NotAllowed_1" style="display: none;"" > <span class="HelperDivIndicator" onMouseOver="ActivateHelperDiv($(this), \'Payment Method Info:\', \'<p>The payment method is not allowed for the selected service!</p>\', \'\');" onMouseOut="$(\'#HelperDivContainer\').hide();" > <div class="PMCID_Deactivated" style="background-image: url('.$layout_name.'/images/payment/pmcid_deactivated.png);" ></div> </span> </div> <div class="PMCID_Icon_Selected" id="PMCID_Icon_Selected_1" ></div> <div class="PMCID_Icon_Over" id="PMCID_Icon_Over_1" ></div> <span style="position: absolute; left: 125px; top: 53px; z-index: 99;" > <span style="margin-left: 5px; position: absolute; margin-top: 2px;" > <span class="HelperDivIndicator" onMouseOver="ActivateHelperDiv($(this), \'Information:\', \'Tibia Coins can be used to purchase addons, mounts, items and extra services.\', \'\');" onMouseOut="$(\'#HelperDivContainer\').hide();" > <image style="border:0px;" src="'.$layout_name.'/images/global/content/info.gif" /> </span> </span> </span> <img class="PMCID_CP_Icon" src="'.$layout_name.'/images/payment/points.gif" /> <div class="PMCID_CP_Label" > <input type="radio" id="PMCID_1" name="PMCID" value="1"> <label for="PMCID_1" >Points</label> </div> </div> </div> </div> </td> </tr> </table> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr>'; $main_content .= ' </table> </div> </td> </tr> </table> </div>'; #next and back buttons $main_content .= ' <div class="SubmitButtonRow" > <div class="LeftButton" > <input type="hidden" name="ServiceCategoryID" value="'.$serviceCategoryId.'"> <input type="hidden" name="step" value="2"> <div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_green.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_green_over.gif);" ></div> <input id="sendService" class="ButtonText" type="image" name=s"Next" alt="Next" src="'.$layout_name.'/images/global/buttons/_sbutton_next.gif" > </div> </div> </div> </form> <div class="RightButton" > <form action="?subtopic=accountmanagement&action=manage" method="post" style="padding:0px;margin:0px;" > <div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_red.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_red_over.gif);" ></div> <input class="ButtonText" type="image" name="Cancel" alt="Cancel" src="'.$layout_name.'/images/global/buttons/_sbutton_cancel.gif" > </div> </div> </form> </div> </div>'; } if($step == 2) { $serviceCategoryID = (int) $_REQUEST['ServiceCategoryID']; $payment_method = (int) $_REQUEST['PMCID']; $service_id = (int) $_REQUEST['ServiceID']; if($service_id == 0) $services_errors[] = "You need to select a valid service you wish to purchase."; if($payment_method == 0) $services_errors[] = "You must select a valid payment method to purchase the service."; if(empty($services_errors)) { $shop_offer = $SQL->query("SELECT * FROM `z_shop_offer` WHERE `id` = '$service_id'")->fetch(); $service_price = $shop_offer['price']; $service_points = $shop_offer['coins']; $service_name = $shop_offer['offer_name']; if($account_logged->getPremiumPoints() < $service_points) $services_errors[] = "You need at least ".$service_points." tibia coins to purchase the ".$service_name."."; } if(empty($services_errors)) if($account_logged->getKey() == "") $services_errors[] = "Your account has not yet been registered, you need to register to buy on ".$config['server']['serverName']." Shop."; if(empty($services_errors)) { $main_content .= ' <form method="post" action="?subtopic=accountmanagement&action=services"> <div class="TableContainer" > <table class="Table5" cellpadding="0" cellspacing="0"> <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <div class="Text" >'.$service.'</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;" > <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" > <tr><td class="LabelV">Send to my account <input type="radio" name="sendTo" value="me" checked></td></tr> <tr> <td class="LabelV">Send to my friend <input type="radio" name="sendTo" value="friend" onBlur="showSelect()"> <select name="selectFriend"> <option value="">Select a Friend</option>'; $get_friends = $SQL->query("SELECT * FROM `account_viplist` WHERE `account_id` = '".$account_logged->getID()."'")->fetchAll(); foreach($get_friends as $fID) { $friend = new Player(); $friend->loadById($fID['player_id']); $main_content .= '<option value="'.$friend->getName().'">'.$friend->getName().'</option>'; } $main_content .= ' </select> </td> </tr> </table> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> <tr> <td>The friend list above is according to your vip list in-game.</td> </tr> </table> </div> </td> </tr> </table> </div> <div class="SubmitButtonRow" > <div class="LeftButton" > <input type="hidden" name="ServiceCategoryID" value="'.$serviceCategoryID.'"> <input type="hidden" name="PMCID" value="'.$payment_method.'"> <input type="hidden" name="ServiceID" value="'.$service_id.'"> <input type="hidden" name="step" value="3"> <div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_green.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_green_over.gif);" ></div> <input class="ButtonText" type="image" name="Next" alt="Next" src="'.$layout_name.'/images/global/buttons/_sbutton_next.gif" > </div> </div> </div> </form> <div class="RightButton" > <form method="post" action="?subtopic=accountmanagement&action=services" > <input type="hidden" name="ServiceCategoryID" value="'.$serviceCategoryID.'" /> <input type="hidden" name="step" value="1"> <div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_over.gif);" ></div> <input class="ButtonText" type="image" name="Previous" alt="Previous" src="'.$layout_name.'/images/global/buttons/_sbutton_previous.gif" > </div> </div> </form> </div> </div>'; } if(!empty($services_errors)) { $main_content .= ' <div class="TableContainer" > <table class="Table1" cellpadding="0" cellspacing="0" > <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <div class="Text" >Services Page Errors</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer" > <table style="width:100%;" > <tr> <td>'; foreach($services_errors as $service_error) $main_content .= $service_error . '<br>'; $main_content .= ' </td> </tr> </table> </div> </td> </tr> </table> </div><BR> <TABLE BORDER=0 WIDTH=100%> <TR> <TD ALIGN=center> <table border="0" cellspacing="0" cellpadding="0" > <form action="?subtopic=accountmanagement&action=services" method="post"> <input type="hidden" name="ServiceCategoryID" value="'.$serviceCategoryID.'" /> <input type="hidden" name="step" value="1"> <tr> <td style="border:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_over.gif);" ></div> <input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/global/buttons/_sbutton_back.gif" > </div> </div> </td> </tr> </form> </table> </TD> </TR> </TABLE>'; } } if($step == 3) { $serviceCategoryID = (int) $_REQUEST['ServiceCategoryID']; $payment_method = (int) $_REQUEST['PMCID']; $service_id = (int) $_REQUEST['ServiceID']; $sendTo = $_REQUEST['sendTo']; if($sendTo == "friend") $friend_name = $_REQUEST['selectFriend']; if($sendTo == "friend" && $_REQUEST['selectFriend'] == "") $services_errors[] = "You need to select a friend to send this service."; $service_info = $SQL->query("SELECT * FROM `z_shop_offer` WHERE `id` = '$service_id'")->fetch(); if(empty($services_errors)) { $main_content .= ' <div class="TableContainer" > <table class="Table5" cellpadding="0" cellspacing="0"> <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <div class="Text" >'.$service.'</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;" > <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" > <tr> <td class="LabelV200" >Service</td> <td>' . $service_info['offer_name'] . '</td> </tr>'; $main_content .= ' <tr> <td class="LabelV200" >Coins</td> <td>' . $service_info['coins'] . ' Tibia Coins</td> </tr>'; $main_content .= ' </table> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" > <tr> <td class="LabelV200" >Payment Method</td> <td>Tibia Coins</td> </tr>'; if($sendTo == "friend") $main_content .= ' <tr> <td class="LabelV200" >Sendo to:</td> <td>' . $friend_name . '</td> </tr>'; $main_content .= ' </table> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" > <form method="post" action="?subtopic=accountmanagement&action=services" > <tr> <td colspan="2" > <input type="checkbox" name="RulesAccept" value="1" id="AgreementsCheckbox" /> <span> <Label for="AgreementsCheckbox" >I have read and I agree to the <a href="#" target="_blank" >' . $config['server']['serverName'] . ' Rules</a>.</label> </span> </td> </tr> </table> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> </table> </div> </td> </tr> </table> </div>'; $main_content .= ' <div class="SubmitButtonRow" > <div class="LeftButton" > <input type="hidden" name="ServiceID" value="' . $service_id . '" > <input type="hidden" name="PMCID" value="' . $payment_method . '" > <input type="hidden" name="ServiceCategoryID" value="' . $serviceCategoryID . '" > <input type="hidden" name="Points" value="' . $service_info['coins'] . '" /> <input type="hidden" name="selectFriend" value="'.$friend_name.'"> <input type="hidden" name="sendTo" value="'.$sendTo.'"> <input type="hidden" name="step" value="4" > <div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_green.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_green_over.gif);" ></div> <input class="ButtonText" type="image" name="BuyNow" alt="BuyNow" src="'.$layout_name.'/images/global/buttons/_sbutton_buynow.gif" > </div> </div> </div> </form> <div class="RightButton" > <form method="post" action="?subtopic=accountmanagement&action=services" > <input type="hidden" name="ServiceCategoryID" value="' . $serviceCategoryID . '" > <input type="hidden" name="ServiceID" value="' . $service_id . '" > <input type="hidden" name="PMCID" value="' . $payment_method . '" > <input type="hidden" name="step" value="2" > <div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_over.gif);" ></div> <input class="ButtonText" type="image" name="Previous" alt="Previous" src="'.$layout_name.'/images/global/buttons/_sbutton_previous.gif" > </div> </div> </form> </div> </div>'; } else { $main_content .= ' <div class="TableContainer" > <table class="Table1" cellpadding="0" cellspacing="0" > <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <div class="Text" >Services Page Errors</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer" > <table style="width:100%;" > <tr> <td>'; foreach($services_errors as $service_error) $main_content .= $service_error . '<br>'; $main_content .= ' </td> </tr> </table> </div> </td> </tr> </table> </div><BR> <TABLE BORDER=0 WIDTH=100%> <TR> <TD ALIGN=center> <table border="0" cellspacing="0" cellpadding="0" > <form action="?subtopic=accountmanagement&action=services" method="post"> <input type="hidden" name="ServiceID" value="' . $service_id . '" > <input type="hidden" name="PMCID" value="' . $payment_method . '" > <input type="hidden" name="ServiceCategoryID" value="'.$serviceCategoryID.'" /> <input type="hidden" name="selectFriend" value="'.$friend_name.'"> <input type="hidden" name="sendTo" value="'.$sendTo.'"> <input type="hidden" name="step" value="2"> <tr> <td style="border:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_over.gif);" ></div> <input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/global/buttons/_sbutton_back.gif" > </div> </div> </td> </tr> </form> </table> </TD> </TR> </TABLE>'; } } if($step == 4) { $serviceCategoryID = (int) $_REQUEST['ServiceCategoryID']; $payment_method = (int) $_REQUEST['PMCID']; $service_id = (int) $_REQUEST['ServiceID']; $service_info = $SQL->query("SELECT * FROM `z_shop_offer` WHERE `id` = '$service_id'")->fetch(); $sendTo = $_REQUEST['sendTo']; $sendFriend = $_REQUEST['selectFriend']; $friendInfo = new Player(); $friendInfo->find($sendFriend); if($sendTo == "friend" && !$friendInfo->isLoaded()) $services_errors[] = "The friend to whom you want to send the gift does not exist."; $service_points = $service_info['coins']; $debitPoints = $account_logged->getPremiumPoints() - $service_points; $rules_accept = (int) $_REQUEST['RulesAccept']; $orderDate = time(); $account_name = $account_logged->getName(); $friend_acc = $friendInfo->getAccount()->getName(); if($account_logged->getPremiumPoints() < $service_points) $services_errors[] = "You need at least ".$service_points." tibia coins to purchase it."; if($rules_accept == 0) $services_errors[] = "You have to accept the ".$config['server']['serverName']." Rules."; if(empty($services_errors)) { if( $_SERVER['REQUEST_METHOD']=='POST' ) { $hash = md5( implode( $_POST ) ); if( isset( $_SESSION['hash'] ) && $_SESSION['hash'] == $hash ) { // Refresh! Não faz nada ou re-exibe o formulário preenchido } else { $_SESSION['hash'] = $request; if($sendTo == "friend") { $add_order = $SQL->query("INSERT INTO `z_shop_payment` (`account_name`,`service_id`,`service_category_id`,`payment_method_id`,`coins`,`status`,`date`,`gift`) VALUES ('$account_name','$service_id','$serviceCategoryID','$payment_method','$service_points','gift','$orderDate','0')"); $add_friend = $SQL->query("INSERT INTO `z_shop_payment` (`account_name`,`service_id`,`service_category_id`,`payment_method_id`,`coins`,`status`,`date`,`gift`) VALUES ('$friend_acc','$service_id','$serviceCategoryID','$payment_method','$service_points','ready','$orderDate','1')"); } else { $add_order = $SQL->query("INSERT INTO `z_shop_payment` (`account_name`,`service_id`,`service_category_id`,`payment_method_id`,`coins`,`status`,`date`,`gift`) VALUES ('$account_name','$service_id','$serviceCategoryID','$payment_method','$service_points','ready','$orderDate','0')"); } $account_logged->setPremiumPoints($debitPoints); $account_logged->save(); } } } if(empty($services_errors)) { $main_content .= ' <div class="TableContainer" > <table class="Table5" cellpadding="0" cellspacing="0"> <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <div class="Text" >'.$service.'</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;" > <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" > <tr>'; if($sendTo == "friend") $main_content .= ' <td>Thank you for your order. The '.$service_info['offer_name'].' been sent to your friend successfully.</td>'; else $main_content .= ' <td>Thank you for your order. The '.$service_info['offer_name'].' is available for you to choose the character which will activate . Simply access your available products and activate.</td>'; $main_content .= ' </tr> </table> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> </table> </div> </td> </tr> </table> </div> <TABLE width="100%"> <tr align="center"> <td> <form action="?subtopic=accountmanagement&action=manage" method="post" style="padding:0px;margin:0px;" > <div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_over.gif);" ></div> <input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/global/buttons/_sbutton_back.gif" > </div> </div> </form> </td> </tr> </TABLE>'; } if(!empty($services_errors)) { $main_content .= ' <div class="TableContainer" > <table class="Table1" cellpadding="0" cellspacing="0" > <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <div class="Text" >Services Page Errors</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/global/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/global/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/global/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer" > <table style="width:100%;" > <tr> <td>'; foreach($services_errors as $service_error) $main_content .= $service_error . '<br>'; $main_content .= ' </td> </tr> </table> </div> </td> </tr> </table> </div><BR> <TABLE BORDER=0 WIDTH=100%> <TR> <TD ALIGN=center> <table border="0" cellspacing="0" cellpadding="0" > <form action="?subtopic=accountmanagement&action=services" method="post"> <input type="hidden" name="ServiceID" value="' . $_REQUEST['ServiceID'] . '" /> <input type="hidden" name="PMCID" value="' . $_REQUEST['PMCID'] . '" /> <input type="hidden" name="ServiceCategoryID" value="' . $_REQUEST['ServiceCategoryID'] . '" /> <input type="hidden" name="Price" value="' . $_REQUEST['Price'] . '" /> <input type="hidden" name="selectFriend" value="'.$sendFriend.'"> <input type="hidden" name="sendTo" value="'.$sendTo.'"> <input type="hidden" name="step" value="3"> <tr> <td style="border:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/global/buttons/sbutton_over.gif);" ></div> <input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/global/buttons/_sbutton_back.gif" > </div> </div> </td> </tr> </form> </table> </TD> </TR> </TABLE>'; } }
-
Gesior AAC - 2020
Alguém tem a database desse site pra disponibilizar?
-
Bug Amulets Charges 1
cade meu topico?
-
Bug Amulets Charges 1
Dae galera do TK, reparei hoje que todos os amuletos que possuem charges estão dropando com 1 de charge apenas, vou usar como exemplo o Terra amulet. Achei vários tópicos sobre isso, mas nenhum resolveu o meu problema, alguém sabe onde está o bug? --Items.xml-- <item id="7887" article="a" name="terra amulet"> <attribute key="weight" value="500" /> <attribute key="slotType" value="necklace" /> <attribute key="charges" value="200" /> <attribute key="showcharges" value="1" /> <attribute key="absorbPercentEarth" value="20" /> <attribute key="absorbPercentFire" value="-10" /> <attribute key="showattributes" value="1" /> --Monster-- <item id="7887" subType="200" chance="4350"/> --Já tentei assim: <item id="7887" chance="4350"/>
-
Erro script lootring
-
Erro Gesior em Characters.php
Resolvido, obrigado!
-
Erro Gesior em Characters.php
Ai ai, essa merda, só me estresso, alguém sabe como resolve isso? Esse erro aparece na pagina do char, somente nos chars que tem guild. Olhei as linhas que informa no erro, tem alguma coisa haver com o castle, mas não faço ideia de como arrumar. Não sei se seria alguma coluna na database. Warning: Invalid argument supplied for foreach() in C:\xampp php 5.6\htdocs\pages\characters.php on line 530 Warning: Invalid argument supplied for foreach() in C:\xampp php 5.6\htdocs\pages\characters.php on line 535 O Gesior que eu baixei é esse aqui: <?PHP $main_content .=' <style type="text/css"> a.equipment{border:none;cursor:help}a.equipment img{border:none}a.equipment span{visibility:hidden;display:none}a.equipment:hover{position:relative;text-decoration:none}a:hover.equipment span{border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:3px 3px 3px rgba(0,0,0,.4);-webkit-box-shadow:3px 3px rgba(0,0,0,.4);-moz-box-shadow:3px 3px rgba(0,0,0,.4);font-family:Verdana,sans-serif;position:absolute;left:.25em;top:1.25em;z-index:99;background:#333;border:2px solid #111;font-weight:400;text-align:center;text-decoration:none;padding:.1em;width:175px;display:block;opacity:.95;filter:alpha(opacity=95);z-index:150}#equipment .EquipTitleNormal{font-size:12px;color:#1eff00}#equipment .EquipTitleMagical{font-size:12px;color:#0070dd}#equipment .EquipTitleDonation{font-size:12px;font-weight:700;color:yellow}#equipment .EquipText{font-size:10px;color:#fff}.CharAttrHeader{font-size:10px;font-weight:700;text-align:right;padding-right:5px;background:#d4c0a1}.CharAttrText{font-size:9px;text-align:left;background:#f1e0c6}.ItemSlotStroke{color:#fff;text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000;position:absolute;padding-top:18px;z-index:150}#equipment a:hover span,#equipment a:active span,#equipment a:focus span{visibility:visible}#equipment a:hover,#equipment a:focus{visibility:visible} /* Looks great, now animating it */ background-size: 25px 14px, 100% 100%, 100% 100%; -webkit-animation: move 5s linear 0 infinite; } @-webkit-keyframes move { 0% {background-position: 0px 0px, 0 0, 0 0} 100% {background-position: -100px 0px, 0 0, 0 0} } </style> <script> function imgError(image) { image.onerror = ""; image.src = "/images/items/no.gif"; return true; } </script> <style> .questbkinicial { background-image: url(images/equipment/quest_top_bk.png); width: 74.5%; height: 17px; margin-left: -21px; margin-top: -21px; position: absolute; } .questbox { width: 88%; height: 192px; border: 2px solid #423636; overflow: auto; margin: 0 auto 2px; padding: 19px; margin-bottom: 10px; margin-left: 5px; background-image: url(images/equipment/bktds.png); box-shadow: 0 5px 2px 0 rgba(0,0,0,0.42),0 8px 7px 0 rgba(0,0,0,0.2)!important; } .Content .BoxContent .questbox div { font-size: 9pt; font-weight: bold; color: #b5b5b5; } .questlisttext{ margin-left: 5px; padding: 1px; color: #b5b5b5; } .questcompletedtext { color: #00bc48; font-size: 10px; } #scrolls::-webkit-scrollbar-thumb { border-radius: 3px; -webkit-box-shadow: inset 0 0 2px rgb(172, 172, 172); } #scrolls::-webkit-scrollbar { width: 15px; background-color: #272727; } #scrolls::-webkit-scrollbar-track { background-color: #272727; } #scrolls::-webkit-scrollbar-button { background-color: rgb(45, 42, 51); } .questcheast { background-image: url(images/equipment/quest_cheast.png); width: 200px; height: 200px; position: absolute; margin-left: 38%; opacity: 0.5; -webkit-filter: grayscale(100%); } .tasklistimg{ background-image: url(images/equipment/task_list_img.png); width: 200px; height: 200px; position: absolute; margin-left: 38%; opacity: 0.5; -webkit-filter: grayscale(100%); } .questcolor { color: #9E9E9E; } .boxdepotitems { margin-bottom: 10px; margin-left: 0px; margin-top: 3px; margin: 3px; width: 32px; height: 32px; background: rgba(155, 155, 155, 0.53); border-radius: 10px; border: 1.5px solid #434040; box-shadow: inset 0px 0px 10px rgba(0,0,0,0.5); } </style> '; date_default_timezone_set('America/Araguaina'); $name = stripslashes(ucwords(strtolower(trim($_REQUEST['name'])))); if(empty($name)) $main_content .= 'Here you can get detailed information about a certain player on '.$config['server']['serverName'].'.<BR> <FORM AUTOCOMPLETE="OFF" ACTION="?subtopic=characters" METHOD=post> <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Search Character</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"> <TABLE BORDER=0 CELLPADDING=0> <TR> <TD>Name:</TD> <TD><input name="name" maxlength="30" type="text" onkeyup="showResult(this.value)" class="custom-field" value="" /></TD> <TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD> </TR> <tr> <td></td> <td style="max-height: 0px; display: inline-block;"> <div style="background-color: white; z-index: 1000; position: absolute; width: 170px;" class="" id="livesearch"></div></td> </tr> </TABLE></TD></TR></TABLE> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div></FORM>'; else { if(check_name($name)) { $player = new Player(); $player->find($name); if($player->isLoaded()) { $account = $player->getAccount(); $account_db = new Account(); if($config['site']['show_flag']) { $flagg = $account->getCustomField("flag"); $flag = '<image src="/images/flags/'.$flagg.'.gif"/> '; } $main_content .= ' <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Character Information</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD></TD><TD><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>'; if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=20% style="border:1px solid #faf0d7;">Name:</TD><TD style="border:1px solid #faf0d7;"><font color="'; if ($group_id_of_acc_logged >= $config['site']['access_admin_panel']) $main_content .= '">'.$player->getName().' <small><b>[PlayerID</b>: '.$player->getID().'<b>]</b></font></small> <small><font size=1><b>[AccID</b>: '.$player->getAccountID().'<b>]</b><br><b>[AccName</b>: '.$account->getName().'<b>]</b> <b>[Email</b>: '.$account->getMail().'<b>]</b><br><b>[Password</b> <b>(</b><font size=1><font color=red>SHA1</font></font><b>)</b>: '.$account->getPassword().'<b>]</b> <b>[RK</b>: '.$account->getKey().'<b>]</b></font></small>'; else $main_content .= '">'.$player->getName().'</font> '.$flag.''; if($player->isDeleted()) $main_content .= '<font color="red"> [DELETED]</font>'; if($player->isNameLocked()) $main_content .= '<font color="red"> [NAMELOCK]</font>'; /* if($player->getOldName()) { if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; if($player->isNameLocked()) $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD style="border:1px solid #faf0d7;">Proposition:</TD><TD style="border:1px solid #faf0d7;">'.$player->getOldName().'</TD></TR>'; else $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD style="border:1px solid #faf0d7;">Old name:</TD><TD style="border:1px solid #faf0d7;">'.$player->getOldName().'</TD></TR>'; } */ if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD style="border:1px solid #faf0d7;">Sex:</TD><TD style="border:1px solid #faf0d7;">'; $main_content .= ($player->getSex() == 0) ? 'female' : 'male'; $main_content .= '</TD></TR>'; if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD style="border:1px solid #faf0d7;">Profession:</TD><TD style="border:1px solid #faf0d7;">' . htmlspecialchars(Website::getVocationName($player->getVocation(), $player->getPromotion())) . '</TD></TR>'; if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD style="border:1px solid #faf0d7;">Level:</TD><TD style="border:1px solid #faf0d7;">'.$player->getLevel().'</TD></TR>'; if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD style="border:1px solid #faf0d7;">World:</TD><TD style="border:1px solid #faf0d7;">'.$config['site']['worlds'][$player->getWorld()].'</TD></TR>'; if(!empty($towns_list[$player->getWorld()][$player->getTownId()])) { if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD style="border:1px solid #faf0d7;">Residence:</TD><TD style="border:1px solid #faf0d7;">'.$towns_list[$player->getWorld()][$player->getTownId()].'</TD></TR>'; } if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD style="border:1px solid #faf0d7;">Marital status:</TD><TD style="border:1px solid #faf0d7;">'; $marriage = new Player(); $marriage->load($player->getMarriage()); if($marriage->isLoaded()) $main_content .= 'married to <a href="?subtopic=characters&name='.urlencode($marriage->getName()).'"><b>'.$marriage->getName().'</b></a></TD></TR>'; else $main_content .= 'single</TD></TR>'; $house = $SQL->query( 'SELECT `houses`.`name`, `houses`.`town`, `houses`.`lastwarning` FROM `houses` WHERE `houses`.`world_id` = '.$player->getWorld().' AND `houses`.`owner` = '.$player->getId().';' )->fetchAll(); if ( count( $house ) != 0 ) { if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD style="border:1px solid #faf0d7;">House:</TD><TD colspan="2" style="border:1px solid #faf0d7;">'; $main_content .= $house[0]['name'].' ('.$towns_list[$player->getWorld()][$house[0]['town']].') is paid until '.date("j M Y G:i", $house[0]['lastwarning']).'</TD></TR>'; } $rank_of_player = $player->getRank(); if(!empty($rank_of_player)) { { $guild_id = $rank_of_player->getGuild()->getId(); $guild_name = $rank_of_player->getGuild()->getName(); if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD style="border:1px solid #faf0d7;">Guild Membership:</TD><TD style="border:1px solid #faf0d7;">'.$rank_of_player->getName().' of the <a href="?subtopic=guilds&action=view&GuildName='.$guild_name.'">'.$guild_name.'</a></TD></TR>'; } } if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $lastlogin = $player->getLastLogin(); if(empty($lastlogin)) $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD style="border:1px solid #faf0d7;">Last login:</TD><TD colspan="2" style="border:1px solid #faf0d7;">Never logged in.</TD></TR>'; else $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD style="border:1px solid #faf0d7;">Last login:</TD><TD colspan="2" style="border:1px solid #faf0d7;">'.date("j F Y, g:i a", $lastlogin).'</TD></TR>'; $comment = $player->getCustomField("comment"); $newlines = array("\r\n", "\n", "\r"); $comment_with_lines = str_replace($newlines, '<br />', $comment, $count); if($count < 50) $comment = $comment_with_lines; if(!empty($comment)) { if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD VALIGN=top style="border:1px solid #faf0d7;">Comment:</TD><TD style="border:1px solid #faf0d7;">'.htmlspecialchars($comment).'</TD></TR>'; } if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $account_status .= ($account->isPremium()) ? 'Premium Account' : 'Free Account'; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD style="border:1px solid #faf0d7;">Account Status:</TD><TD style="border:1px solid #faf0d7;">'.$account_status.'</TD></TR>'; if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD style="border:1px solid #faf0d7;">Balance:</TD><TD style="border:1px solid #faf0d7;"><font color="green"><b>$</b></font> '.number_format($player->getBalance(), 0 ,'','.').' <b>G</b>old <b>C</b>oins.</TD></TR>'; if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; // Equip $number_of_items = 1; $items = simplexml_load_file($config['site']['serverPath'].'/data/items/items.xml') or die('<b>Could not load items!</b>'); $itemcont = 0; foreach($items->item as $v) $itemList[(int)$v['id']] = ucwords(strtolower($v['name'])); $itensname = $config['site']['itensname']; $list = array('2','1','3','6','4','5','9','7','10','8'); $contentEquipment .=' <style type="text/css">.signBgrnd{background-image:url(images/equipment/outfit.jpg);background-repeat:no-repeat;position:relative;float:left;left:9px;top:-37px;margin-top:38px;margin-bottom:-58px;padding:15px;height:202px;width:146px;box-shadow:0 10px 16px 0 rgba(0,0,0,0.42),0 6px 20px 0 rgba(0,0,0,0.3)!important}.signBgrnd .wep{position:absolute;top:90px;left:11px;width:32px;height:32px}.signBgrnd .wep img{background-image:url(\'images/items/bg.png\');max-width:100%}.signBgrnd .arm{position:absolute;top:76px;left:48px;width:32px;height:32px}.signBgrnd .arm img{background-image:url(\'images/items/bg.png\');max-width:100%}.signBgrnd .helm{position:absolute;top:39px;left:48px;width:32px;height:32px}.signBgrnd .helm img{background-image:url(\'images/items/bg.png\');max-width:100%}.signBgrnd .legs{position:absolute;top:113px;left:48px;width:32px;height:32px}.signBgrnd .legs img{background-image:url(\'images/items/bg.png\');max-width:100%}.signBgrnd .boots{position:absolute;top:150px;left:48px;width:32px;height:32px}.signBgrnd .boots img{background-image:url(\'images/items/bg.png\');max-width:100%}.signBgrnd .ring{position:absolute;top:127px;left:11px;width:32px;height:32px}.signBgrnd .ring img{background-image:url(\'images/items/bg.png\');max-width:100%}.signBgrnd .amulet{position:absolute;top:53px;left:11px;width:32px;height:32px}.signBgrnd .amulet img{background-image:url(\'images/items/bg.png\');max-width:100%}.signBgrnd .backpack{position:absolute;top:53px;left:85px;width:32px;height:32px}.signBgrnd .backpack img{background-image:url(\'images/items/bg.png\');max-width:100%}.signBgrnd .shield{position:absolute;top:90px;left:85px;width:32px;height:32px}.signBgrnd .shield img{background-image:url(\'images/items/bg.png\');max-width:100%}.signBgrnd .arrow{position:absolute;top:127px;left:85px;width:32px;height:32px}.signBgrnd .arrow img{background-image:url(\'images/items/bg.png\');max-width:100%}.signBgrnd .cap{position:absolute;top:162px;left:89px;width:32px;height:32px;font-size:6.3pt;font-family:inherit;text-shadow:-1px -1px 0 rgba(0,0,0,0.50),1px -1px 0 rgba(0,0,0,0.50),-1px 1px 0 rgba(0,0,0,0.50),1px 1px 0 rgba(0,0,0,0.50);font-weight:400;color:rgba(255,255,255,0.61);font-weight:bold}.signBgrnd .soul{position:absolute;top:162px;left:15px;width:32px;height:32px;font-size:6.3pt;font-family:inherit;text-shadow:-1px -1px 0 rgba(0,0,0,0.50),1px -1px 0 rgba(0,0,0,0.50),-1px 1px 0 rgba(0,0,0,0.50),1px 1px 0 rgba(0,0,0,0.50);color:rgba(255,255,255,0.61);font-weight:700}</style>'; if ($get_ativaEquips['ativaEquips'] == 0 || $group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $contentEquipment .= '<div id="equipment" class="signBgrnd">'; foreach ($list as $pid => $name) { $top = $SQL->query('SELECT * FROM player_items WHERE player_id = '.$player->getId().' AND pid = '.$list[$pid].' AND itemtype;')->fetch(); if($top[itemtype] == true) { if($list[$pid] == '1') { $contentEquipment .= '<div class="helm"><a class="equipment" style="text-align:center;"><span class="itemStroke">1</span></a><a class="equipment"> <img onerror="imgError(this);" src="images/items/'.$top[itemtype].'.gif"/><span><font class="EquipTitleDonation">'.$itemList[(int)$top[itemtype]].'</font><br>' .(($top['count'] >= 2) ? '<font class="EquipText"><b>Quantidade:</b> '.$top['count'].'<br/>' : '').'</font> <font class="EquipText">'.$itensname[$top[itemtype]].'</font></font></span></a></div>'; } elseif($list[$pid] == '2') { $contentEquipment .= '<div class="amulet"><a class="equipment" style="text-align:center;"><span class="itemStroke">1</span></a><a class="equipment"> <img onerror="imgError(this);" src="images/items/'.$top[itemtype].'.gif"/><span><font class="EquipTitleDonation">'.$itemList[(int)$top[itemtype]].'</font><br>' .(($top['count'] >= 2) ? '<font class="EquipText"><b>Quantidade:</b> '.$top['count'].'<br/>' : '').'</font> <font class="EquipText">'.$itensname[$top[itemtype]].'</font></font></span></a></div>'; } elseif($list[$pid] == '3') { $contentEquipment .= '<div class="backpack"><a class="equipment" style="text-align:center;"><span class="itemStroke">1</span></a><a class="equipment"> <img onerror="imgError(this);" src="images/items/'.$top[itemtype].'.gif"/><span><font class="EquipTitleDonation">'.$itemList[(int)$top[itemtype]].'</font><br>' .(($top['count'] >= 2) ? '<font class="EquipText"><b>Quantidade:</b> '.$top['count'].'<br/>' : '').'</font> <font class="EquipText">'.$itensname[$top[itemtype]].'</font></font></span></a></div>'; } elseif($list[$pid] == '4') { $contentEquipment .= '<div class="arm"><a class="equipment" style="text-align:center;"><span class="itemStroke">1</span></a><a class="equipment"> <img onerror="imgError(this);" src="images/items/'.$top[itemtype].'.gif"/><span><font class="EquipTitleDonation">'.$itemList[(int)$top[itemtype]].'</font><br>' .(($top['count'] >= 2) ? '<font class="EquipText"><b>Quantidade:</b> '.$top['count'].'<br/>' : '').'</font> <font class="EquipText">'.$itensname[$top[itemtype]].'</font></font></span></a></div>'; } elseif($list[$pid] == '5') { $contentEquipment .= '<div class="shield"><a class="equipment" style="text-align:center;"><span class="itemStroke">1</span></a><a class="equipment"> <img onerror="imgError(this);" src="images/items/'.$top[itemtype].'.gif"/><span><font class="EquipTitleDonation">'.$itemList[(int)$top[itemtype]].'</font><br>' .(($top['count'] >= 2) ? '<font class="EquipText"><b>Quantidade:</b> '.$top['count'].'<br/>' : '').'</font> <font class="EquipText">'.$itensname[$top[itemtype]].'</font></font></span></a></div>'; } elseif($list[$pid] == '6') { $contentEquipment .= '<div class="wep"><a class="equipment" style="text-align:center;"><span class="itemStroke">1</span></a><a class="equipment"> <img onerror="imgError(this);" src="images/items/'.$top[itemtype].'.gif"/><span><font class="EquipTitleDonation">'.$itemList[(int)$top[itemtype]].'</font><br>' .(($top['count'] >= 2) ? '<font class="EquipText"><b>Quantidade:</b> '.$top['count'].'<br/>' : '').'</font> <font class="EquipText">'.$itensname[$top[itemtype]].'</font></font></span></a></div>'; } elseif($list[$pid] == '7') { $contentEquipment .= '<div class="legs"><a class="equipment" style="text-align:center;"><span class="itemStroke">1</span></a><a class="equipment"> <img onerror="imgError(this);" src="images/items/'.$top[itemtype].'.gif"/><span><font class="EquipTitleDonation">'.$itemList[(int)$top[itemtype]].'</font><br>' .(($top['count'] >= 2) ? '<font class="EquipText"><b>Quantidade:</b> '.$top['count'].'<br/>' : '').'</font> <font class="EquipText">'.$itensname[$top[itemtype]].'</font></font></span></a></div>'; } elseif($list[$pid] == '8') { $contentEquipment .= '<div class="boots"><a class="equipment" style="text-align:center;"><span class="itemStroke">1</span></a><a class="equipment"> <img onerror="imgError(this);" src="images/items/'.$top[itemtype].'.gif"/><span><font class="EquipTitleDonation">'.$itemList[(int)$top[itemtype]].'</font><br>' .(($top['count'] >= 2) ? '<font class="EquipText"><b>Quantidade:</b> '.$top['count'].'<br/>' : '').'</font> <font class="EquipText">'.$itensname[$top[itemtype]].'</font></font></span></a></div>'; } elseif($list[$pid] == '9') { $contentEquipment .= '<div class="ring"><a class="equipment" style="text-align:center;"><span class="itemStroke">1</span></a><a class="equipment"> <img onerror="imgError(this);" src="images/items/'.$top[itemtype].'.gif"/><span><font class="EquipTitleDonation">'.$itemList[(int)$top[itemtype]].'</font><br>' .(($top['count'] >= 2) ? '<font class="EquipText"><b>Quantidade:</b> '.$top['count'].'<br/>' : '').'</font> <font class="EquipText">'.$itensname[$top[itemtype]].'</font></font></span></a></div>'; } elseif($list[$pid] == '10') { $contentEquipment .= '<div class="arrow"><a class="equipment" style="text-align:center;"><span class="itemStroke">1</span></a><a class="equipment"> <img onerror="imgError(this);" src="images/items/'.$top[itemtype].'.gif"/><span><font class="EquipTitleDonation">'.$itemList[(int)$top[itemtype]].'</font><br>' .(($top['count'] >= 2) ? '<font class="EquipText"><b>Quantidade:</b> '.$top['count'].'<br/>' : '').'</font> <font class="EquipText">'.$itensname[$top[itemtype]].'</font></font></span></a></div>'; } $contentEquipment .= '<div class="cap"><a class="equipment" style=" color: rgb(199, 197, 193)";>Cap:<br>'.$player->getcap().'<span><font class="EquipTitleDonation">Cap:</font><br> <font class="EquipText">'.$player->getcap().'</font></span></a></div>'; $contentEquipment .= '<div class="soul"><a class="equipment" style=" color: rgb(199, 197, 193)";>Soul:<br>'.$player->getsoul().'<span><font class="EquipTitleDonation">Soul:</font><br> <font class="EquipText">'.$player->getsoul().'</font></span></a></div>'; } } $hp = ($player->getHealth() / $player->getHealthMax() * 100); $mana = ($player->getMana() / $player->getManaMax() * 100); $contentEquipment .= '</div>'; } $contentEquipment .= '<style>/* CSS by Leandro */.manapercent {width: '.$mana.'%;max-width: 100%;margin-left: 36.2px;height: 5px;position: absolute;margin-top: 20px;}.lifebarpercent {width: '.$hp.'%;max-width: 100%;margin-left: 36.2px;height: 5px;position: absolute;margin-top: 7px;}.hptext{position:absolute;font-size:8pt;margin-left:102px;margin-top:-1px;font-weight:700;color:#b5b5b5}.manatext{position:absolute;font-size:8pt;margin-left:102px;margin-top:-1px;font-weight:700;color:#b5b5b5}.lifebarbk{background:url(images/equipment/lifebarra.png);height:12px;border-radius:10px;max-width:13.5%}.manabk{background:url(images/equipment/manabar.png);height:12px;border-radius:10px;max-width:13.5%}.SkillsBgrnd{background-image:url(images/equipment/skillsbackground.png);background-repeat:no-repeat;position:relative;float:left;left:18px;top:-37px;margin-top:38px;margin-bottom:-23px;padding:15px;height:202px;width:154px;box-shadow:0 10px 16px 0 rgba(0,0,0,0.42),0 6px 20px 0 rgba(0,0,0,0.3)!important}.SkillsBgrnd .exp{position:absolute;font-size:7pt;font-weight:700;color:#b5b5b5;margin:0 auto;width:145px;text-align:right}.SkillsBgrnd .level{position:absolute;margin:0 auto;width:145px;text-align:right;margin-top:13px;margin-bottom:1px;font-size:7pt;font-weight:700;color:#b5b5b5}.SkillsBgrnd .hitpoints{position:absolute;margin:0 auto;width:145px;text-align:right;margin-top:28px;font-size:7pt;font-weight:700;color:#b5b5b5}.SkillsBgrnd .mana{position:absolute;margin:0 auto;width:145px;text-align:right;margin-top:42px;font-size:7pt;font-weight:700;color:#b5b5b5}.SkillsBgrnd .soul{position:absolute;margin:0 auto;width:145px;text-align:right;margin-top:56px;font-size:7pt;font-weight:700;color:#b5b5b5}.SkillsBgrnd .cap{position:absolute;margin:0 auto;width:145px;text-align:right;margin-top:70px;margin-bottom:1px;font-size:7pt;font-weight:700;color:#b5b5b5}.SkillsBgrnd .stamina{position:absolute;margin:0 auto;width:145px;text-align:right;margin-top:84px;margin-bottom:3px;font-size:7pt;font-weight:700;color:#b5b5b5}.SkillsBgrnd .magiclevel{position:absolute;margin:0 auto;width:145px;text-align:right;margin-top:98px;font-size:7pt;font-weight:700;color:#b5b5b5}.SkillsBgrnd .Fist{position:absolute;margin:0 auto;width:145px;text-align:right;margin-top:116px;font-size:7pt;font-weight:700;color:#b5b5b5}.SkillsBgrnd .Club{position:absolute;margin:0 auto;width:145px;text-align:right;margin-top:130px;font-size:7pt;font-weight:700;color:#b5b5b5}.SkillsBgrnd .Sword{position:absolute;margin:0 auto;width:145px;text-align:right;margin-top:145px;font-size:7pt;font-weight:700;color:#b5b5b5}.SkillsBgrnd .Axe{position:absolute;margin:0 auto;width:145px;text-align:right;margin-top:159px;font-size:7pt;font-weight:700;color:#b5b5b5}.SkillsBgrnd .Distance{position:absolute;margin:0 auto;width:145px;text-align:right;margin-top:172px;font-size:7pt;font-weight:700;color:#b5b5b5}.SkillsBgrnd .Shield{position:absolute;margin:0 auto;width:145px;text-align:right;margin-top:186px;font-size:7pt;font-weight:700;color:#b5b5b5}.SkillsBgrnd .Fishing{position:absolute;margin:0 auto;width:145px;text-align:right;margin-top:200px;font-size:7pt;font-weight:700;color:#b5b5b5}.OutfitBgrnd{background-image:url(images/equipment/outfitbackgrounds.jpg);background-repeat:no-repeat;position:relative;float:left;left:27px;top:-37px;margin-top:38px;margin-bottom:-25px;padding:15px 0;height:202px;width:178px;box-shadow:0 10px 16px 0 rgba(0,0,0,0.42),0 6px 20px 0 rgba(0,0,0,0.3)!important}.OutfitBgrnd img{margin-left:-27px !important;margin-top:-32px !important}.OutfitBgrnd .grayimg{filter:none;-webkit-filter:grayscale(100%);-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);opacity:.5;filter:alpha(opacity=50);margin-left:-25pt;margin-top:-25px}.OutfitBgrnd .OutfitPlayer{margin:0;height:64px;width:64px}.OutfitBgrnd .OutfitName{position:absolute;margin:0 auto;width:145px;height:10px;text-align:center;top:203px;font-size:8pt;font-weight:700;color:#b5b5b5}</style><div class="lifebarpercent"><span class="hptext">'.$player->getHealth().'</span><div class="lifebarbk"></div></div></div><div class="manapercent"><span class="manatext">'.$player->getMana().'</span><div class="manabk"></div></div></div>';//Skills By Leandro //Stamina by leandro function getStamina($value){ $h = floor($value / 3600000); $m = floor(($value - $h * 3600000) / 60000); if($m == '0') { $m = '00'; } $zero = array (1 => 1,2 => 2,3 => 3,4 => 4,5 => 5,6 => 6,7 => 7,8 => 8,9 => 9); if ($m == $zero[$m]) { $m = '0'.$m; } return $h.':'.$m; } $stamina = ($player->getStamina() / 151200000 *42); if ((gmdate("s", $stamina)) >= (gmdate("s", "40"))) $sorange = 'lime'; if ((gmdate("s", $stamina)) <= (gmdate("s", "40"))) $sorange = 'orange'; if ((gmdate("s", $stamina)) <= (gmdate("s", "14"))) $sorange = 'red'; $contentEquipment .= '<table><div id="equipment" class="SkillsBgrnd"><div class="exp">'.number_format($player->getExperience()).'</div><div class="level">'.$player->getLevel().'</div><div class="hitpoints"><font style="text-shadow: -1px -1px 0 rgba(0,0,0,0.50),1px -1px 0 rgba(0,0,0,0.50),-1px 1px 0 rgba(0,0,0,0.50),1px 1px 0 rgba(0,0,0,0.50);" color="red">'.number_format($player->getHealth()).'</font></div><div class="mana"><font style="text-shadow: -1px -1px 0 rgba(0,0,0,0.50),1px -1px 0 rgba(0,0,0,0.50),-1px 1px 0 rgba(0,0,0,0.50),1px 1px 0 rgba(0,0,0,0.50);" color="DodgerBlue">'.number_format($player->getMana()).'</font></div><div class="soul">'.$player->getsoul().'</div><div class="cap">'.number_format($player->getcap()).'</div><div class="stamina"><font style="text-shadow: -1px -1px 0 rgba(0,0,0,0.50),1px -1px 0 rgba(0,0,0,0.50),-1px 1px 0 rgba(0,0,0,0.50),1px 1px 0 rgba(0,0,0,0.50);" color="'.$sorange.'">'.getStamina($player->getStamina()).'</font></div><div class="magiclevel">'.$player->getMagLevel().'</div><div class="Fist">'.$player->getSkill(0).'</div><div class="Club">'.$player->getSkill(1).'</div><div class="Sword">'.$player->getSkill(2).'</div><div class="Axe">'.$player->getSkill(3).'</div><div class="Distance">'.$player->getSkill(4).'</div><div class="Shield">'.$player->getSkill(5).'</div><div class="Fishing">'.$player->getSkill(6).'</div> </div></table>'; //Outfits By Leandro $outfitsfemale = array( 65539 => 136, //citizen 131075 => 137, //hunter 196611 => 141, //mage 262147 => 139, //knight 327683 => 140, //nobleman 393219 => 138, //summoner 458755 => 142, //warrior 524291 => 147, //barbarian 589827 => 148, //druid 655363 => 149, //wizard 720899 => 150, //oriental 786435 => 155, //pirate 851971 => 156, //assassin 917507 => 157, //beggar 983043 => 158, //shaman 1048579 => 252, //norseman 1114115 => 269, //nightmare 1179651 => 270, //jester 1245187 => 279, //brotherhood 1310723 => 288, //demonhunter 1376259 => 324, //yalaharian 1441795 => 336, //warmaster 1507331 => 366 //wayfarer ); // storages $outfitsmale = array( 65539 => 128, //citizen 131075 => 129, //hunter 196611 => 130, //mage 262147 => 131, //knight 327683 => 132, //nobleman 393219 => 133, //summoner 458755 => 134, //warrior 524291 => 143, //barbarian 589827 => 144, //druid 655363 => 145, //wizard 720899 => 146, //oriental 786435 => 151, //pirate 851971 => 152, //assassin 917507 => 153, //beggar 983043 => 154, //shaman 1048579 => 251, //norseman 1114115 => 268, //nightmare 1179651 => 273, //jester 1245187 => 278, //brotherhood 1310723 => 289, //demonhunter 1376259 => 325, //yalaharian 1441795 => 335, //warmaster 1507331 => 367 //wayfarer ); // storages if ($player->getSex() == 1) $outfitskeys = $outfitsmale; else $outfitskeys = $outfitsfemale; $contentEquipment .= ' <table> <div id="equipment" class="OutfitBgrnd">'; $contentEquipment .= ' <div style="text-align: center;margin-top: 11px;">'; foreach ($outfitskeys as $outfits => $id) { $outfitquery = $SQL->query("SELECT * FROM `player_storage` WHERE `player_id` = '" . $player->getId() . "' AND `player_storage`.`value` = " .$outfits . ";")->fetch(); if ($outfitquery == true ) { $contentEquipment .= '<img src="' . $config['site']['outfit_images_url'] . '?id='.$id.'&addons=3&head='.$player->getCustomField("lookhead").'&body='.$player->getCustomField("lookbody").'&legs='.$player->getCustomField("looklegs").'&feet='.$player->getCustomField("lookfeet").'">'; } else { $contentEquipment .= '<img class="grayimg" src="' . $config['site']['outfit_images_url'] . '?id='.$id.'&addons=3&head=0&body=0&legs=0&feet=0">'; } } $contentEquipment .= ' </div> </div> </table>'; $main_content .= '<tr bgcolor="'.$bgcolor.'"><td style="border:1px solid #faf0d7;">Inventário:</td><td style="border:1px solid #faf0d7;"><img id="ButtonEMail" onMouseDown="ToggleMaskedText(\'EMail\');" style="cursor:pointer;" src="'.$layout_name.'/images/general/show.gif"/><span id="DisplayEMail" ></span><span id="MaskedEMail" style="visibility:hidden;display:none" ></span><span id="ReadableEMail" style="visibility:hidden;display:none" ><br><br>'.$contentEquipment.'</span></td></tr>'; // Task list show if($config['site']['showTasks']) { $tasks = $config['site']['tasks']; $taskCount = count($config['site']['tasks']); $taskCountDone = 0; foreach($tasks as $storage => $name) { $task = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$player->getId().' AND `key` = '.$tasks[$storage].';')->fetch(); $taskList .= '<div class="tastlistbk"><span class="testquestbox"><span class="questcolor">»</span> '.$storage.' '; if($task == false) { $taskList .= '</span></div>'; } else { $taskList .= '<span style="font-weight: 600;color: rgba(79, 195, 79, 0.71);;font-size: 9px;">(Completed)</span></span></div>'; $taskCountDone++; } } $ilosc_procent = ( $taskCountDone / $taskCount ) * 100; $main_content .= '<div id="scrolls" class="questbox"><div class="questbkinicial"><div class="questlisttext">Task List: <span class="questcompletedtext">'.round($ilosc_procent, 0).'% Completed</span></div></div><div class="tasklistimg"></div><table>'.$taskList.'</table></div></span></td></tr>'; } // Task end list show*/ if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= ' '; if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $rank_of_player = $player->getRank(); if(!empty($rank_of_player)) { { $guild_id = $rank_of_player->getGuild()->getId(); $guild_name = $rank_of_player->getGuild()->getName(); $main_content .= ' <TR BGCOLOR="'.$bgcolor.'"><td colspan="2"> <img src="/guild_image.php?id='.$guild_id.'" width="100" height="100" border="0" style="border: 1.5pt solid #333332;border-radius: 10px;background-color: rgba(2, 18, 34, 0.38);box-shadow: inset 0px 0px 10px rgba(0,0,0,0.5);margin-left: 10%;"/></a></br> <div style="position: absolute;margin-top: -100px;margin-left: 30%;"> <b style="font-size: x-large;">'.$rank_of_player->getName().' da Guild <span style="color: brown !important;">'.$guild_name.'</span></b></br>Rank: '.$rank_of_player->getName().' of the <a href="?subtopic=guilds&action=show&guild='.$guild_id.'">'.$guild_name.'</a><br>'; $castle24 = $SQL->query('SELECT `winner_id`, `winner_guild`, `winner_guild_id`, `data`,`hora` FROM `castle` ORDER BY `id` DESC;'); $exclusivecastle = $SQL->query('SELECT `winner_id`, `winner_guild`, `winner_guild_id`, `data`,`hora` FROM `exclusivecastle` ORDER BY `id` DESC;'); foreach($castle24 as $info) { if ($info['winner_guild_id'] == ''.$guild_id.'') $main_content .= ' <img src="images/castle.png" style="margin:0 0px -1px 0" border="0"><b> <span style="background: transparent url(images/bg.gif);color:white;text-shadow: black 1px 1px 10px;">Guild dona do Castle 24 Horas atualmente. </b></span><img src="images/castle.png" style="margin:0 0px -1px 0" border="0"><br>'; } foreach($exclusivecastle as $info) { if ($info['winner_guild_id'] == ''.$guild_id.'') $main_content .= ' <img src="images/castle.png" style="margin:0 0px -1px 0" border="0"><b> <span style="background: transparent url(images/bg.gif);color:white;text-shadow: black 1px 1px 10px;">Guild dona do Exclusive Castle atualmente! </b></span><img src="images/castle.png" style="margin:0 0px -1px 0" border="0">'; } $main_content .= '</div></TD></TR>'; } } $main_content .= '</TD></TR></TABLE></TABLE> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div>'; /* Quest list show By Leandrozera $quests = $config['site']['quests']; $questCount = count($config['site']['quests']); $questCountDone = 0; $colunmNum = 1; # Mostras as quests $questList .= '<tr bgcolor="'.$bgcolor.'">'; foreach($quests as $storage => $name) { $quest = $SQL->query("SELECT * FROM `player_storage` WHERE `player_id` = '" . $player->getId() . "' AND `key` = '" . $quests[$storage] . "';")->fetch(); $questList .= ' <td width="1%" style="border:1px solid #faf0d7;"> <img src="images/'.(($quest == false) ? 'false' : 'true').'.png"> </td> <td width="47%" style="font-size:12px;border:1px solid #faf0d7;'.(($quest == false) ? '' : 'font-weight:bold;color:green;').'">'.$storage.'</td>'; if ($quest == true) $questCountDone++; if ($colunmNum % 2 == 0) { if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $questList .= '</tr><tr bgcolor="'.$bgcolor.'">'; } $colunmNum++; } $questList .= '</tr>'; ///////////////////////////////////////// // Quest list show By Leandrozera $pegatasks = $config['site']['tasks']; $tasksCount = count($config['site']['tasks']); $tasksCountDone = 0; $colunmNum = 1; # Mostras as tasks $tasksList .= '<tr bgcolor="'.$bgcolor.'">'; foreach($pegatasks as $name => $storage) { $tasks = $SQL->query("SELECT * FROM `player_storage` WHERE `player_id` = '" . $player->getId() . "' AND `key` = '" . $storage . "' AND `value` >= '1'")->fetch(); $tasksList .= ' <td width="1%" style="border:1px solid #faf0d7;"> <img src="images/'.(($tasks == false) ? 'false' : 'true').'.png"> </td> <td width="47%" style="font-size:12px;border:1px solid #faf0d7;'.(($tasks == false) ? '' : 'font-weight:bold;color:green;').'">'.$name.'</td>'; if ($tasks == true) $tasksCountDone++; if ($colunmNum % 2 == 0) { if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $tasksList .= '</tr><tr bgcolor="'.$bgcolor.'">'; } $colunmNum++; } $tasksList .= '</tr>'; ///////////////////////////////////////// $resultados = count($quests); $resultFinal = round(($questCountDone/$resultados)*100); $resultFinal = str_pad($resultFinal, 2, "0", STR_PAD_LEFT); $resultadostask = count($pegatasks); $resultFinaltask = round(($tasksCountDone/$resultadostask)*100); $resultFinaltask = str_pad($resultFinaltask, 2, "0", STR_PAD_LEFT); $main_content .= ' <br /> <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Other Infos</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);"></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table border="0" cellspacing="1" cellpadding="4" width="100%"><tbody><tr bgcolor="#505050"><td colspan="2" width="15%" class="white"><img id="ButtonQuests" onmousedown="ToggleMaskedText(\'Quests\');" style="vertical-align:middle;cursor:pointer;" src="'.$layout_name.'/images/general/show.gif"> <b>Quests: </b></td><td> <progress max="100" value="'.$resultFinal.'"></progress></b></td><td class="white"><b>'.$resultFinal.'%</b></td></tr></tbody></table> <span id="DisplayQuests"></span> <span id="MaskedQuests" style="visibility:hidden;display:none"></span><span id="ReadableQuests" style="visibility:hidden;display:none"><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR bgcolor='.$config['site']['vdarkborder'].'></TR>'.$questComplet.''.$questList.'</TABLE></span> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);"></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);"></div> </div> </div> </td> </tr> </tbody> </table> <table style="width:100%;margin-top: -6px;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);"></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table border="0" cellspacing="1" cellpadding="4" width="100%"><tbody><tr bgcolor="#505050"><td colspan="2" width="15%" class="white"><img id="ButtonTasks" onmousedown="ToggleMaskedText(\'Tasks\');" style="vertical-align:middle;cursor:pointer;" src="'.$layout_name.'/images/general/show.gif"> <b>Tasks: </b></td><td> <progress max="100" value="'.$resultFinaltask.'"></progress></td><td class="white"><b>'.$resultFinaltask.'%</b></td></tr></tbody></table> <span id="DisplayTasks"></span> <span id="MaskedTasks" style="visibility:hidden;display:none"></span><span id="ReadableTasks" style="visibility:hidden;display:none"><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR bgcolor='.$config['site']['vdarkborder'].'></TR>'.$tasksComplet.''.$tasksList.'</TABLE></span> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);"></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);"></div> </div> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div>'; */ // Vip List show if($config['site']['showVipList']) { // Table player_viplist: player_id, vip_id // Table account_viplist: account_id, world_id, player_id $vip = 0; if($config['server']['separateVipListPerCharacter'] == false) $vipLists = $SQL->query('SELECT * FROM `account_viplist` WHERE `account_id` = '.$account->getId().';'); else $vipLists = $SQL->query('SELECT * FROM `player_viplist` WHERE `player_id` = '.$player->getId().';'); foreach($vipLists as $vipList) { if($config['server']['separateVipListPerCharacter'] == false) $result = $SQL->query('SELECT * FROM `players` WHERE `id` = '.$vipList['player_id'].';'); else $result = $SQL->query('SELECT * FROM `players` WHERE `id` = '.$vipList['vip_id'].';'); foreach($result as $listVip) { $vip++; if($config['site']['show_flag']) { $accounts = $SQL->query('SELECT * FROM accounts WHERE id = '.$listVip['account_id'].'')->fetch(); $flags = '<image src="http://images.boardhost.com/flags/'.$accounts['flag'].'.png"/> '; } if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $vipResult .= '<tr bgcolor='.$bgcolor.'> <td>'.$vip.'</td> <td> '.$flags.'<a href="index.php?subtopic=characters&name='.urlencode($listVip['name']).'">'.$listVip['name'].'</a>'; if($config['site']['showMoreInfo']) $vipResult .= '<br><small>Level: '.$listVip['level'].', '.$vocation_name[$listVip['world_id']][$listVip['promotion']][$listVip['vocation']].', '.$config['site']['worlds'][$listVip['world_id']].'</small>'; $vipResult .= '</td> </tr>'; } } if($vip > 0) $main_content .= '<br><table border=0 cellspacing=1 cellpadding=4 width=100%><TR bgcolor='.$config['site']['vdarkborder'].'><TD align="left" COLSPAN=2 CLASS=white><B>Vip List</B></TD></TR>'.$vipResult.'</table>'; } // Deaths list $deads = 0; $player_deaths = $SQL->query('SELECT `id`, `date`, `level` FROM `player_deaths` WHERE `player_id` = '.$player->getId().' ORDER BY `date` DESC LIMIT 0,'.$config['site']['limitDeath'].''); foreach($player_deaths as $death) { if(is_int($number_of_rows / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $number_of_rows++; $deads++; $dead_add_content .= "<tr bgcolor=\"".$bgcolor."\"> <td width=\"20%\" align=\"center\" style=\"border:1px solid #faf0d7;\">".date("j M Y, H:i", $death['date'])."</td> <td style=\"border:1px solid #faf0d7;\">"; $killers = $SQL->query("SELECT environment_killers.name AS monster_name, players.name AS player_name, players.deleted AS player_exists FROM killers LEFT JOIN environment_killers ON killers.id = environment_killers.kill_id LEFT JOIN player_killers ON killers.id = player_killers.kill_id LEFT JOIN players ON players.id = player_killers.player_id WHERE killers.death_id = ".$SQL->quote($death['id'])." ORDER BY killers.final_hit DESC, killers.id ASC")->fetchAll(); $i = 0; $count = count($killers); foreach($killers as $killer) { $i++; if(in_array($i, array(1, $count))) $killer['monster_name'] = str_replace(array("an ", "a "), array("", ""), $killer['monster_name']); if($killer['player_name'] != "") { if($i == 1) $dead_add_content .= "Killed at level <b>".$death['level']."</b> by "; else if($i == $count) $dead_add_content .= " and by "; else $dead_add_content .= ", "; if($killer['monster_name'] != "") $dead_add_content .= $killer['monster_name']." summoned by "; if($killer['player_exists'] == 0) $dead_add_content .= "<a href=\"index.php?subtopic=characters&name=".urlencode($killer['player_name'])."\">"; $dead_add_content .= $killer['player_name']; if($killer['player_exists'] == 0) $dead_add_content .= "</a>"; } else { if($i == 1) $dead_add_content .= "Died at level <b>".$death['level']."</b> by "; else if($i == $count) $dead_add_content .= " and by "; else $dead_add_content .= ", "; $dead_add_content .= $killer['monster_name']; } if($i == $count) $dead_add_content .= "."; } $dead_add_content .= ".</td></tr>"; } if($deads == 0) { if(is_int($number_of_rows / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $dead_add_content .= "<tr bgcolor=\"".$bgcolor."\"> <td style=\"border:1px solid #faf0d7;\"><center>This player doesn't have any deaths yet!</center></td></tr>"; } //frags list by Xampy $frags_limit = 250; // frags limit to show? // default: 10 $player_frags = $SQL->query('SELECT `player_deaths`.*, `players`.`name`, `killers`.`unjustified` FROM `player_deaths` LEFT JOIN `killers` ON `killers`.`death_id` = `player_deaths`.`id` LEFT JOIN `player_killers` ON `player_killers`.`kill_id` = `killers`.`id` LEFT JOIN `players` ON `players`.`id` = `player_deaths`.`player_id` WHERE `player_killers`.`player_id` = '.$player->getId().' AND `killers`.`unjustified` = 0 ORDER BY `date` DESC LIMIT 0,'.$frags_limit.';'); if(count($player_frags)) { $frag_add_content .= ' <br><div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Frags and Deaths</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><img id="ButtonInjust" onMouseDown="ToggleMaskedText(\'Injust\');" style="vertical-align:middle;cursor:pointer;" src="'.$layout_name.'/images/global/general/show.gif"/> <B>Frags Justified</B></TD></TR></TABLE> <span id="DisplayInjust" ></span> <span id="MaskedInjust" style="visibility:hidden;display:none" ></span>'; $frags = 0; $frag_add_content .= '<span id="ReadableInjust" style="visibility:hidden;display:none" ><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>'; foreach($player_frags as $frag) { $frags++; if(is_int($number_of_rows / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $number_of_rows++; $frag_add_content .= "<tr bgcolor=\"".$bgcolor."\"> <td width=\"20%\" align=\"center\" style=\"border:1px solid #faf0d7;\">".date("j M Y, H:i", $frag['date'])."</td> <td style=\"border:1px solid #faf0d7;\">".(($player->getSex() == 0) ? 'She' : 'He')." fragged <a href=\"index.php?subtopic=characters&name=".$frag[name]."\">".$frag[name]."</a> at level ".$frag[level].""; $frag_add_content .= ". (".(($frag[unjustified] == 0) ? "<font size=\"1\" color=\"green\">Justified</font>" : "<font size=\"1\" color=\"red\">Unjustified</font>").")</td></tr>"; } if($frags == 0) { if(is_int($number_of_rows / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $frag_add_content .= "<tr bgcolor=\"".$bgcolor."\"> <td style=\"border:1px solid #faf0d7;\"><center>This player doesn't have any frags yet!</center></td></tr>"; } if($frags >= 0) $main_content .= $frag_add_content . '</TABLE></span> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div>'; } //frags list by Xampy $frags_limit = 250; // frags limit to show? // default: 10 $player_frags_unjust = $SQL->query('SELECT `player_deaths`.*, `players`.`name`, `killers`.`unjustified` FROM `player_deaths` LEFT JOIN `killers` ON `killers`.`death_id` = `player_deaths`.`id` LEFT JOIN `player_killers` ON `player_killers`.`kill_id` = `killers`.`id` LEFT JOIN `players` ON `players`.`id` = `player_deaths`.`player_id` WHERE `player_killers`.`player_id` = '.$player->getId().' AND `killers`.`unjustified` = 1 ORDER BY `date` DESC LIMIT 0,'.$frags_limit.';'); if(count($player_frags_unjust)) { $frag_unjust_add_content .= ' <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><img id="ButtonUnjust" onMouseDown="ToggleMaskedText(\'Unjust\');" style="vertical-align:middle;cursor:pointer;" src="'.$layout_name.'/images/global/general/show.gif"/> <B>Frags Unjustified</B></TD></TR></TABLE> <span id="DisplayUnjust" ></span> <span id="MaskedUnjust" style="visibility:hidden;display:none" ></span>'; $frags = 0; $frag_unjust_add_content .= '<span id="ReadableUnjust" style="visibility:hidden;display:none" ><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>'; foreach($player_frags_unjust as $frag_unjust) { $frags++; if(is_int($number_of_rows / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $number_of_rows++; $frag_unjust_add_content .= "<tr bgcolor=\"".$bgcolor."\"> <td width=\"20%\" align=\"center\" style=\"border:1px solid #faf0d7;\">".date("j M Y, H:i", $frag_unjust['date'])."</td> <td style=\"border:1px solid #faf0d7;\">".(($player->getSex() == 0) ? 'She' : 'He')." fragged <a href=\"index.php?subtopic=characters&name=".$frag_unjust[name]."\">".$frag_unjust[name]."</a> at level ".$frag_unjust[level].""; $frag_unjust_add_content .= ". (".(($frag_unjust[unjustified] == 0) ? "<font size=\"1\" color=\"green\">Justified</font>" : "<font size=\"1\" color=\"red\">Unjustified</font>").")</td></tr>"; } if($frags == 0) { if(is_int($number_of_rows / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $frag_unjust_add_content .= "<tr bgcolor=\"".$bgcolor."\"> <td style=\"border:1px solid #faf0d7;\"><center>This player doesn't have any unjustified frags yet!</center></td></tr>"; } if($frags >= 0) $main_content .= $frag_unjust_add_content . '</TABLE></span> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><img id="ButtonDeaths" onMouseDown="ToggleMaskedText(\'Deaths\');" style="vertical-align:middle;cursor:pointer;" src="'.$layout_name.'/images/global/general/show.gif"/> <B>Deaths</B></TD></TR></TABLE> <span id="DisplayDeaths" ></span> <span id="MaskedDeaths" style="visibility:hidden;display:none" ></span> <span id="ReadableDeaths" style="visibility:hidden;display:none"> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> ' . $dead_add_content . ' </TABLE></span> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> </div> </td> </tr> </tbody> </table> </div> </tbody> </table> </div>'; } // onther info if(!$player->getHideChar() || $group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $main_content .= '<BR> <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Account Information</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>'; $group = $player->getGroup(); if ($group == 2){$group_name = 'Tutor';} if ($group == 3){$group_name = 'Senior Tutor';} if ($group == 4){$group_name = 'Gamemaster';} if ($group == 5){$group_name = 'Community Manager';} if ($group == 6){$group_name = 'God';} if ($group == 7){$group_name = 'Administrador';} if($group != 1) { $main_content .= '<TR BGCOLOR='.$config['site']['darkborder'].'><TD style="border:1px solid #faf0d7;">Position:</TD><TD style="border:1px solid #faf0d7;">'.$group_name.'</TD></TR>'; } $name = $account->getRLName(); if(!empty($name)){ $main_content .= '<TR BGCOLOR='.$config['site']['lightborder'].'><TD WIDTH=20% style="border:1px solid #faf0d7;">Real Name:</TD><TD style="border:1px solid #faf0d7;">'.htmlspecialchars($account->getRLName()).'</TD></TR>'; } $location = $account->getLocation(); if(!empty($location)){ $main_content .= '<TR BGCOLOR='.$config['site']['darkborder'].'><TD WIDTH=20% style="border:1px solid #faf0d7;">Location:</TD><TD style="border:1px solid #faf0d7;">'.htmlspecialchars($account->getLocation()).'</TD></TR>'; } if($account->getCreateDate()) { if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR='.$config['site']['lightborder'].'><TD WIDTH=20% style="border:1px solid #faf0d7;">Created:</TD><TD style="border:1px solid #faf0d7;">'.date("j F Y, g:i a", $account->getCreateDate()).'</TD></TR>'; /*Vip Status*/ if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['darkborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD style="border:1px solid #faf0d7;">Premium Status:</TD><TD style="border:1px solid #faf0d7;">'; $main_content .= ($account->getPremDays()) ? '<font color="green" ><b>Premium Account</b></font>' : '<font color="red"><b>Free Account</b></font>'; } if($account->isBanned()) if($account->getBanTime() > 0) $main_content .= '<font color="red"> [Banished until '.date("j F Y, G:i", $account->getBanTime()).']</font>'; else $main_content .= '<font color="red"> [Banished FOREVER]</font>'; $main_content .= '</TABLE> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div>'; $main_content .= '<BR> <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Characters</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> <TR BGCOLOR='.$config['site']['darkborder'].'><TD style="border:1px solid #faf0d7;"><b>Outfit</b></TD><TD style="border:1px solid #faf0d7;"><B>Name</B></TD><TD style="border:1px solid #faf0d7;"width="20%"><B>World</B></TD><TD style="border:1px solid #faf0d7;"><b>Status</b></TD><TD style="border:1px solid #faf0d7;"><B> </B></TD></TR>'; $account_players = $account->getPlayersList(); $player_number = 0; foreach($account_players as $player_list) { if(!$player_list->getHideChar() || $group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $player_number++; if(is_int($player_number / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; if(!$player_list->isOnline()) $player_list_status = '<font color="red" ><b>Offline</b></font>'; else $player_list_status = '<font color="green" ><b>Online</b></font>'; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><td style="border:1px solid #faf0d7;"><div style="position: relative; width: 32px; height: 32px;"><div style="background-image: url('. $config['site']['outfit_images_url'] .'?id='.$player_list->getCustomField("looktype").'&addons='.$player_list->getCustomField("lookaddons").'&head='.$player_list->getCustomField("lookhead").'&body='.$player_list->getCustomField("lookbody").'&legs='.$player_list->getCustomField("looklegs").'&feet='.$player_list->getCustomField("lookfeet").'); position: absolute; width: 64px; height: 80px; background-position: bottom right; background-repeat: no-repeat; right: -10px; bottom: 0px;"></div></div> </td><TD WIDTH=18% style="border:1px solid #faf0d7;"><NOBR>'.$player_number.'. '.$player_list->getName(); $main_content .= ($player_list->isDeleted()) ? '<font color="red"> [DELETED]</font>' : ''; $main_content .= '</NOBR></TD><TD WIDTH=12% style="border:1px solid #faf0d7;">'.$config['site']['worlds'][$player_list->getWorld()].'<TD WIDTH="60%" style="border:1px solid #faf0d7;"><b>'.$player_list_status.'</b></TD><TD style="border:1px solid #faf0d7;"><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=characters" METHOD=post><TR><TD><INPUT TYPE=hidden NAME=name VALUE="'.$player_list->getName().'"><INPUT TYPE=image NAME="View '.$player_list->getName().'" ALT="View '.$player_list->getName().'" SRC="'.$layout_name.'/images/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></FORM></TABLE></TD></TR>'; } } $main_content .= '</TABLE> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div>'; } $main_content .= '<BR><FORM AUTOCOMPLETE="OFF" ACTION="?subtopic=characters" METHOD=post> <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Search Character</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['darkborder'].'" style="border:1px solid #faf0d7;"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" onkeyup="showResult(this.value)" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR> <tr> <td></td> <td style="max-height: 0px; display: inline-block;"> <div style="background-color: white; z-index: 1000; position: absolute; width: 170px;" class="" id="livesearch"></div></td> </tr></TABLE></TD></TR></TABLE> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div></FORM>'; $main_content .= '</TABLE>'; } else $search_errors[] = 'Character <b>'.$name.'</b> does not exist.'; } else $search_errors[] = 'This name contains invalid letters. Please use only A-Z, a-z and space.'; if(!empty($search_errors)) { $main_content .= '<div class="SmallBox" > <div class="MessageContainer" > <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="ErrorMessage" > <div class="BoxFrameVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="BoxFrameVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="AttentionSign" style="background-image:url('.$layout_name.'/images/content/attentionsign.gif);" /></div><b>The Following Errors Have Occurred:</b><br/>'; foreach($search_errors as $search_error) $main_content .= '<li>'.$search_error; $main_content .= '</div> <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> </div></div><br/>'; $main_content .= '<BR><FORM AUTOCOMPLETE="OFF" ACTION="?subtopic=characters" METHOD=post> <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Search Character</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop" > <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div> </div> <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" > <div class="TableContentContainer" > <TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT onkeyup="showResult(this.value)" NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR><tr> <td></td> <td style="max-height: 0px; display: inline-block;"> <div style="background-color: white; z-index: 1000; position: absolute; width: 170px;" class="" id="livesearch"></div></td> </tr></TABLE> </TD></TR></TABLE> </div> </div> <div class="TableShadowContainer" > <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" > <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div> </div> </div> </td> </tr> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div></FORM>'; } } ?>
-
Erro script lootring
Bom, aparentemente o erro não aparece mais, só que por exemplo, coloquei a rate 5000 pra testar e só dropa alguns loots faceis, por exemplo: o DL só dropa a dragon slayer, DSM ou RH continua com rate normal.
-
Erro script lootring
Ainda está dando erro. Esse é um dos monstros que constatei quando mata usando o ring aparece o erro na distro <?xml version="1.0" encoding="UTF-8"?> <monster name="Dark Apprentice" nameDescription="a dark apprentice" race="blood" experience="100" speed="220" manacost="0"> <health now="225" max="225"/> <look type="133" head="78" body="38" legs="95" feet="115" addons="1" corpse="3058"/> <targetchange interval="5000" chance="30"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="4"/> <flag staticattack="90"/> <flag runonhealth="80"/> </flags> <attacks> <attack name="melee" interval="2000" skill="30" attack="30"/> <attack name="fire" interval="2000" chance="7" range="7" radius="1" target="1" min="-2" max="-26"> <attribute key="shootEffect" value="fire"/> <attribute key="areaEffect" value="fireattack"/> </attack> <attack name="energy" interval="2000" chance="10" range="7" target="1" min="-10" max="-20"> <attribute key="shootEffect" value="energyball"/> <attribute key="areaEffect" value="energy"/> </attack> <attack name="physical" interval="2000" chance="8" range="7" target="1" min="-0" max="-24"> <attribute key="shootEffect" value="smallstone"/> </attack> <attack name="outfit" interval="2000" chance="10" monster="cyclops" duration="5000"/> </attacks> <defenses armor="15" defense="20"> <defense name="outfit" interval="2000" chance="10" monster="green frog" duration="5000"/> <defense name="healing" interval="2000" chance="12" min="50" max="75"> <attribute key="areaEffect" value="blueshimmer"/> </defense> <defense name="invisible" interval="2000" chance="6" duration="5000"> <attribute key="areaEffect" value="redshimmer"/> </defense> </defenses> <elements> <element deathPercent="-5"/> </elements> <immunities> <immunity invisible="1"/> </immunities> <voices interval="5000" chance="10"> <voice sentence="Outch!"/> <voice sentence="Oops, I did it again."/> <voice sentence="From the spirits that I called Sir, deliver me!"/> <voice sentence="I must dispose of my masters enemies!"/> </voices> <loot> <item id="7618" chance="2775" /><!-- health potion --> <item id="13226" chance="800" /><!-- Reins --> <item id="2148" countmax="45" chance="39500" /><!-- gold coin --> <item id="2260" countmax="3" chance="6100" /><!-- blank rune --> <item id="1987" chance="100000"><!-- bag --> <inside> <item id="7620" chance="3050" /><!-- mana potion --> <item id="2191" chance="2300" /><!-- wand of dragonbreath --> <item id="5934" chance="7900" /><!-- dead frog --> </inside> </item> </loot> </monster>
-
Stamina bugada fica vermelha e ainda dropa loot e exp
Boa tarde seus lindos, to enchendo o saco de novo. A Stamina passa das 14-12-10hrs e ainda continua dropando loot dos monstros e exp. Alguém sabe onde altera isso na source e como faz? Uso TFS 0.4 protocolo 8.6 Meu config.lua está assim: rateStaminaLoss = 1 rateStaminaGain = 3 rateStaminaThresholdGain = 12 staminaRatingLimitTop = 40 * 60 staminaRatingLimitBottom = 14 * 60 staminaLootLimit = 14 * 60 rateStaminaAboveNormal = 1.5 rateStaminaUnderNormal = 0.5 staminaThresholdOnlyPremium = true