Jump to content

11.x [WIP] OTXServer 12.31 Global Full + Kilmaresh (Issavi) + BESTIARY - QUICKLOOT


Recommended Posts

15 minutos atrás, meffon disse:

Manda seu config.php

 

Site ou Servidor? se for a do servidor, não fiz alteração nenhuma, a não ser as de IP e nome

nunca configurei Site e to aprendendo agora, sempre fiz 8.6 kk :p

 

se puder manda o melhor site para esse server

Edited by mastof (see edit history)
Link to post
Share on other sites

  • Replies 5k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

OTXServer Global Full Kilmaresh by Malucooo   [CLIENTS COMPATÍVEIS]   http://www.gitlab.com/guilhermesidney/cliente10/   [DOWNLOAD] BAIXEM EM: https://github.com/malucooo

Adicionado Imbuing System, Inspection System por Charles (Eternal-Scripts) Corrigido e atualizado Prey System por Charles (Eternal-Scripts)   Obrigado pela colaboração, acredito que no

Atualizações de Médio Porte:   - Items.otb 11.31 (adicionado os novos barris de potion e mais uns 700 items adicionado..) - Client 10 Atualizado - Adicionado a categoria carpet...

Posted Images

1 hora atrás, mastof disse:

consertei o login.php, agradeço d++ Meffon

Só falta retirar o Tutorial, e já começar lvl 8, alguém poderia me enviar uma conf ou um tutorial? 

como q vc fez mano fala ai pq to tendo esse problema e nao consigo resolver . Fala passo a passo q vc fez como conseguiu colocar o cliente 11 pois eu ja tirei as mont e o putifit mais ainda nao consigo entrar no servidor

Link to post
Share on other sites

1 hora atrás, mastof disse:

Site ou Servidor? se for a do servidor, não fiz alteração nenhuma, a não ser as de IP e nome

nunca configurei Site e to aprendendo agora, sempre fiz 8.6 kk :p

 

se puder manda o melhor site para esse server

https://github.com/slawkens/myaac

23 minutos atrás, gabitutox disse:

como q vc fez mano fala ai pq to tendo esse problema e nao consigo resolver . Fala passo a passo q vc fez como conseguiu colocar o cliente 11 pois eu ja tirei as mont e o putifit mais ainda nao consigo entrar no servidor

Você está com qual problema?

22 minutos atrás, Unstable disse:

gostaria de ajuda para abrir o servidor no meu pc para outros players , eu consigo abrir apennas para min , não sei o que falta fazer...

Tem um monte de tutorial aqui ensinando a colocar servidor online

Link to post
Share on other sites

4 horas atrás, meffon disse:

https://github.com/slawkens/myaac

Você está com qual problema?

Tem um monte de tutorial aqui ensinando a colocar servidor online

Eu estava usando esse, mas não sei configurar para pular tutorial, e quando ponho o login.php(se eu só iniciar ele diz que não foi possivel conectar) que esta no Github do server ele da ilegal value. poderia me mandar uma config? e dava bug de criar personagem dizendo que não existia Knight simple Sorcer simple e tals

 

Edited by mastof (see edit history)
Link to post
Share on other sites

37 minutos atrás, meffon disse:

https://github.com/slawkens/myaac

Você está com qual problema?

Tem um monte de tutorial aqui ensinando a colocar servidor online

entao meu problema e o seguinte . Eu abro o cliente 11 coloco a senha e o password e aparece a lista d char , so q quando eu clico para logar ele fecha sozinho . Ja deletei as 3 mount e o ultimo outfit do xml . Agr nao sei como configura o login.php nao sei a ond eu mecho , mas presisaria q explicasse com detales pois nao manjo muito o nome do meu ot ta otserv e meu ip e 127.0.0.1 oq eu devo fazer me ajude por favor

Link to post
Share on other sites

14 horas atrás, gabitutox disse:

entao meu problema e o seguinte . Eu abro o cliente 11 coloco a senha e o password e aparece a lista d char , so q quando eu clico para logar ele fecha sozinho . Ja deletei as 3 mount e o ultimo outfit do xml . Agr nao sei como configura o login.php nao sei a ond eu mecho , mas presisaria q explicasse com detales pois nao manjo muito o nome do meu ot ta otserv e meu ip e 127.0.0.1 oq eu devo fazer me ajude por favor

não sei se vai ajudar, mas eu consegui fazer funcionar abrindo pelo Gesior2012 tfs 1.0 e pegando o Login.php e tacando na pasta do site
para abrir o client tem que ser pela pasta BIN

 

o problema que não consegui tirar o Rookgard, se alguém puder mandar uma config sem o rook agradeço d+

Link to post
Share on other sites

16 horas atrás, gabitutox disse:

entao meu problema e o seguinte . Eu abro o cliente 11 coloco a senha e o password e aparece a lista d char , so q quando eu clico para logar ele fecha sozinho . Ja deletei as 3 mount e o ultimo outfit do xml . Agr nao sei como configura o login.php nao sei a ond eu mecho , mas presisaria q explicasse com detales pois nao manjo muito o nome do meu ot ta otserv e meu ip e 127.0.0.1 oq eu devo fazer me ajude por favor

Posta seu login.php

16 horas atrás, mastof disse:

Eu estava usando esse, mas não sei configurar para pular tutorial, e quando ponho o login.php(se eu só iniciar ele diz que não foi possivel conectar) que esta no Github do server ele da ilegal value. poderia me mandar uma config? e dava bug de criar personagem dizendo que não existia Knight simple Sorcer simple e tals

 

Posta seu config...

Link to post
Share on other sites

