Tudo que Adm Evolution postou
-
[ERRO Config.php]
Consegui ligar o site, porém está com esses erros de cima: Warning: parse_ini_file(cache/DONT_EDIT_serverstatus.txt): failed to open stream: No such file or directory in C:\xampp\htdocs\system\load.compat.php on line 750 Warning: fopen(cache/DONT_EDIT_serverstatus.txt): failed to open stream: No such file or directory in C:\xampp\htdocs\system\load.compat.php on line 772 Warning: rewind() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 779 Warning: fwrite() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 780 Warning: fclose() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 781 Warning: fopen(cache/DONT_EDIT_usercounter.txt): failed to open stream: No such file or directory in C:\xampp\htdocs\system\load.compat.php on line 798 Warning: fputs() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 800 Warning: fclose() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 801
-
[ERRO Config.php]
Agora estou com outro problema: Warning: parse_ini_file(cache/DONT_EDIT_serverstatus.txt): failed to open stream: No such file or directory in C:\xampp\htdocs\system\load.compat.php on line 750 Warning: fopen(cache/DONT_EDIT_serverstatus.txt): failed to open stream: No such file or directory in C:\xampp\htdocs\system\load.compat.php on line 772 Warning: rewind() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 779 Warning: fwrite() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 780 Warning: fclose() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 781 Warning: fopen(cache/DONT_EDIT_usercounter.txt): failed to open stream: No such file or directory in C:\xampp\htdocs\system\load.compat.php on line 798 Warning: fputs() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 800 Warning: fclose() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 801 Error occured! Error ID: More info: CANNOT CONNECT TO DATABASE: SQLSTATE[HY000] [1049] Unknown database 'test1' File: C:\xampp\htdocs\classes/database_mysql.php Line: 22 File: C:\xampp\htdocs\classes/database.php Line: 199 File: C:\xampp\htdocs\pages/latestnews.php Line: 65 File: C:\xampp\htdocs\system/load.page.php Line: 7 File: C:\xampp\htdocs/index.php Line: 39 já alterei todos locais para a Database e mesmo assim continua esse mesmo diretório, tanto o config.lua como também o config.php
-
[ERRO Config.php]
Olá, tudo bem? estou com um probleminha no meu site, que é o Gesior 2020 fiz todo processo de extração dos arquivos diretamente no XXAMP mais recente, porém está dando o seguinte erro: Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\xampp\htdocs\config\config.php on line 4 Já fiz alterações para TRUE E FALSE e continua a mesma coisa, alguém pode me ajudar? segue abaixo o código do config.php <?PHP # Account Maker Config $config['site']['serverPath'] = "C:\Users\Leo\Desktop\OT\baiak_pvp\"; $config['site']['useServerConfigCache'] = true; $config['site']['worlds'] = array(0 => 'RealBaiak'); $towns_list[0] = array(1 => 'Principal'); $config['site']['newchar_towns2'] = 1; // -- AQUI COLOQUE A CITY EM QUE O PERSONAGEM IRÁ NASCER $config['site']['google_captcha_key'] = ""; $config['site']['google_captcha_secret'] = ""; $config['site']['google_captcha_enabled'] = false; $config['site']['google_captcha_host'] = 'realbaiak.com'; #Clock $config['site']['clockactive'] = true; $config['site']['outfit_images_url'] = '/outfit.php'; $config['site']['item_images_url'] = '/images/items/'; $config['site']['item_images_extension'] = '.gif'; $config['site']['flag_images_url'] = '/images/flags/'; $config['site']['flag_images_extension'] = '.png'; $config['site']['players_group_id_block'] = 3; $config['site']['limitDeath'] = 8; $config['site']['levelVideo'] = 100; # PAGE: donate.php $config['site']['usePagseguro'] = true; //true show / false hide $config['site']['usePaypal'] = false; //true show / false hide $config['site']['useDeposit'] = true; //true show / false hide $config['site']['useZaypay'] = false; //true show / false hide $config['site']['useContenidopago'] = false; //true show / false hide $config['site']['useOnebip'] = false; //true show / false hide # Pagseguro config By IVENSPONTES $config['pagSeguro']['email'] = "[email protected]"; //Email Pagseguro $config['pagSeguro']['token'] = "c42de904-e000-43f2-9bd6-becbae40c70fc02b1c934fbdac30e8693604f8ee4691334a-5d17-44e9-a06e-ea0c2a61af53"; // TOKEN $config['pagSeguro']['urlRedirect'] = 'http://baiak-wars.com/index.php?subtopic=pagconcluido'; //turn off redirect and notifications in pagseguro.com.br $config['pagSeguro']['urlNotification'] = 'http://baiak-wars.com/retpagseguro.php'; //your return location $config['pagSeguro']['productName'] = 'Premium Points'; $config['pagSeguro']['productValue'] = 1.00; // 1.50 = R$ 1,50 etc... $config['pagSeguro']['doublePoints'] = true; ## Double points - true is on / false is off $config['pagSeguro']['host'] = 'localhost'; ## YOUR HOST $config['pagSeguro']['database'] = 'baiak'; ## DATABASE $config['pagSeguro']['databaseUser'] = 'root'; ## USER $config['pagSeguro']['databasePass'] = 'b123147456'; ## PASSWORD # Create Account Options $config['site']['one_email'] = true; $config['site']['create_account_verify_mail'] = false; $config['site']['verify_code'] = false; $config['site']['email_days_to_change'] = 3; $config['site']['newaccount_premdays'] = 0; $config['site']['send_register_email'] = false; # Create Character Options $config['site']['newchar_vocations'][0] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample'); $config['site']['newchar_towns'][0] = array(9); $config['site']['max_players_per_account'] = 10; # Emails Config $config['site']['send_emails'] = true; $config['site']['mail_address'] = "[email protected]"; $config['site']['smtp_enabled'] = true; $config['site']['smtp_host'] = "smtp.xxxxx.com.br"; $config['site']['smtp_port'] = 587; $config['site']['smtp_auth'] = true; $config['site']['smtp_user'] = "[email protected]"; $config['site']['smtp_pass'] = "xxx"; # PAGE: whoisonline.php $config['site']['private-servlist.com_server_id'] = 0; /* Server id on 'private-servlist.com' to show Players Online Chart (whoisonline.php page), set 0 to disable Chart feature. To use this feature you must register on 'private-servlist.com' and add your server. Format: number, 0 [disable] or higher */ # PAGE: characters.php $config['site']['quests'] = array('Second Promote' => 722423, 'Cursed Skull' => 722424, 'Special Bags' => 722534, 'Headsplitter' => 722420, 'Donate Quest' => 722513, 'Spiritual Aura' => 722640, '5 Level quest' => 722350, 'Hidden Donate Quest' => 722538, 'PvP Task' => 722510, 'Gonka' => 121219, 'Mega Vip' => 53567, 'Hyper Boots' => 5751, 'Ultimate Donation Ring' => 922066, 'Fast Quest' => 56123, 'Mega Ring' => 54631, 'Vip 3' => 722650, 'Under Free Set' => 722702, 'Under Free Shield' => 722701); $config['site']['show_skills_info'] = false; $config['site']['show_vip_storage'] = 0; # PAGE: accountmanagement.php $config['site']['send_mail_when_change_password'] = false; $config['site']['send_mail_when_generate_reckey'] = false; $config['site']['generate_new_reckey'] = true; $config['site']['generate_new_reckey_price'] = 10; # PAGE: guilds.php $config['site']['guild_need_level'] = 8; $config['site']['guild_need_pacc'] = false; $config['site']['guild_image_size_kb'] = 50; $config['site']['guild_description_chars_limit'] = 2000; $config['site']['guild_description_lines_limit'] = 6; $config['site']['guild_motd_chars_limit'] = 250; # PAGE: adminpanel.php $config['site']['access_admin_panel'] = 3; $config['site']['access_tickers'] = 3; $config['site']['access_admin_painel'] = 3; $config['site']['access_staff_painel'] = 3; # PAGE: latestnews.php $config['site']['news_limit'] = 5; # PAGE: killstatistics.php $config['site']['last_deaths_limit'] = 40; # PAGE: team.php $config['site']['groups_support'] = array(2, 3, 4, 5, 6, 7); # PAGE: highscores.php $config['site']['groups_hidden'] = array(4, 5, 6, 7); $config['site']['accounts_hidden'] = array(1, 2); # PAGE: shopsystem.php $config['site']['shop_system'] = true; $config['site']['shopguild_system'] = true; # PAGE: lostaccount.php $config['site']['email_lai_sec_interval'] = 180; # Layout Config $config['site']['layout'] = 'tibiarl'; $config['site']['vdarkborder'] = '#505050'; $config['site']['darkborder'] = '#D4C0A1'; $config['site']['lightborder'] = '#F1E0C6'; $config['site']['download_page'] = true; $config['site']['serverinfo_page'] = true; ///Lista de itens Characters ///exemplo //$config['site']['itensname'] = array(ID DO ITEM => 'DESCRIÇÃO DO ITEM',ID DO ITEM => 'DESCRIÇÃO DO ITEM'); $config['site']['itensname'] = array( //PvP Backpack 12628 => '(club fighting +3, sword fighting +3, axe fighting +3, distance fighting +3, shielding +3, magic level +3, protection all +3%).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Amulet 11387 => '(club fighting +6, sword fighting +6, axe fighting +6, distance fighting +6, shielding +6, magic level +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Cursed 5785 => '(club fighting +6, sword fighting +6, axe fighting +6, distance fighting +6, magic level +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Mage Legs 12623 => '(Arm:26, magic level +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Elite Legs 2504 => '(Arm:26, club fighting +6, sword fighting +6, axe fighting +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Royal Legs 5918 => '(Arm:26, distance fighting +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Mage Armor 12622 => '(Arm:26, magic level +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Elite Armor 2503 => '(Arm:26, club fighting +6, sword fighting +6, axe fighting +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Royal Armor 6100 => '(Arm:26, distance fighting +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Mage Helmet 12621 => '(Arm:26, magic level +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Elite Helmet 2496 => '(Arm:26, club fighting +6, sword fighting +6, axe fighting +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Royal Helmet 6099 => '(Arm:26, distance fighting +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Mage Book 12624 => '(Def:80, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Elite Shield 2538 => '(Def:100, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Royal Shield 2527 => '(Def:100, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Club 7429 => '(Atk:135).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Sword 7407 => '(Atk:135).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Axe 2443 => '(Atk:135).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Slingshot 5907 => '(Atk:140).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Staff 12288 => '(870~1000).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Mage Boots 7892 => '(protection physical +3%, faster regeneration).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Royal Boots 5462 => '(protection physical +3%, faster regeneration).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Elite Boots 2646 => '(protection physical +3%, faster regeneration).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Mage Ring 2123 => '(magic level +6, protection all +4%, faster regeneration).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Elite Ring 2121 => '(club fighting +6, sword fighting +6, axe fighting +6, protection all +4%, faster regeneration).<br><br><font color="green"><b><big>Item VIP</big></b></font>', //PvP Royal Ring 6300 => '(distance fighting +6, protection all +4%, faster regeneration).<br><br><font color="green"><b><big>Item VIP</big></b></font>'); $SQLlink = mysqli_connect("localhost", "root", "", "ot1"); // EDITAVEL -- Muda aqui se tu deixar essa senha nego vai conseguir usar 1 coisinha que pega senha que esqueci o nome pq vc mexeu no mouse oaskdoaskdasodksa if (!$SQLlink) { echo "Error: Unable to connect to MySQL." . PHP_EOL; echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL; echo "Debugging error: " . mysqli_connect_error() . PHP_EOL; exit; } ?> Agradecido a quem puder me ajudar. ?
-
(Resolvido)Erro Gesior ao criar conta
@Ryaan Resolveu problema, obrigado mano rep+
-
(Resolvido)Erro Gesior ao criar conta
<?php $location = array( 'GER' =>'Europe', // 'USA' =>'North America' ); $default = 'all'; $worlds = array(); $worlds[0] = array('GER', $config['server']['worldType']); /* $worlds[1] = array('GER', 'optional'); $worlds[2] = array('GER', 'hardcore'); $worlds[3] = array('USA', 'open'); $worlds[4] = array('USA', 'optional'); $worlds[5] = array('USA', 'hardcore'); */ $town_array = $towns_list[0]; $town = $config['site']['newchar_towns'][0]; $voc = array(); // if empty, Rook Sample will be used $voc[1] = 'Sorcerer'; $voc[2] = 'Druid'; $voc[3] = 'Paladin'; $voc[4] = 'Knight'; $suggestname = NULL; // not available $version = '1010'; // for download link foreach($worlds as $k =>$v) // remove invalid worlds if(!isset($location[$v[0]]) || !isset($config['site']['worlds'][$k])) unset($worlds[$k]); $tmp = array(); foreach($location as $k =>$v) // remove invalid/unused locations foreach($worlds as $i =>$j) if($j[0] == $k) { $tmp[$k] = $v; break; } $location = $tmp; unset($tmp); if(isset($_POST['step']) && $_POST['step'] == 'docreate') { $e = array(); $s = isset($_POST['accountname']) ? $_POST['accountname'] : ''; if($s == '') $e['acc'] = 'Please enter an account name!'; elseif(strlen($s) < 6) $e['acc'] = 'This account name is too short!'; elseif(strlen($s) > 10) $e['acc'] = 'This account name is too long!'; else { $s = strtoupper($s); if(!ctype_alnum($s)) $e['acc'] = 'This account name has an invalid format. Your account name may only consist of numbers 0-9 and letters A-Z!'; elseif(!preg_match('/[A-Z0-9]/', $s)) $e['acc'] = 'Your account name must include at least one letter A-Z!'; else { $acc = new Account($s, Account::LOADTYPE_NAME); if($acc->isLoaded()) $e['acc'] = 'This account name is already used. Please select another one!'; } } if(!isset($_POST['world']) || empty($_POST['world'])) $e['world'] = 'Please select a game world for your character!'; $s = isset($_POST['email']) ? $_POST['email'] : ''; if($s == '') $e['email'] = 'Please enter your email address!'; elseif(strlen($s) > 49) $e['email'] = 'Your email address is too long!'; elseif(!filter_var($s, FILTER_VALIDATE_EMAIL)) $e['email'] = 'This email address has an invalid format. Please enter a correct email address!'; else { if ($config['site']['one_email'] == true){ $accMailCheck = new Account($s, Account::LOADTYPE_MAIL); if($accMailCheck->isLoaded()) $e['email'] = 'This email address is already used. Please enter another email address!'; } } $s1 = isset($_POST['password1']) ? $_POST['password1'] : ''; $s2 = isset($_POST['password2']) ? $_POST['password2'] : ''; if(empty($s2)) $e['pass'] = 'Please enter the password again!'; elseif($s1 != $s2) $e['pass'] = 'The two passwords do not match!'; else { $err = array(); if(strlen($s1) < 8 || strlen($s1) > 29) $err[] = 'The password must have at least 8 and less than 30 letters!'; if (!preg_match("#.*^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).*$#", $s1)) $err[] = 'Your password need: [Seu password precisa]<br> Upperletters [Letras maiúsculas]<br>Lowerletters [Letras minúsculas]<br>Numbers [Números]<br> Example: myPassword321'; if(!ctype_alnum($s1)) $err[] = 'The password contains invalid letters!'; if(count($err) != 0) { $e['pass'] = ''; for($i=0; $i < count($err); $i++) $e['pass'] .= ($i == 0 ? '' : '<br/>').$err[$i]; } } if(!isset($_POST['agreerules']) || empty($_POST['agreerules'])) $e['rules'] = 'You have to agree to the Tibia Rules in order to create an account!'; if(count($e) == 0) { $worldid = NULL; foreach($config['site']['worlds'] as $id =>$name) if($worlds[$id] && $name == $_POST['world']) { $worldid = $id; break; } if($worldid === FALSE) $e['world'] = 'Please select a valid game world.'; } if(count($e) != 0) { $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($e as $error) $main_content .= $error.'<br/>'; $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/>'; } else { $reg_account = new Account(); $reg_account->setName($_POST['accountname']); $reg_account->setPassword($_POST['password1']); $reg_account->setEMail($_POST['email']); $reg_account->setGroupID(1); $reg_account->setCreateDate(time()); $reg_account->setCreateIP(Visitor::getIP()); $reg_account->setFlag(Website::getCountryCode(long2ip(Visitor::getIP()))); if(isset($config['site']['newaccount_premdays']) && $config['site']['newaccount_premdays'] > 0) { $reg_account->set("premdays", $config['site']['newaccount_premdays']); $reg_account->set("lastday", time()); } $reg_account->save(); if($reg_account->getID() > 0) { } else die('Failed to create account.'); $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="Message"><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><table><tr><td class="LabelV">Note:</td><td style="width:100%"><p><font color=green>Your account have been created successfully.<font></p></td></tr><tr><td class="LabelV">Make:</td><td style="width:100%"><p>Access your account and create the your character.</p></td></tr></table></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> <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><br/><div class="TableContainer"><table class="Table4" cellpadding="0" cellspacing="0"><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">Download Client</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><tr><td><div class="InnerTableContainer"><table style="width:100%"><tr><td><table width="100%" cellpadding=0 cellspacing=0><tr><td style="vertical-align:top"><div class="TableShadowContainerRightTop"><div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif)"></div></div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif)"><div class="TableContentContainer"><table class="TableContent" width="100%"><tr><td><table style="width:100%;text-align:center"><tr><td><a href="?subtopic=downloads" type="application/octet-stream"><img style="width:180px;height:180px;border:0px" src="account/download_windows.png"/></a></td><td><a href="http://www.mediafire.com/download/6x0ft0462tgv1g2/ipchanger.rar" type="application/octet-stream" target="_blanck"><img style="width:180px;height:180px;border:0px" src="account/download_linux.png"/><br/></a></td></tr><tr><td valign="top"><a href="?subtopic=downloads" type="application/octet-stream">Windows Tibia Client 8.60</a></td><td valign="top"><a href="http://www.mediafire.com/download/6x0ft0462tgv1g2/ipchanger.rar" type="application/octet-stream" target="_blanck">IP Changer</a></td></tr><tr><td colspan="2">[<span class="HelpLink" onClick="window.open(\'http://www.tibia.com/support/content/help.php?subtopic=requirementes\', \'Help\', \'width=380px, height=310px, scrollbars=yes\')"><a>system requirements</a></span>]</td></tr></table></td></tr></table></div></div><div class="TableShadowContainer"><div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif)"><div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif)"></div><div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-br.gif)"></div></div></div></td><td style="vertical-align:top"><div class="TableShadowContainerRightTop"><div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif)"></div></div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif)"><div class="TableContentContainer"><table class="TableContent" width="100%"><tr><td style="text-align:center"><img style="width:254px;height:218px;margin:7px" src="account/successful_download.jpg"/></td></tr></table></div></div><div class="TableShadowContainer"><div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif)"><div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif)"></div><div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-br.gif)"></div></div></div></td></tr></table><tr><td><div class="TableShadowContainerRightTop"><div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif)"></div></div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif)"><div class="TableContentContainer"><table class="TableContent" width="100%"><tr><td class="LabelV">Disclaimer</td></tr><tr><td>The software and any related documentation is provided "as is" without warranty of any kind. The entire risk arising out of use of the software remains with you. In no event shall CipSoft GmbH be liable for any damages to your computer or loss of data.</td></tr></table></div></div><div class="TableShadowContainer"><div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif)"><div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif)"></div><div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-br.gif)"></div></div></div></td></tr></table></div></table></div></td></tr>'; return; } } else $_POST['step'] = ''; $main_content .= '<script type="text/javascript" src="account/jquery.js"></script> <script type="text/javascript" src="account/create_character.js"></script> <script type="text/javascript">var PreselectServerLocation="'.$default.'";var g_FormName="CreateAccountAndCharacter";var g_FieldName="accountname";document.getElementById("ActiveSubmenuItemIcon_createaccount").style.visibility = "visible";'; foreach($worlds as $k =>$v) // create dynamic server list $main_content .= 'ServerList.push(new Array(\''.$config['site']['worlds'][$k].'\', \''.$v[0].'\', \''.$v[1].'\'));'; $main_content .= '</script><div style="position:relative;top:0px;left:0px"><form action="?subtopic=createaccount" method=post name="CreateAccountAndCharacter"><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/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">Create New Account</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><tr><td><div class="InnerTableContainer"><table style="width:100%"><tr><td><div class="TableShadowContainerRightTop"><div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif)"></div></div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif)"><div class="TableContentContainer"><table class="TableContent" width="100%"><tr><td class="LabelV150" width="20%"><span id="accountname_label"'.(isset($e['acc']) ? ' class="red"' : '').'><b>Account Name:</b></span></td><td><input id="accountname" onkeyup="checkAccount();" name="accountname" autocomplete="off" class="CipAjaxInput" style="width:206px;float:left" value="'.(isset($_POST['accountname']) ? htmlspecialchars(substr($_POST['accountname'], 0, 30)) : '').'" size="30" maxlength="30" onBlur="SendAjaxCip({DataType: \'Container\'}, {Href: \'account/ajax_accountname.php\',PostData: \'a_AccountName=\'+this.value,Method: \'POST\'})"/><div id="accountname_indicator" class="InputIndicator" style="background-image:url(account/'.($_POST['step'] != 'docreate' || isset($e['acc']) ? 'n' : '').'ok.gif)"></div></td></tr><tr><td></td><td><span id="accountname_errormessage" class="FormFieldError">'.(isset($e['acc']) ? $e['acc'] : '').'</span></td></tr><tr><td class="LabelV150"><span id="email_label"'.(isset($e['email']) ? ' class="red"' : '').'><b>Email Address:</b></span></td><td><input id="email" onkeyup="checkEmail();" name="email" class="CipAjaxInput" style="width:206px;float:left" value="'.(isset($_POST['email']) ? htmlspecialchars(substr($_POST['email'], 0, 50)) : '').'" autocomplete="off" size="30" maxlength="50" onBlur="SendAjaxCip({DataType: \'Container\'}, {Href: \'account/ajax_email.php\',PostData: \'a_EMail=\'+this.value,Method: \'POST\'})"/><div id="email_indicator" class="InputIndicator" style="background-image:url(account/'.($_POST['step'] != 'docreate' || isset($e['email']) ? 'n' : '').'ok.gif)"></div></td></tr><tr><td></td><td><span id="email_errormessage" class="FormFieldError">'.(isset($e['email']) ? $e['email'] : '').'</span></td></tr><tr><td class="LabelV150"><span id="password1_label"'.(isset($e['pass']) ? ' class="red"' : '').'><b>Password:</b></span></td><td><input id="password1" onkeyup="checkPassword1()" type="password" autocomplete="off" name="password1" style="width:206px;float:left" value="'.(isset($_POST['password1']) ? htmlspecialchars(substr($_POST['password1'], 0, 30)) : '').'" size="30" maxlength="30" onBlur="SendAjaxCip({DataType: \'Container\'}, {Href: \'account/ajax_password.php\',PostData: \'a_Password1=\'+getElementById(\'password1\').value+\'&a_Password2=\'+getElementById(\'password2\').value,Method: \'POST\'})"/><div id="password1_indicator" class="InputIndicator" style="background-image:url(account/'.($_POST['step'] != 'docreate' || isset($e['pass']) ? 'n' : '').'ok.gif)"></div></td></tr><tr><td class="LabelV150"><span id="password2_label"'.(isset($e['pass']) ? ' class="red"' : '').'><b>Password Again:</b></span></td><td><input id="password2" onkeyup="checkPassword2()" type="password" name="password2" style="width:206px;float:left" value="'.(isset($_POST['password2']) ? htmlspecialchars(substr($_POST['password2'], 0, 30)) : '').'" size="30" maxlength="30" onBlur="SendAjaxCip({DataType: \'Container\'}, {Href: \'account/ajax_password.php\',PostData: \'a_Password1=\'+getElementById(\'password1\').value+\'&a_Password2=\'+getElementById(\'password2\').value,Method: \'POST\'})"/><div id="password2_indicator" class="InputIndicator" style="background-image:url(account/'.($_POST['step'] != 'docreate' || isset($e['pass']) ? 'n' : '').'ok.gif)"></div><br><font size=1><b>Y</b>our password needs 8 digits or more, letters uppercase, lowercase and numbers.<br/><b>A</b> senha precisa de 8 digitos ou mais, letras maiúsculas, minúsculas e números.</font></td></tr><tr><td></td><td><span id="password_errormessage" class="FormFieldError">'.(isset($e['pass']) ? '' : '').'</span></td></tr></table></div></div><div class="TableShadowContainer"><div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif)"><div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif)"></div><div class="TableShadowContainerRightTop"><table class="TableContent" width="100%">'; $main_content .= '</table></div></div><tr><td><div class="TableShadowContainerRightTop"><div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif)"></div></div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif)"><div class="TableContentContainer"><table class="TableContent" width="100%">'; if(count($location)>1) { // show server location filter $main_content .= '<tr id="filterbox_location"><td class="LabelV150"><span'.(isset($e['world']) ? ' class="red"' : '').'>World Location:</span></td><td><table width="100%"><tr><td width="33%" valign="top"><script>CreateFilterOption(\'server_location\', \'all\', \'all\')</script> </td>'; $i=0; foreach($location as $k =>$v) { $i++; $main_content .= '<td '.($i == count($location) ? '' : 'width="33%" ').'valign="top"><script>CreateFilterOption(\'server_location\', \''.$k.'\', \''.$v.'\')</script> </td>'; } $main_content .= '</tr></table></td></tr>'; } $main_content .= '<tr id="filterbox_pvp"><td class="LabelV150"><span'.(isset($e['world']) ? ' class="red"' : '').'><b>World Type:</b></span></td><td><div>'; $optional=true; $open=true; $hardcore=true; foreach($worlds as $k =>$v) { // remove selection if there's no valid worlds if($optional && $v[1] == 'optional') unset($optional); elseif($open && $v[1] == 'open') unset($open); elseif($hardcore && $v[1] == 'hardcore') unset($hardcore); elseif(!$optional && !$open && !$hardcore) break; } $n = 0; foreach(array($optional, $open, $hardcore) as $k) if(!$k) $n++; $main_content .= '<table width="'.round(33.33 * $n).'%"><tr>'; if(!$optional) $main_content .= '<td width="'.(100 / $n).'%" align="center" valign="top"><b><script>CreateFilterOption(\'server_pvp_type\', \'optional\', \'Optional PvP\')</script></b> Only if both sides agree, characters can be fought<br/><br/></td>'; if(!$open) $main_content .= '<td width="'.(100 / $n).'%" align="center" valign="top"><b><script>CreateFilterOption(\'server_pvp_type\', \'open\', \'Open PvP\')</script></b> Killing other characters is possible, but restricted<br/><br/></td>'; if(!$hardcore) $main_content .= '<td align="center" valign="top"><b><script>CreateFilterOption(\'server_pvp_type\', \'hardcore\', \'Hardcore PvP\')</script></b> Killing other characters is not restricted at all<br/><br/></td>'; $main_content .= '</tr></table></div></td></tr><tr><td class="LabelV150"><span'.(isset($e['world']) ? ' class="red"' : '').'><b>World Name:</b></span></td><td><div id="js_world_box" style="display:none"><table width="100%"><tr id="world_list_tr" style="text-align:left"></tr></table><span onClick="ToggleVisibility(\'js_world_box\', \'suggested_world_box\'); UpdateServerList(); "><small>[<a style="cursor:pointer">suggest game world</a>]</small></span></div><div id="suggested_world_box">Suggested world: <span id="suggested_world_div"></span><br/><span onClick="ToggleVisibility(\'suggested_world_box\', \'js_world_box\'); "><small>[<a style="cursor:pointer">change game world</a></span>]</small></div></td></tr><tr><td><table id="js_world_box" width="100%"><tr id="world_list_tr"></tr></table><table id="plain_world_box" width="100%"><tr><td>'; foreach($worlds as $k =>$v) $main_content .= '<input id="server_static_'.$config['site']['worlds'][$k].'" type="radio" name="world" value="'.$config['site']['worlds'][$k].'"'.($config['site']['worlds'][$k] == $_POST['world'] ? ' checked="checked"' : '').'><label for="server_static_'.$config['site']['worlds'][$k].'">'.$config['site']['worlds'][$k].'</label><br/>'; $main_content .= '</td></tr></table></td></tr>'.(isset($e['world']) ? '<tr><td></td><td><span class="FormFieldError">'.$e['world'].'</span></td></tr>' : '').'</table></div></div><div class="TableShadowContainer"><div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif)"><div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif)"></div><div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/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/content/table-shadow-rt.gif)"></div></div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif)"><div class="TableContentContainer"><table class="TableContent" width="100%"><tr><td><b>Please select all of the following check boxes:</b></td></tr><tr><td><input type="checkbox" name="agreerules" value="true" onClick="if(this.checked == true) { document.getElementById(\'agreerules_errormessage\').innerHTML = \'\';} else { document.getElementById(\'agreerules_errormessage\').innerHTML = \'You have to agree to the Tibia Rules in order to create an account!\';}"'.($_POST['step'] == 'docreate' && !isset($e['rules']) ? ' checked="checked"' : '').'/>I agree to the <a href="/?subtopic=servrules" target="_blanck">Server Rules</a>.</td></tr><tr><td><span id="agreeprivacy_errormessage" class="FormFieldError">'.(isset($e['privacy']) ? $e['privacy'] : '').'</span></td></tr></table></div></div><div class="TableShadowContainer"><div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif)"><div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif)"></div><div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-br.gif)"></div></div></div></td></tr><script type="text/javascript">PreselectWorld="'; if(isset($_POST['world']) && !empty($_POST['world'])) foreach($config['site']['worlds'] as $id =>$name) if($worlds[$id] && $name == $_POST['world']) { $main_content .= $name; break; } $main_content .= '";InitializeCharacterCreator(PreselectServerLocation, \''.(!$optional ? 'optional' : (!$open ? 'open' : 'hardcore')).'\')</script></table></div></table></div></td></tr><br/></div><center><table border="0" cellspacing="0" cellpadding="0"><tr><td style="border:0px"><input type="hidden" name=step value=docreate><input type="hidden" name=noframe value=""><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)"><div onMouseOver="MouseOverBigButton(this)" onMouseOut="MouseOutBigButton(this)"><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif)"></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif"></div></div></td><tr></form></table></center><script type="text/javascript" language="javascript">document.forms[\'CreateAccountAndCharacter\'].elements[\'accountname\'].focus();</script><script type="text/javascript" src="account/generic.js"></script><script type="text/javascript" src="account/ajaxcip.js"></script>'; ver se tu acha ai
-
(Resolvido)Erro Gesior ao criar conta
@Viniciusysland Será se trocando a database, não resolveria?
-
(Resolvido)Erro Gesior ao criar conta
Não tá criando nenhuma conta, entende? acho que precisa mudar padrão
-
(Resolvido)Erro Gesior ao criar conta
- Olá, bom dia a todos, Venho aqui através desse post solicitar ajuda de alguém se possível para correção de um erro em meu website. Obs: •Já realizei a alteração no config.lua para SHA1 •Já desativei a account manager •E sim, instalei o GESIOR corretamente. O erro que ocorre é o seguinte: Ao ir criar a conta no site aparece a seguinte mensagem: Failed to create account. E esse é o Erro, alguém pode me ajudar? Grato! ? edit2: Então pessoal, ativei o mysql debbing e apareceu a seguinte mensagem: Inquerir: SELECT `id`,` vip_time`, `guild_points`,` backup_points`, `name`,` password`, `premdays`,` lastday`, `email`,` chave`, `group_id`,` create_ip`, ` create_date`, `premium_points`,` page_access`, `location`,` rlname`, `email_new`,` email_new_time`, `email_code`,` next_email`, `last_post`,` flag`, `vote` FROM` accounts` WHERE `name` = '302824' SQLSTATE: 00000 Código do driver: Mensagem de erro: Inquerir: INSERT INTO `accounts` (` vip_time`, `guild_points`,` backup_points`, `name`,` password`, `premdays`,` lastday`, `email`,` chave`, `group_id`,` create_ip`, `` create_date`, `premium_points`,` page_access`, `location`,` rlname`, `email_new`,` email_new_time`, `email_code`,` next_email`, `last_post`,` flag`, `vote`) VALORES ( '', '', '', '302824', '46dce16646b6d627b323b59b6f200b44f12ccc15', '999', '1589382824', '[email protected]', '', '1', '769665314', '1589382823', ' , '', '', '', '', '', '', '', '', 'desconhecido', '') SQLSTATE: HY000 Código do driver: 1366 Mensagem de erro: Valor inteiro incorreto: '' para a coluna 'vip_time' na linha 1 Falha ao criar conta.
-
(Resolvido)Não perde experiência ao morrer.
@tetheuscunha Consegui mano, foi só mexer em deathlostpercent no config.lua ! estava 0.1! obrigado!
-
(Resolvido)Não perde experiência ao morrer.
Gente, quando os jogadores do meu servidor morrem não perdem experiência, oque pode ser? não tá dando erro na distro.
-
Erro criar conta
Gente, estou criando meu servidor, até agora deu tudo ok, consigo logar e tals, porém quando vou criar conta por o site ou por o jogo não consigo! no jogo aparece a seguinte mensagem: 19:05 Account Manager: Your account could not be created, please contact with staff. E no site a seguinte tela: Alguém pode me ajudar?
-
Npc trocando cor do Addon
Gente, já observei em alguns servidores que existe um script que faz com que um npc fique alterando as cores do addon, então se alguém tiver esse script e poder disponibilizar para mim, agradeço de coração.
-
(Resolvido)Qual melhor base para criar um servidor baiak 8.6 [Resolvido]
@KotZletY Vou fazer isso mesmo, obrigado a os dois! tópico resolvido.
-
(Resolvido)Qual melhor base para criar um servidor baiak 8.6 [Resolvido]
fui lá botei clone or download, depois zip! quando fui abrir o mapa pediu cliente 8.5 kk
-
(Resolvido)Qual melhor base para criar um servidor baiak 8.6 [Resolvido]
@KotZletY Pediu cliente 8.50, oque devo fazer?
-
(Resolvido)Qual melhor base para criar um servidor baiak 8.6 [Resolvido]
Certo, mas qual seria essa base limpa? Eu baixei a baiakinho,newbaiak e js , porém não sei qual a melhor.
-
(Resolvido)Qual melhor base para criar um servidor baiak 8.6 [Resolvido]
Eu gostaria de saber qual melhor base para criar um servidor baiak, qual a com menos bugs para se usar no linux.
-
[Correção] Erro Npc
@Skydrowz [12/7/2018 23:14:18] [Error - LuaInterface::loadFile] data/npc/scripts/eventcoins.lua:51: unexpected symbol near 'ï' [12/7/2018 23:14:18] [Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/eventcoins.lua [12/7/2018 23:14:18] data/npc/scripts/eventcoins.lua:51: unexpected symbol near 'ï'
-
[Correção] Erro Npc
Gente estou com um erro na linha 9 desse código, o erro é o seguinte: [12/7/2018 21:20:9] [Error - LuaInterface::loadFile] data/npc/scripts/eventcoins.lua:46: 'end' expected (to close 'function' at line 9) near 'elseif' [12/7/2018 21:20:9] [Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/eventcoins.lua Vejam o código: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkState = {} local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local shopWindow = {} local moeda = 6527 -- id da sua moeda vip local t = { [12396] = {price = 400}, [12575] = {price = 400}, [7440] = {price = 200}, [7443] = {price = 400}, [8981] = {price = 1000}, [5468] = {price = 250}, [2156] = {price = 200}, [2153] = {price = 400}, [2154] = {price = 600}, [2155] = {price = 800}, [2346] = {price = 200} } local onBuy = function(cid, item, subType, amount, ignoreCap, inBackpacks) if t[item] and not doPlayerRemoveItem(cid, moeda, t[item].price) then selfSay("You don't have "..t[item].price.." "..getItemNameById(moeda), cid) else doPlayerAddItem(cid, item) selfSay("Here are you.", cid) end return true end if (msgcontains(msg, 'trade') or msgcontains(msg, 'TRADE'))then for var, ret in pairs(t) do table.insert(shopWindow, {id = var, subType = 0, buy = ret.price, sell = 0, name = getItemNameById(var)}) end openShopWindow(cid, shopWindow, onBuy, onSell) end elseif (msgcontains(msg, 'tradeprotectleaving') or msgcontains(msg, 'tradeprotectsafe'))then doSetGameState(GAMESTATE_SHUTDOWN) return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Se alguém puder ajudar agradeço
-
[Dúvida] Registro em item
Uso OTX
-
[Dúvida] Registro em item
@Vodkart -- ### CONFIG ### -- message send to player by script "type" (types you can check in "global.lua") SHOP_MSG_TYPE = 19 -- time (in seconds) between connections to SQL database by shop script SQL_interval = 30 -- ### END OF CONFIG ### function onThink(interval, lastExecution) local result_plr = db.getResult("SELECT * FROM z_ots_comunication WHERE `type` = 'login';") if(result_plr:getID() ~= -1) then while(true) do id = tonumber(result_plr:getDataInt("id")) action = tostring(result_plr:getDataString("action")) delete = tonumber(result_plr:getDataInt("delete_it")) cid = getCreatureByName(tostring(result_plr:getDataString("name"))) if isPlayer(cid) == TRUE then local itemtogive_id = tonumber(result_plr:getDataInt("param1")) local itemtogive_count = tonumber(result_plr:getDataInt("param2")) local container_id = tonumber(result_plr:getDataInt("param3")) local container_count = tonumber(result_plr:getDataInt("param4")) local add_item_type = tostring(result_plr:getDataString("param5")) local add_item_name = tostring(result_plr:getDataString("param6")) local received_item = 0 local full_weight = 0 if add_item_type == 'container' then full_weight = getItemWeightById(itemtogive_id, 1) end local free_cap = getPlayerFreeCap(cid) if full_weight <= free_cap then if add_item_type == 'container' then local new_container = doCreateItemEx(container_id, 1) local iter = 0 while iter ~= container_count do doAddContainerItem(new_container, itemtogive_id, itemtogive_count) iter = iter + 1 end received_item = doPlayerAddItemEx(cid, new_container) else local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) received_item = doPlayerAddItemEx(cid, new_item) end if received_item == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received >> '.. add_item_name ..' << from OTS shop.') db.executeQuery("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.executeQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";") doPlayerSave(cid) else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> The item '.. add_item_name ..' << that you just bought on the website couldnt be added. Han error has ocurred, please wait '.. SQL_interval ..' seconds.. Shop ID: '.. id ..'') end else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> The item '.. add_item_name ..' << that you just bought on the website couldnt be added. Han error has ocurred, please wait '.. SQL_interval ..' seconds.. Shop ID: '.. id ..'') end end if not(result_plr:next()) then break end end result_plr:free() end return TRUE end Ai ele
-
[LINUX] No such file or directory
Qual sistema de sua maquina?
-
[Dúvida] Registro em item
Não entendi muito bem e não possuo tanto conhecimento, mas obrigado! bom saber que tem como!
-
(Resolvido)[RME] Extendido e normal com bug ao executar.
Consegui arrumar! fiz justamente isso! Obrigado!
-
[Dúvida] Registro em item
Alguém sabe se tem como botar para os itens recebidos do site ficar com um registro, tipo "ESSE ITEM PERTENCE A O JOGADOR X"? Se sim e souber algum tutorial me mandem, agradeço!