12 minutos atrás, meffon disse:

Posta seu login.php

Posta seu config...

<?php
/**
 * Created by PhpStorm.
 * User: jlcvp - leu
 * Date: 07/06/17
 * Time: 21:22
 */
require 'config/config.php';
// comment to show E_NOTICE [undefinied variable etc.], comment if you want make script and see all errors
error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE);
// true = show sent queries and SQL queries status/status code/error message
define('DEBUG_DATABASE', false);
define('INITIALIZED', true);
if (!defined('ONLY_PAGE'))
    define('ONLY_PAGE', true);
// check if site is disabled/requires installation
include_once('./system/load.loadCheck.php');
// fix user data, load config, enable class auto loader
include_once('./system/load.init.php');
// DATABASE
include_once('./system/load.database.php');
if (DEBUG_DATABASE)
    Website::getDBHandle()->setPrintQueries(true);
// DATABASE END
/*error example:
{
    "errorCode":3,
    "errorMessage":"Account name or password is not correct."
}*/
//error function
function sendError($error_msg,$code=3){
    $retError = array();
    $retError["errorCode"] = $code;
    $retError["errorMessage"] = $error_msg;
    die(json_encode($retError));
}
$request_body = file_get_contents('php://input');
$result = json_decode($request_body, true);
$acc = $result["accountname"];
$password = $result["password"];
$query = $SQL->prepare("SELECT `id`,`premdays` FROM `accounts` WHERE `name` = :acc AND `password` = SHA1(:pass) LIMIT 1");
$query->bindValue(":acc", $acc);
$query->bindValue(":pass", $password);
$dbResource = $query->execute();
if (!$dbResource) {
    sendError("failed to get account.");
}
$dbRet = $query->fetch();
if (!dbRet) {
    sendError("failed to fetch account data");
}
$accId = $dbRet["id"];
$premdays = $dbRet["premdays"];
if (!$accId) {
    sendError("Account name or password is not correct.");
}
$dbResource = $SQL->query("SELECT `name`,`sex`,`lastlogin` FROM `players` WHERE `account_id` = $accId LIMIT 1");
if (!$dbResource) {
    sendError("failed to get characters.");
}
$accArray = array();
$lastlogin=0;
while ($dbRet = $dbResource->fetch()) {
    $dict = array(
        "worldid" => 0,
        "name" => $dbRet["name"],
        "ismale" => (($dbRet["sex"]==1)?true:false),
        "tutorial" => (($dbRet["lastlogin"]>0) ? false:true)
    );
    $accArray[] = $dict;
    if($lastlogin<$dbRet["lastlogin"]){
        $lastlogin = $dbRet["lastlogin"];
    }
}
$data = array();
//TODO: Melhorar estrutura de dado aqui e preencher com os dados reais da account
$session = array(
    "sessionkey" => $acc . "\n" . $password,
    "lastlogintime" => $lastlogin,
    "ispremium" => ($premdays > 0 || $config["server"]["freePremium"]) ? true : false,
    "premiumuntil" => ($freePremium) ? (time() + 365 * 86400) : (time() + $premdays * 86400),
    "status" => "active"
);
$data["session"] = $session;
$playerData = array();
//TODO: melhorar estrutura de dado aqui para permitir multiple worlds
$world = array(
    "id" => 0,
    "name" => $config["server"]["1101"],
    "externaladdress" => $config["server"]["127.0.0.1"],
    "externalport" => $config["server"]["7172"],
    "previewstate" => 0,
    "location" => "BRA",
    "externaladdressunprotected" => $config["server"]["127.0.0.1"],
    "externaladdressprotected" => $config["server"]["127.0.0.1"]
);
$worlds = array($world);
$playerData["worlds"] = $worlds;
$playerData["characters"] = $accArray;
$data["playdata"] = $playerData;
echo json_encode($data);

 

meu login lua

babydoll2.gif

Link to post
Share on other sites

41 minutos atrás, meffon disse:

Posta seu login.php

Posta seu config...

Spoiler

<?php
/**
 * Created by PhpStorm.
 * User: jlcvp - leu
 * Date: 07/06/17
 * Time: 21:22
 */
require 'config/config.php';
// comment to show E_NOTICE [undefinied variable etc.], comment if you want make script and see all errors
error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE);
// true = show sent queries and SQL queries status/status code/error message
define('DEBUG_DATABASE', false);
define('INITIALIZED', true);
if (!defined('ONLY_PAGE'))
    define('ONLY_PAGE', true);
// check if site is disabled/requires installation
include_once('./system/load.loadCheck.php');
// fix user data, load config, enable class auto loader
include_once('./system/load.init.php');
// DATABASE
include_once('./system/load.database.php');
if (DEBUG_DATABASE)
    Website::getDBHandle()->setPrintQueries(true);
// DATABASE END
/*error example:
{
    "errorCode":3,
    "errorMessage":"Account name or password is not correct."
}*/
//error function
function sendError($error_msg,$code=3){
    $retError = array();
    $retError["errorCode"] = $code;
    $retError["errorMessage"] = $error_msg;
    die(json_encode($retError));
}
$request_body = file_get_contents('php://input');
$result = json_decode($request_body, true);
$acc = $result["accountname"];
$password = $result["password"];
$query = $SQL->prepare("SELECT `id`,`premdays` FROM `accounts` WHERE `name` = :acc AND `password` = SHA1(:pass) LIMIT 1");
$query->bindValue(":acc", $acc);
$query->bindValue(":pass", $password);
$dbResource = $query->execute();
if (!$dbResource) {
    sendError("failed to get account.");
}
$dbRet = $query->fetch();
if (!dbRet) {
    sendError("failed to fetch account data");
}
$accId = $dbRet["id"];
$premdays = $dbRet["premdays"];
if (!$accId) {
    sendError("Account name or password is not correct.");
}
$dbResource = $SQL->query("SELECT `name`,`sex`,`lastlogin` FROM `players` WHERE `account_id` = $accId LIMIT 1");
if (!$dbResource) {
    sendError("failed to get characters.");
}
$accArray = array();
$lastlogin=0;
while ($dbRet = $dbResource->fetch()) {
    $dict = array(
        "worldid" => 0,
        "name" => $dbRet["name"],
        "ismale" => (($dbRet["sex"]==1)?true:false),
        "tutorial" => (($dbRet["lastlogin"]>0) ? false:true)
    );
    $accArray[] = $dict;
    if($lastlogin<$dbRet["lastlogin"]){
        $lastlogin = $dbRet["lastlogin"];
    }
}
$data = array();
//TODO: Melhorar estrutura de dado aqui e preencher com os dados reais da account
$session = array(
    "sessionkey" => $acc . "\n" . $password,
    "lastlogintime" => $lastlogin,
    "ispremium" => ($premdays > 0 || $config["server"]["freePremium"]) ? true : false,
    "premiumuntil" => ($freePremium) ? (time() + 365 * 86400) : (time() + $premdays * 86400),
    "status" => "active"
);
$data["session"] = $session;
$playerData = array();
//TODO: melhorar estrutura de dado aqui para permitir multiple worlds
$world = array(
    "id" => 0,
    "name" => $config["server"]["serverName"],
    "externaladdress" => $config["server"]["ip"],
    "externalport" => $config["server"]["gameProtocolPort"],
    "previewstate" => 0,
    "location" => "BRA",
    "externaladdressunprotected" => $config["server"]["ip"],
    "externaladdressprotected" => $config["server"]["ip"]
);
$worlds = array($world);
$playerData["worlds"] = $worlds;
$playerData["characters"] = $accArray;
$data["playdata"] = $playerData;
echo json_encode($data);

 

Link to post
Share on other sites

30 minutos atrás, chateadoagr disse:

<?php
/**
 * Created by PhpStorm.
 * User: jlcvp - leu
 * Date: 07/06/17
 * Time: 21:22
 */
require 'config/config.php';
// comment to show E_NOTICE [undefinied variable etc.], comment if you want make script and see all errors
error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE);
// true = show sent queries and SQL queries status/status code/error message
define('DEBUG_DATABASE', false);
define('INITIALIZED', true);
if (!defined('ONLY_PAGE'))
    define('ONLY_PAGE', true);
// check if site is disabled/requires installation
include_once('./system/load.loadCheck.php');
// fix user data, load config, enable class auto loader
include_once('./system/load.init.php');
// DATABASE
include_once('./system/load.database.php');
if (DEBUG_DATABASE)
    Website::getDBHandle()->setPrintQueries(true);
// DATABASE END
/*error example:
{
    "errorCode":3,
    "errorMessage":"Account name or password is not correct."
}*/
//error function
function sendError($error_msg,$code=3){
    $retError = array();
    $retError["errorCode"] = $code;
    $retError["errorMessage"] = $error_msg;
    die(json_encode($retError));
}
$request_body = file_get_contents('php://input');
$result = json_decode($request_body, true);
$acc = $result["accountname"];
$password = $result["password"];
$query = $SQL->prepare("SELECT `id`,`premdays` FROM `accounts` WHERE `name` = :acc AND `password` = SHA1(:pass) LIMIT 1");
$query->bindValue(":acc", $acc);
$query->bindValue(":pass", $password);
$dbResource = $query->execute();
if (!$dbResource) {
    sendError("failed to get account.");
}
$dbRet = $query->fetch();
if (!dbRet) {
    sendError("failed to fetch account data");
}
$accId = $dbRet["id"];
$premdays = $dbRet["premdays"];
if (!$accId) {
    sendError("Account name or password is not correct.");
}
$dbResource = $SQL->query("SELECT `name`,`sex`,`lastlogin` FROM `players` WHERE `account_id` = $accId LIMIT 1");
if (!$dbResource) {
    sendError("failed to get characters.");
}
$accArray = array();
$lastlogin=0;
while ($dbRet = $dbResource->fetch()) {
    $dict = array(
        "worldid" => 0,
        "name" => $dbRet["name"],
        "ismale" => (($dbRet["sex"]==1)?true:false),
        "tutorial" => (($dbRet["lastlogin"]>0) ? false:true)
    );
    $accArray[] = $dict;
    if($lastlogin<$dbRet["lastlogin"]){
        $lastlogin = $dbRet["lastlogin"];
    }
}
$data = array();
//TODO: Melhorar estrutura de dado aqui e preencher com os dados reais da account
$session = array(
    "sessionkey" => $acc . "\n" . $password,
    "lastlogintime" => $lastlogin,
    "ispremium" => ($premdays > 0 || $config["server"]["freePremium"]) ? true : false,
    "premiumuntil" => ($freePremium) ? (time() + 365 * 86400) : (time() + $premdays * 86400),
    "status" => "active"
);
$data["session"] = $session;
$playerData = array();
//TODO: melhorar estrutura de dado aqui para permitir multiple worlds
$world = array(
    "id" => 0,
    "name" => $config["server"]["1101"],
    "externaladdress" => $config["server"]["127.0.0.1"],
    "externalport" => $config["server"]["7172"],
    "previewstate" => 0,
    "location" => "BRA",
    "externaladdressunprotected" => $config["server"]["127.0.0.1"],
    "externaladdressprotected" => $config["server"]["127.0.0.1"]
);
$worlds = array($world);
$playerData["worlds"] = $worlds;
$playerData["characters"] = $accArray;
$data["playdata"] = $playerData;
echo json_encode($data);

 

meu login lua

Login.php não o lua

3 minutos atrás, gabitutox disse:
  Mostrar conteúdo oculto

<?php
/**
 * Created by PhpStorm.
 * User: jlcvp - leu
 * Date: 07/06/17
 * Time: 21:22
 */
require 'config/config.php';
// comment to show E_NOTICE [undefinied variable etc.], comment if you want make script and see all errors
error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE);
// true = show sent queries and SQL queries status/status code/error message
define('DEBUG_DATABASE', false);
define('INITIALIZED', true);
if (!defined('ONLY_PAGE'))
    define('ONLY_PAGE', true);
// check if site is disabled/requires installation
include_once('./system/load.loadCheck.php');
// fix user data, load config, enable class auto loader
include_once('./system/load.init.php');
// DATABASE
include_once('./system/load.database.php');
if (DEBUG_DATABASE)
    Website::getDBHandle()->setPrintQueries(true);
// DATABASE END
/*error example:
{
    "errorCode":3,
    "errorMessage":"Account name or password is not correct."
}*/
//error function
function sendError($error_msg,$code=3){
    $retError = array();
    $retError["errorCode"] = $code;
    $retError["errorMessage"] = $error_msg;
    die(json_encode($retError));
}
$request_body = file_get_contents('php://input');
$result = json_decode($request_body, true);
$acc = $result["accountname"];
$password = $result["password"];
$query = $SQL->prepare("SELECT `id`,`premdays` FROM `accounts` WHERE `name` = :acc AND `password` = SHA1(:pass) LIMIT 1");
$query->bindValue(":acc", $acc);
$query->bindValue(":pass", $password);
$dbResource = $query->execute();
if (!$dbResource) {
    sendError("failed to get account.");
}
$dbRet = $query->fetch();
if (!dbRet) {
    sendError("failed to fetch account data");
}
$accId = $dbRet["id"];
$premdays = $dbRet["premdays"];
if (!$accId) {
    sendError("Account name or password is not correct.");
}
$dbResource = $SQL->query("SELECT `name`,`sex`,`lastlogin` FROM `players` WHERE `account_id` = $accId LIMIT 1");
if (!$dbResource) {
    sendError("failed to get characters.");
}
$accArray = array();
$lastlogin=0;
while ($dbRet = $dbResource->fetch()) {
    $dict = array(
        "worldid" => 0,
        "name" => $dbRet["name"],
        "ismale" => (($dbRet["sex"]==1)?true:false),
        "tutorial" => (($dbRet["lastlogin"]>0) ? false:true)
    );
    $accArray[] = $dict;
    if($lastlogin<$dbRet["lastlogin"]){
        $lastlogin = $dbRet["lastlogin"];
    }
}
$data = array();
//TODO: Melhorar estrutura de dado aqui e preencher com os dados reais da account
$session = array(
    "sessionkey" => $acc . "\n" . $password,
    "lastlogintime" => $lastlogin,
    "ispremium" => ($premdays > 0 || $config["server"]["freePremium"]) ? true : false,
    "premiumuntil" => ($freePremium) ? (time() + 365 * 86400) : (time() + $premdays * 86400),
    "status" => "active"
);
$data["session"] = $session;
$playerData = array();
//TODO: melhorar estrutura de dado aqui para permitir multiple worlds
$world = array(
    "id" => 0,
    "name" => $config["server"]["serverName"],
    "externaladdress" => $config["server"]["ip"],
    "externalport" => $config["server"]["gameProtocolPort"],
    "previewstate" => 0,
    "location" => "BRA",
    "externaladdressunprotected" => $config["server"]["ip"],
    "externaladdressprotected" => $config["server"]["ip"]
);
$worlds = array($world);
$playerData["worlds"] = $worlds;
$playerData["characters"] = $accArray;
$data["playdata"] = $playerData;
echo json_encode($data);

 

 

Login.php não o lua

 

Link to post
Share on other sites

Citar

Config site

<?php
/**
 * This is MyAAC's Main Configuration file
 *
 * All the default values are kept here, you should not modify it but use
 * a config.local.php file instead to override the settings from here.
 *
 * This is a piece of PHP code so PHP syntax applies!
 * For boolean values please use true/false.
 *
 * Minimally 'server_path' directive have to be filled, other options are optional.
 *
 * @package   MyAAC
 * @author    Slawkens <slawkens@gmail.com>
 * @copyright 2017 MyAAC
 * @version   0.2.4
 * @link     http://my-aac.org
 */

$config = array(
    // directories & files
    'server_path' => '', // path to the server directory (same directory where config file is located)

    'template' => 'kathrine', // template used by website (kathrine, tibiacom)
    'template_allow_change' => true, // allow users to choose their own template while browsing website?

    'vocations_amount' => 4, // how much basic vocations your server got (without promotion)

    // what client version are you using on this OT?
    // used for the Downloads page and some templates aswell
    'client' => 1098, // 954 = client 9.54

    'friendly_urls' => false, // mod_rewrite is required for this, it makes links looks more elegant to eye, and also are SEO friendly (example: http://my-aac.org/guilds/Testing instead of http://my-aac.org/?subtopic=guilds&name=Testing). Remember to rename .htaccess.dist to .htaccess
    'gzip_output' => false, // gzip page content before sending it to the browser, uses less bandwidth but more cpu cycles

    // gesior backward support (templates & pages)
    // allows using gesior templates and pages with myaac
    'backward_support' => true,

    // head options (html)
    'meta_description' => 'Tibia is a free massive multiplayer online role playing game (MMORPG).', // description of the site
    'meta_keywords' => 'free online game, free multiplayer game, ots, open tibia server', // keywords list separated by commas
    'title_separator' => ' - ',

    // footer
    'footer' => ''/*'<br/>Your Server &copy; 2016. All rights reserved.'*/,

    'debug_level' => 0, // 0 - disabled, 1 - show load time, 2 - show db query counter, 3 - both, 4 - memory usage, 5 - load time & load time, 6 - queries & memory usage, 7 - all

    'language' => 'en', // default language (currently only 'en' available)
    'language_allow_change' => false,

    'visitors_counter' => true,
    'visitors_counter_ttl' => 10, // how long visitor will be marked as online (in minutes)
    'views_counter' => true,

    // cache system. by default file cache is used
    'cache_engine' => 'auto', // apc, eaccelerator, xcache, file, auto, or blank to disable.
    'cache_prefix' => 'myaac_', // have to be unique if running more MyAAC instances on the same server

    // database details (leave blank for auto detect from config.lua)
    'database_host' => '',
    'database_port' => '', // leave blank to default 3306
    'database_user' => '',
    'database_password' => '',
    'database_name' => '',

    // multiworld system
    'multiworld' => false, // use multiworld system?
    'worlds' => array( // list of worlds
        //'1' => 'Your World Name',
        //'2' => 'Your Second World Name'
    ),

    // items
    'outfit_images_url' => 'http://outfit-images.ots.me/outfit.php', // set to animoutfit.php for animated outfit
    'item_images_url' => 'http://item-images.ots.me/960/', // set to images/items if you host your own items in images folder

    // account
    'account_management' => true, // disable if you're using other method to manage users (fe. tfs account manager)
    'account_mail_verify' => false, // force users to confirm their email addresses when registering account
    'account_mail_unique' => true, // email addresses cannot be duplicated? (one account = one email)
    'account_premium_days' => 0, // default premium days on new account
    'account_premium_points' => 0, // default premium points on new account
    'account_welcome_mail' => true, // send welcome email when user registers
    'account_mail_change' => 2, // how many days user need to change email to account - block hackers
    'account_country' => true, // user will be able to set country of origin when registering account, this information will be viewable in others places aswell
    'account_change_character_name' => false, // can user change their character name for premium points?
    'account_change_character_name_points' => 30, // cost of name change
    'account_change_character_sex' => false, // can user change their character sex for premium points?
    'account_change_character_sex_points' => 30, // cost of sex change
    'characters_per_account' => 10,    // max. number of characters per account

    // mail
    'mail_enabled' => false, // is aac maker configured to send e-mails?
    'mail_address' => 'no-reply@your-server.org', // server e-mail address (from:)
    'mail_admin' => 'your-address@your-server.org', // admin email address, where mails from contact form will be sent
    'mail_signature' => array( // signature that will be included at the end of every message sent using _mail function
        'plain' => ''/*'--\nMy Server,\nhttp://www.myserver.com'*/,
        'html' => ''/*'<br/>My Server,\n<a href="http://www.myserver.com">myserver.com</a>'*/
    ),
    'smtp_enabled' => false, // send by smtp or mail function (set false if use mail function)
    'smtp_host' => '', // mail host
    'smtp_port' => 25, // 25 (default) / 465 (ssl, e.g. gmail)
    'smtp_auth' => true, // need authorization?
    'smtp_user' => 'admin@example.org',
    'smtp_pass' => '',

    // reCAPTCHA (prevent spam bots)
    'recaptcha_enabled' => false, // enable recaptcha verification code
    'recaptcha_site_key' => '', // get your own public and private keys at https://www.google.com/recaptcha
    'recaptcha_secret_key' => '',
    'recaptcha_theme' => 'light', // light, dark

    //
    'generate_new_reckey' => true,                // let player generate new recovery key, he will receive e-mail with new rec key (not display on page, hacker can't generate rec key)
    'generate_new_reckey_price' => 20,            // price for new recovery key
    'send_mail_when_change_password' => true,    // send e-mail with new password when change password to account
    'send_mail_when_generate_reckey' => true,    // send e-mail with rec key (key is displayed on page anyway when generate)

    // new character config
    'character_samples' => array( // vocations, format: ID_of_vocation => 'Name of Character to copy'
        //0 => 'Rook Sample',
        1 => 'Sorcerer Sample',
        2 => 'Druid Sample',
        3 => 'Paladin Sample',
        4 => 'Knight Sample'
    ),

    // town list used when creating character
    // won't be displayed if there is only one item (rookgaard for example)
    'character_towns' => array(1),

    // list of towns
    'towns' => array(
        0 => 'No town',
        1 => 'Sample town'
    ),

    // guilds
    'guild_management' => true, // enable guild management system on the site?
    'guild_need_level' => 1, // min. level to form a guild
    'guild_need_premium' => true, // require premium account to form a guild?
    'guild_image_size_kb' => 80, // maximum size of the guild logo image in KB (kilobytes)
    'guild_description_chars_limit' => 1000, // limit of guild description
    'guild_description_lines_limit' => 6, // limit of lines, if description has more lines it will be showed as long text, without 'enters'
    'guild_motd_chars_limit' => 150, // limit of MOTD (message of the day) that is shown later in the game on the guild channel

    'quests' => array(), // quests list (displayed in character view), name => storage

    'signature_enabled' => true,
    'signature_type' => 'tibian', // signature engine to use: tibian, mango, gesior
    'signature_cache_time' => 5, // how long to store cached file (in minutes)

    // online page
    'online_record' => true, // display players record?
    'online_vocations' => false, // display vocation statistics?
    'online_vocations_images' => false, // display vocation images?
    'online_skulls' => false, // display skull images
    'online_outfit' => true,
    'online_afk' => false,

    // support list page
    'team_style' => 2, // 1/2 (1 - normal table, 2 - in boxes, grouped by group id)
    'team_display_status' => true,
    'team_display_lastlogin' => true,
    'team_display_world' => false,

    // bans page
    'bans_limit' => 50,
    'bans_display_all' => true, // should all bans be displayed? (sorted page by page)

    // highscores page
    'highscores_vocation_box' => true, // show 'Choose a vocation' box on the highscores (allowing peoples to sort highscores by vocation)?
    'highscores_vocation' => true, // show player vocation under his nickname?
    'highscores_frags' => false, // show 'Frags' tab (best fraggers on the server)? Only 0.3
    'highscores_outfit' => true, // show player outfit?
    'highscores_country_box' => false, // doesnt work yet! (not implemented)
    'highscores_groups_hidden' => 4, // this group id and higher won't be shown on the highscores

    // characters page
    'characters' => array( // what things to display on character view page (true/false in each option)
        'level' => true,
        'experience' => false,
        'magic_level' => false,
        'balance' => false,
        'marriage_info' => true, // only 0.3
        'outfit' => true,
        'creation_date' => true,
        'quests' => true,
        'skills' => true,
        'equipment' => true,
        'frags' => false
    ),

    // news page
    'news_limit' => 5, // limit of news on latest news page
    'news_ticker_limit' => 5, // limit of news in tickers (mini news) (0 to disable)
    'news_date_format' => 'j.n.Y', // check php manual date() function for more info about this
    'news_author' => true,

    // gifts/shop system
    'gifts_system' => false,

    // forum
    'forum' => 'site', // link to the server forum, set to "site" if you want to use build in forum system, otherwise leave empty if you aren't going to use any forum
    'forum_level_required' => 0, // level required to post, 0 to disable
    'forum_post_interval' => 30, // in seconds
    'forum_posts_per_page' => 20,
    'forum_threads_per_page' => 20,

    // last kills
    'last_kills_limit' => 50, // max. number of deaths shown on the last kills page

    // status, took automatically from config file if empty
    'status_ip' => '',
    'status_port' => '',

    // other
    'email_lai_sec_interval' => 60, // time in seconds between e-mails to one account from lost account interface, block spam
    'google_analytics_id' => '', // e.g.: UA-XXXXXXX-X
    'experiencetable_columns' => 5, // how many columns to display in experience table page. * experiencetable_rows, 5 = 500 (will show up to 500 level)
    'experiencetable_rows' => 100, // till how many levels in one column

    'monsters' => array(),
    'npc' => array()
);

// download link to client.
$config['client_download'] = 'http://tibia-clients.com/clients/download/'. $config['client'] .'/exe/windows';
$config['client_download_linux'] = 'http://tibia-clients.com/clients/download/'. $config['client'] .'/tar/linux';

?>
 

 

Config Servidor:

Citar

-- Combat settings
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
worldType = "pvp"
hotkeyAimbotEnabled = true
protectionLevel = 10
pzLocked = 60 * 1000
removeChargesFromRunes = true
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
stairJumpExhaustion = 2 * 1000
experienceByKillingPlayers = false
expFromPlayersLevelRange = 75
dayKillsToRedSkull = 3
weekKillsToRedSkull = 5
monthKillsToRedSkull = 10
redSkullDuration = 30
blackSkullDuration = 45
orangeSkullDuration = 7

-- Connection Config
-- NOTE: maxPlayers set to 0 means no limit
ip = "127.0.0.1"
bindOnlyGlobalAddress = false
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = 0
motd = "Bem vindo ao Fudeu"
onePlayerOnlinePerAccount = true
allowClones = false
serverName = "Fudeu"
statusTimeout = 5 * 1000
replaceKickOnLogin = true
maxPacketsPerSecond = 25

-- Version Manual
clientVersionMin = 1100
clientVersionMax = 1120
clientVersionStr = "Only clients with protocol 10.00 or 11.00 is allowed!"

-- Depot Limit
freeDepotLimit = 2000
premiumDepotLimit = 10000
depotBoxes = 17

-- Casting System 
enableLiveCasting = true
liveCastPort = 7173

-- Deaths
-- NOTE: Leave deathLosePercent as -1 if you want to use the default
-- death penalty formula. For the old formula, set it to 10. For
-- no skill/experience loss, set it to 0.
deathLosePercent = -1

-- Houses
-- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality
housePriceEachSQM = 1000
houseRentPeriod = "weekly"

-- Item Usage
timeBetweenActions = 200
timeBetweenExActions = 1000

-- Map
-- NOTE: set mapName WITHOUT .otbm at the end
mapName = "global"
mapAuthor = "Cipsoft"

-- Market
marketOfferDuration = 30 * 24 * 60 * 60
premiumToCreateMarketOffer = true
checkExpiredMarketOffersEachMinutes = 60
maxMarketOffersAtATimePerPlayer = 100

-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "root"
mysqlPass = ""
mysqlDatabase = "server11"
mysqlPort = 3306
mysqlSock = ""
passwordType = "sha1"

-- Misc.
allowChangeOutfit = true
freePremium = false
kickIdlePlayerAfterMinutes = 15
maxMessageBuffer = 4
emoteSpells = false
classicEquipmentSlots = false
allowWalkthrough = true
coinPacketSize = 25
coinImagesURL = "http://some.url/images/store/"
classicAttackSpeed = false

-- Rates
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
rateExp = 1
rateSkill = 1
rateLoot = 1
rateMagic = 1
rateSpawn = 1

-- Monster rates
rateMonsterHealth = 1.0
rateMonsterAttack = 1.0
rateMonsterDefense = 1.0

-- Monsters
deSpawnRange = 2
deSpawnRadius = 50

-- Stamina
staminaSystem = true

-- Scripts
warnUnsafeScripts = true
convertUnsafeScripts = true

-- Startup
-- NOTE: defaultPriority only works on Windows and sets process
-- priority, valid values are: "normal", "above-normal", "high"
defaultPriority = "high"
startupDatabaseOptimization = true

-- Status server information
ownerName = "Malucooo"
ownerEmail = "e_nunes@live.com"
url = "http://www.facebook.com/erick.nunes.75"
location = "Brazil"
 

 

 

Mudei para o MyAcc, porem quando tento logar fica a mensagem:

XhTGOXqgSOyUVQmqbJvC4w.png

 

Gostaria de saber se tem como por para escolher a cidade também

 

Login.php

Citar

<?php
/**
 * Login manager
 *
 * @package   MyAAC
 * @author    Slawkens <slawkens@gmail.com>
 * @copyright 2017 MyAAC
 * @version   0.2.4
 * @link     http://my-aac.org
 */
defined('MYAAC') or die('Direct access not allowed!');
$logged = false;
$logged_flags = 0;

$action = isset($_REQUEST['action']) ? strtolower($_REQUEST['action']) : '';
if($action == 'logout' && !isset($_REQUEST['account_login']))
{
    unset($_SESSION['account']);
    unset($_SESSION['password']);
    unset($_SESSION['remember_me']);

    if(isset($_REQUEST['redirect']))
    {
        header('Location: ' . urldecode($_REQUEST['redirect']));
        exit;
    }
}
else
{
    // new login with data from form
    if(!$logged && isset($_POST['account_login']) && isset($_POST['password_login']))
    {
        $login_account = strtoupper($_POST['account_login']);
        $login_password = $_POST['password_login'];
        if(!empty($login_account) && !empty($login_password))
        {
            if($cache->enabled())
            {
                $tmp = '';
                if($cache->fetch('failed_logins', $tmp))
                {
                    $tmp = unserialize($tmp);
                    $to_remove = array();
                    foreach($tmp as $ip => $t)
                    {
                        if(time() - $t['last'] >= 5 * 60)
                            $to_remove[] = $ip;
                    }

                    foreach($to_remove as $ip)
                        unset($tmp[$ip]);
                }
                else
                    $tmp = array();

                $ip = $_SERVER['REMOTE_ADDR'];
                $t = isset($tmp[$ip]) ? $tmp[$ip] : NULL;
            }

            $account_logged = $ots->createObject('Account');
            if(USE_ACCOUNT_NAME)
                $account_logged->find($login_account);
            else
                $account_logged->load($login_account);
    
            $config_salt_enabled = fieldExist('salt', 'accounts');
            if($account_logged->isLoaded() && encrypt(($config_salt_enabled ? $account_logged->getCustomField('salt') : '') . $login_password) == $account_logged->getPassword()
                && (!isset($t) || $t['attempts'] < 5)
                )
            {
                $_SESSION['account'] = $account_logged->getId();
                $_SESSION['password'] = encrypt(($config_salt_enabled ? $account_logged->getCustomField('salt') : '') . $login_password);
                if(isset($_POST['remember_me']))
                    $_SESSION['remember_me'] = true;

                $logged = true;

                $logged_flags = $account_logged->getWebFlags();
                if(isset($_POST['admin']) && !admin()) {
                    $errors[] = 'This account has no admin privileges.';
                    unset($_SESSION['account']);
                    unset($_SESSION['password']);
                    unset($_SESSION['remember_me']);
                    $logged = false;
                }
                else {
                    $account_logged->setCustomField('web_lastlogin', time());
                }
            }
            else
            {
                // temporary solution for blocking failed login attempts
                if($cache->enabled())
                {
                    if(isset($t))
                    {
                        $t['attempts']++;
                        $t['last'] = time();

                        if($t['attempts'] >= 5)
                            $errors[] = 'A wrong password has been entered 5 times in a row. You are unable to log into your account for the next 5 minutes. Please wait.';
                        else
                            $errors[] = 'Account name or password is not correct.';
                    }
                    else
                    {
                        $t = array('attempts' => 1, 'last' => time());
                        $errors[] = 'Account name or password is not correct.';
                    }

                    $tmp[$ip] = $t;
                    $cache->set('failed_logins', serialize($tmp), 60 * 60); // save for 1 hour
                }
            }
        }
    }
    
    // stay-logged with sessions
    if(isset($_SESSION['account']))
    {
        $account_logged = $ots->createObject('Account');
        $account_logged->load($_SESSION['account']);
        if($account_logged->isLoaded() && $account_logged->getPassword() == $_SESSION['password']
            //&& (!isset($_SESSION['admin']) || admin())
            && (isset($_SESSION['remember_me']) || $_SESSION['last_visit'] > time() - 15 * 60))  // login for 15 minutes if "remember me" is not used
                $logged = true;
        else
        {
            unset($_SESSION['account']);
            unset($account_logged);
        }
    }

    if($logged)
        $logged_flags = $account_logged->getWebFlags();
}

$_SESSION['last_visit'] = time();
if(defined('PAGE'))
    $_SESSION['last_page'] = PAGE;
$_SESSION['last_uri'] = $_SERVER['REQUEST_URI'];
?>
 

 

Edited by mastof (see edit history)
Link to post
Share on other sites

@malucooo Cara estou com alguns problemas em dawnport, coloquei true para os potion e mesmo assim o player não ganha o potion, os outfit dele não muda para knight,mage, hunter conforme o global, mesmo eu mexendo no script e também não está mudando a vocation igual do global quando passa em um dos caminhos, como resolvo isso?

Link to post
Share on other sites

46 minutos atrás, Dolera disse:

No cliente 11 só ta carregando o primeiro char, o resto nao aparece e o cliente 11 crasha em alguns sqms, exemplo: sai do barco de edron e tenta ir no depot.

 

@malucooo

Antigamente o meu crashava quando eu abria as Outifits, mas do nada parou

Link to post
Share on other sites

  • Erimyth pinned this topic
  • Erimyth featured this topic
  • Erimyth unfeatured and unpinned this topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By Broth Swor
      Boa noite galera!! venho disponibilzar um map que eu estava montando, usando como base o serv OTX para Coloca-lo online, mapa foi criado do zero utilizando algumas hunt conhecidas para quem quiiser usar ta ae
       
      http://www.mediafire.com/file/q71dm1ddgcwhxbi/TimesEdition.rar/file
       
      https://www.virustotal.com/#/file/03f90e617ee862c869e8c522637da3c0221a53aaeceb2845bc2b1204e61401cd/detection
       
      Imagens
      DhomusDay Vile

       
      BeachTown

       
      Merenptah's Desert

       
      Ulthar's Ice

       
      Magic Island

    • By Cat
      Yutae
      Fiz essa cidade a alguns anos e estava guardada no meu PC. Completei ela com 5 hunts, pois tinha um comprador interessado, porém o mesmo foi assaltado e desistiu da compra, então decidi postar pra vocês. O mapa é simples, mas tem vários acessos pela cidade pra WAR e locais para NPC, é uma cidade completa, as houses já vem cadastradas, mais informações e imagens abaixo.
       
      Informações:
      Versão: 11.0
      Depots: 38
      Criaturas: 596
      Casas: 24 (maior casa: "Plazza C GH II" (145 sqm))
       
       
      Show Off Cidade:
      Templo & Depot:
       
       
       
      Norte da Cidade e Porto
       
       
       
      Centro da Cidade:
       
       
       
      Arredores:
       
       
       
      Saída sul para as hunts com algun s mobs:
       
       
       
       
       
      Show Off Hunts:

       
      1 - Azul: Shock Head, Betrayed Wraith, Destroyer e Blightwalker
      Imagens:
       
       
      2 - Amarelo: Serpent Spawn, Medusa e Wyvern, 
      Imagens:
       
       
       
      3 - Laranja: Wailing Window, Son of Verminor e Plaguesmith.
      Imagens:
       
       
       
      4 - Vermelho: Silencer, Demon, Behemoth, Dark Torturer e Juggernaut.
      Imagens:
       
       
       
      5 - Rosa: Fury, Grim Reaper e Hellhound.
      Imagens:
       
       
       
      6 - Cinza: Serpent Spawn & Medusa
       
       
       
      7 - Marrom: Betrayed Wraith, Blightwalker e Undead Dragon.
       
       
       
      A ilha das fury acompanha um depot:
       
       
       
      Baixar mapa:
      Yutaev1_Nolis.rar
       
       
       
       
       
    • By Russher
      Global 10/11.9x [v31]
       

       
       
      - New Falcons
      - New Asuras
      - Warzone 4,5,6
      - Exercise Training
      - Raids 100%
      - Monstros 100%
      - Trainer Offline 100%
      - Trainer Online 100%
      - Taming system funcionando 100%;
      - Database completa
      - War System 100%
      - Global MAP Full
      - Store 100%
      - Imbuement
      - Prey System
      - Entre outros sistemas.
       
      DOWNLOAD
      https://mega.nz/file/xcl13KKS#BNRHj79iFZmKFCaohEzGXBH8IDk3rPxHYiwhOdQmy7U

      Scan Vírus Total
      https://www.virustotal.com/gui/file/48553781e2b6a96daf706cdcd25246d59e7fb757bef4f8d1eea2b5cd368f134e/detection
      IMAGES
       
      Créditos:
    • By Jaurez
      Olá pessoal do TK.
      Hj resolvi postar a pasta monster simplificada, ou seja, todos os "bixu" numa pasta só pra facilitar o acesso quando precisarem mexer em algum.
      Sem mais delongas é só salvar a sua pasta antes de descompactar essa.
      Estão todos em um único local e já arrumadinho bonitinho pra usar no seu server 12+.
      monster.rar
      scan
       
    • By viniciusdonadi
      Boa noite galera, eu queria abrir um ot de tibia global da versao mais atual que der e com site. So que eu nao sei NADA sobre como abrir, como baixar mapa e etc..
       
      Eu abria ot na versao 8.10 la em meados de 2008-2009. Mas agora deve ter mudado tudo, e eu nao acho nada de como abrir. se alguem puder me ajudar e me mandar um passo a passo, desde downloads ate a execuçao ficaria grato. Obrigado
  • Recently Browsing   0 members

    No registered users viewing this page.



×
×
  • Create New...

Important Information

Confirmação de Termo