Tutorial ūüĒįComo abrir un servidor 12x/13x Otbr/Canary

Alex

Miembro del equipo
Webdesigner
LV
58
 
Awards
38
La pagina web me da error 500

Te voy a mostrar mi información para ver si tengo un error...

El nombre de la carpeta de la pagina web es gesior-aac-develop

El servidor es el que esta en el repositorio de github de ayer

Clave del UniserverZ

12345

Nombre de la base de datos

verylin

dirección del config.lua

L:\Servidor_Tibia\Server\otservbr
El primer config, está por defecto ( sin rellenar, para adjuntarlo, sin rar, hay un botón Code en el editor de texto ).

Para ver m√°s r√°pido cu√°l es el error, puedes tambi√©n darle click en Xampp o UniserverZ en apache > error log y mirar la √ļltima linea.
 

Alex

Miembro del equipo
Webdesigner
LV
58
 
Awards
38
La pagina web me da error 500

Te voy a mostrar mi información para ver si tengo un error...

El nombre de la carpeta de la pagina web es gesior-aac-develop

El servidor es el que esta en el repositorio de github de ayer

Clave del UniserverZ

12345

Nombre de la base de datos

verylin

dirección del config.lua

L:\Servidor_Tibia\Server\otservbr

Hola,

H√© modificado tu respuesta y quitado los archivos incluidos para evitar que cualquier lo descargue y vea informaci√≥n personal dentro ( contrase√Īas etc ).

El primer corresponde al Config.php del Gesior:
Por lo que hé visto, no esta editado:
/** SERVER PATHS */
if ($config['base_url'] == $config['site']['realurl'] || $config['base_url'] == $config['site']['realurlwww']) {
$config['site']['serverPath'] = "/path/server/"; // SERVER PATH IN PRODUCTION
} else {
$config['site']['serverPath'] = "/path/server/"; // SERVERPATH LOCALHOST
En donde aparece en negro, indica tu servidor: L:/Servidor_Tibia/Server/otservbr/ , en las dos lineas.

/**SERVER PATHS */
if ($config['base_url'] == $config['site']['realurl'] || $config['base_url'] == $config['site']['realurlwww']) {
$config['site']['serverPath'] = " L:/Servidor_Tibia/Server/otservbr/"; // SERVER PATH IN PRODUCTION
} else {
$config['site']['serverPath'] = " L:/Servidor_Tibia/Server/otservbr/"; // SERVERPATH LOCALHOST
Luego, debes de bajar un poco abajo del config y encontrar:
/** GOOGLE RECAPTCHA VALUES */
$config['site']['gRecaptchaSecret'] = "";
$config['site']['gRecaptchaSiteKey'] = "";

Aqui debes de seguir los pasos, si estas utilizando el Gesior Ultimo compatible Otservbr, clicar en el ReCaptcha y crear un recaptcha, indicar localhost en la web, mientras no esté online como URL, si usas no ip, indica la URL de tu no ip:

Luego tu config.lua indica:

-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "root"
mysqlPass = "******"
mysqlDatabase = "******"

Donde las **** , es para no mostrar la información que indicaste, ahora aquí el error que hay es que el Usuario es " Root ".
Esto no puede ser, debes de absolutamente crear un un nuevo usuario en el PhpMyAdmin con una contrase√Īa, luego clicar en √©l y darle los derechos a la base de datos que has creado.

PhpMyAdmin > Nueva base de datos > Importar la SQL UNICAMENTE del Gesior ( no la del servidor , no es como Znote que hay que importar las 2, aqu√≠ solamente la SQL schema que esta en Gesior ) > Una vez terminado pulsar en > Cuentas de Usuario ( si no lo ves clica en el logo PhpMyAdmin, luego arriba en el menu lo veras ) > Crear un nuevo usuario > Usuario Localhost con contrase√Īa > Una vez terminado clicas en el editar privilegios > Base de datos > Selecciona la tuya > Dale todos los derechos
 
S

spectrum08ve

Invitado
Me sigue dando error 500 la pagina web y si intento entrar directo por el cliente con la cuenta @god con el cliente 12.64 me dice
error en transferring http://127.0.0.1/login.php - server replied: Not Found

Asi esta la configuracion del config.php del a pagina web


Código:
<?PHP
if (!function_exists('is_https')) {
    function is_https()
    {
        if (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') {
            return true;
        } elseif (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) === 'https') {
            return true;
        } elseif (!empty($_SERVER['HTTP_FRONT_END_HTTPS']) && strtolower($_SERVER['HTTP_FRONT_END_HTTPS']) !== 'off') {
            return true;
        }

        return false;
    }
}

$is_https = is_https();

if ($is_https) {
    $base_url = "https://" . $_SERVER['HTTP_HOST'];
    $base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']), "", $_SERVER['SCRIPT_NAME']);
} else {
    $base_url = "http://" . $_SERVER['HTTP_HOST'];
    $base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']), "", $_SERVER['SCRIPT_NAME']);
}

/** SERVER URLS */
/** @var array $config */
$config['base_url'] = $base_url;
$config['site']['base_url'] = $base_url;
$config['site']['realurl'] = "https:///"; // Put the real url for your website without www DO NOT FORGET FROM / AT THE END
$config['site']['realurlwww'] = "https:///"; // Put the real url for your website with www IF IT IS A SUBDOMINUM PUT THE MSM URL OF THE REAL URL
$config['site']['testurl'] = "http://localhost/"; // Put the url you use to test your site (LOCALHOST)
/** END SERVER URLS */


/** SERVER PATHS */
if ($config['base_url'] == $config['site']['realurl'] || $config['base_url'] == $config['site']['realurlwww']) {
    $config['site']['serverPath'] = "L:/Servidor_Tibia/Server/otservbr/"; // SERVER PATH IN PRODUCTION
} else {
    $config['site']['serverPath'] = "L:/Servidor_Tibia/Server/otservbr/"; // SERVERPATH LOCALHOST
}
/** END SERVER PATHS */


/** ENABLE SHOP */
$config['site']['shopEnabled'] = false;

$config['site']['start'] = 'Apr 07, 2020 18:00:00';


/** GOOGLE RECAPTCHA VALUES */
$config['site']['gRecaptchaSecret'] = "6LePp3cdAAAAAGTsMHRoq4M8T4FDWEBqPYmMFN2N";
$config['site']['gRecaptchaSiteKey'] = "6LePp3cdAAAAACPGPuLkDdDg7sxKd_ExhOeRkNVp";

/** WIDGETS CONFIG */
$config['site']['widget_rank'] = true;
$config['site']['widget_supportButton'] = true;
$config['site']['widget_buycharButton'] = false;
$config['site']['widget_PremiumBox'] = true;
$config['site']['widget_Serverinfobox'] = false;
$config['site']['widget_Serverinfoboxfloat'] = true;
$config['site']['widget_NetworksBox'] = false;
$config['site']['widget_CurrentPollBox'] = false;
$config['site']['widget_CastleWarBox'] = false;
$config['site']['twoAuthentication2'] = true;

/** WIDGETS 'widget_rank' TOP LVL CONFIGS */
$config['site']['top_lvl_qtd'] = 5; // 1 -- 5
$config['site']['top_lvl_goku_isActive'] = true; // true - false
$config['site']['top_lvl_out_anim'] = true; // true - false

# Social Networks
$config['social']['status'] = true;
$config['social']['facebook'] = ""; // Link to your facebook page
$config['social']['discord'] = ""; // Link to your discord invite
$config['social']['fbapiversion'] = "";
$config['social']['fbapilink'] = "";
$config['social']['fbpageid'] = "";
$config['social']['accessToken'] = "";
$config['social']['twitter'] = "";
$config['social']['twittercreator'] = "";
$config['social']['fbappid'] = "";

# Using Ajax Field Validation, this is important if you want to use ajax check in your create account.
$config['site']['sqlHost'] = "localhost";
$config['site']['sqlUser'] = "spectrum08ve";
$config['site']['sqlPass'] = "12345";
$config['site']['sqlBD'] = "verylin";

# Characters animatedOutfits php
$config['site']['animatedOutfits_url'] = 'http://127.0.0.1/AnimatedOutfits/animoutfit.php?';
$config['site']['outfit_images_url'] = 'http://127.0.0.1/AnimatedOutfits/outfit.php?';
$config['site']['icons_images_url'] = '/images/icons_damage/';
$config['site']['item_images_extension'] = '.png';
$config['site']['flag_images_url'] = '/images/flags/';
$config['site']['flag_images_extension'] = '.png';


# Config Shop
$outfits_list = array();
$loyalty_title = array(
    50 => 'Scout',
    100 => 'Sentinel',
    200 => 'Steward',
    400 => 'Warden',
    1000 => 'Squire',
    2000 => 'Warrior',
    3000 => 'Keeper',
    4000 => 'Guardian',
    5000 => 'Sage
'
);
$config['shop']['newitemdays'] = 1;

# Character Former name, time in days to show the former names
$config['site']['formerNames'] = 10;
$config['site']['formerNames_amount'] = 10;

# PAGE: characters.php
$config['site']['quests'] = array(
    "Demon Helmet" => 2213,
    "The Dream Courts" => 23000,
    "Pits Of Inferno" => 10544,
    "The Secret Library" => 22399,
    "The Annihilator" => 2215,
    "The First Dragon" => 14018,
    "Wrath Of The Emperor" => 12374
);

# PAGE: whoisonline.php
$config['site']['private-servlist.com_server_id'] = 0;

# Account Maker Config
$config['site']['encryptionType'] = 'sha1';
$config['site']['useServerConfigCache'] = false;
$towns_list = array(
    1 => 'Dawnport Tutorial',
    2 => 'Dawnport',
    3 => 'Rookgaard',
    4 => 'Island of Destiny',
    5 => 'Ab\'Dendriel',
    6 => 'Carlin',
    7 => 'Kazordoon',
    8 => 'Thais',
    9 => 'Venore',
    10 => 'Ankrahmun',
    11 => 'Edron',
    12 => 'Farmine',
    13 => 'Darashia',
    14 => 'Liberty Bay',
    15 => 'Port Hope',
    16 => 'Svargrond',
    17 => 'Yalahar',
    18 => 'Gray Beach',
    19 => 'Krailos',
    20 => 'Rathleton',
    21 => 'Roshamuul',
    22 => 'Issavi',
);
$vocations_list = [
    0 => "No Vocation",
    1 => "Sorcerer",
    2 => "Druid",
    3 => "Paladin",
    4 => "Knight",
    5 => "Master Sorcerer",
    6 => "Elder Druid",
    7 => "Royal Paladin",
    8 => "Elite Knight",
    10 => "ALL"
];
$highscores_list = [
    //        1 => "Achievements",
    2 => "Axe Fighting",
    3 => "Club Fighting",
    4 => "Distance Fighting",
    5 => "Experience Points",
    6 => "Fishing",
    7 => "First Fighting",
    //        8 => "Loyalty Points",
    9 => "Magic Level",
    10 => "Shielding",
    11 => "Sword Fighting"
];
# Create Account Options
$config['site']['one_email'] = true;
$config['site']['create_account_verify_mail'] = false;
$config['site']['verify_code'] = true;
$config['site']['email_days_to_change'] = 3;
$config['site']['newaccount_premdays'] = 10000;
$config['site']['send_register_email'] = true;
$config['site']['flash_client_enabled'] = false;

# Create Character Options
$config['site']['newchar_vocations'] = array(0 => 'Rook Sample');
$config['site']['newchar_towns'] = array(1);
$config['site']['max_players_per_account'] = 7;

# Emails Config
$config['site']['send_emails'] = false;
$config['site']['mail_address'] = "spectrum08ve@gmail.com";
$config['site']['mail_senderName'] = "";
$config['site']['smtp_enabled'] = true;
$config['site']['smtp_host'] = "smtp.gmail.com";
$config['site']['smtp_port'] = 465;
$config['site']['smtp_auth'] = true;
$config['site']['smtp_user'] = "";
$config['site']['smtp_pass'] = "";
$config['site']['smtp_secure'] = true;

# PAGE: accountmanagement.php
$config['site']['send_mail_when_change_password'] = true;
$config['site']['send_mail_when_generate_reckey'] = true;
$config['site']['email_time_change'] = 7;
$config['site']['daystodelete'] = 7;

# PAGE: guilds.php
$config['site']['guild_need_level'] = 1;
$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']['ticket_reply_access'] = 5;

# PAGE: latestnews.php
$config['site']['news_limit'] = 6;

# PAGE: killstatistics.php
$config['site']['last_deaths_limit'] = 40;

# PAGE: team.php
$config['site']['groups_support'] = array(2, 3, 4, 5, 6);

# PAGE: highscores.php INACTIVE
$config['site']['groups_hidden'] = array(3, 4, 5, 6);
$config['site']['accounts_hidden'] = array(1);

# PAGE: lostaccount.php
$config['site']['email_lai_sec_interval'] = 180;

/** LANDPAGE CONFIG */
$config['site']['landpage_isactive'] = true;
$config['site']['landpage_title'] = "";
$config['site']['landpage_timeout'] = 60 * 10080; // Time in seconds 1 * 60 = 1 minute
$config['site']['landpage_description'] = ""; // Type text here to appear on the landpage
$config['site']['landpage_max_notices'] = 3; // Maximum number of news items displayed on the landpage.
$config['site']['landpage_youtube'] = ""; // youtube video id


/** OUIBOUNCE - DISPLAY A MODAL WHEN REMOVING THE MOUSE FROM THE SCREEN */
$config['site']['ouibounce_isActive'] = true;


/** HIGH SCORES CONFIG */
$config['site']['h_limit'] = 25; // Limit players per page
$config['site']['h_limitOffset'] = 200; // Limits the maximum number of players in the rank
$config['site']['h_group_acc_show'] = "1,2,3,6"; // Select the class groups that will appear in the rank

/** INFO_BAR TIBIA NEW LIKE */
$config['site']['info_bar_active'] = true;
$config['site']['info_bar_cast'] = true;
$config['site']['info_bar_twitch'] = true;
$config['site']['info_bar_youtube'] = true;
$config['site']['info_bar_forum'] = true;
$config['site']['info_bar_online'] = true;

/**
    * DONATE CONFIG LIKE PAYABLE OLD_CONFIG
    * (50 * 10) = R $ 5.00 // 50 = TIBIA COINS COUNT 1 to 1 ratio
*/

$config['donate']['offers'] = [
    /** id =>[PRICE=>COINS]*/
    0 => [(5 * 100) => 75],
    1 => [(10 * 100) => 150],
    2 => [(25 * 100) => 375],
    3 => [(50 * 90) => 750], //10% discount
    4 => [(100 * 90) => 1500], //10% discount
    5 => [(200 * 80) => 3000], //20% discount
    6 => [(300 * 80) => 4500], //20% discount
    8 => [(400 * 70) => 6000], //30% discount
    // 9 => [24500 => 5000]
];


$proporcao_preco = (array_keys($config['donate']['offers'][intval(0)])[0] / 100);
$proporcao_qnt = array_values($config['donate']['offers'][intval(0)])[0];

$config['donate']['proporcao'] = $proporcao_preco / $proporcao_qnt;
$config['donate']['show_proporcao'] = false;

/**
 * configure your active payment method with this
 * true = ACTIVE
 * false = INACTIVE
 */
$config['paymentsMethods'] = [
    'pagseguro' => true,
    'paypal' => true,
    'mercadoPago' => false,
    'transfer' => false,
    'picpay' => true
];

/** PICPAY CONFIGS */
$config['picpay']['user'] = ''; //User no having @

/** Bank transfer data */
$config['banktransfer'] = [
    //        EXAMPLE TO ADD MORE
    //        0 => [
    //                'bank' => '',
    //                'agency' => '',
    //                'account' => '',
    //                'name' => '',
    //                'operation' => '',
    //                'email' => '',
    //                'acctype' => ''
    //        ],
    //        1 => [
    //                'bank' => '',
    //                'agency' => '',
    //                'account' => '',
    //                'name' => '',
    //                'operation' => '',
    //                'email' => '',
    //                'acctype' => ''
    //        ]
];

/** PAGSEGURO FIXED */
$config['pagseguro']['testing'] = false;
$config['pagseguro']['lightbox'] = true;
$config['pagseguro']['tokentest'] = "";

/** PAGSEGURO CONFIGS */
$config['pagseguro']['email'] = "@gmail.com";
$config['pagseguro']['token'] = "";
$config['pagseguro']['produtoNome'] = 'Tibia Coins';
$config['pagseguro']['urlRedirect'] = $config['base_url'];
$config['pagseguro']['urlNotification'] = 'https:///retpagseguro.php';

$config['pagseguro']['offers'] = [
    500 => 75,
    800 => 125,
    1500 => 250,
    2800 => 500,
    4900 => 1000
];

// /** PayPal configs */
$config['paypal']['email'] = "@gmail.com";
$config['paypal']['sandboxemail'] = "sb-lmf4f1383105@business.example.com";
$config['paypal']['itemName'] = "Tibia Coins";
$config['paypal']['notify_url'] = $config['base_url'] . "paypal_ipn.php";
$config['paypal']['currency'] = "BRL";
// /** SETUP LIVE OR TESTING YOUR IMPLEMENT */
$config['paypal']['env'] = "production"; // sandbox | production
// /** PRODUCTION IDS */
$config['paypal']['clientID'] = "";
$config['paypal']['clientSecretID'] = "";
// /** SANDBOX IDS */
$config['paypal']['sandboxClientID'] = "";
$config['paypal']['sandboxClientSecretID'] = "";
// /** ##PayPal configs */
/** PayPal configs *
$config['paypal']['email'] = "spectrum08ve@gmail.com";
$config['paypal']['sandboxemail'] = "sb-vuwmo1072234@business.example.com";
$config['paypal']['itemName'] = "Tibia Coins";
$config['paypal']['notify_url'] = $config['base_url'] . "paypal_ipn.php";
$config['paypal']['currency'] = "BRL";
/** SETUP LIVE OR TESTING YOUR IMPLEMENT */
$config['paypal']['env'] = "production"; // sandbox | production
/** PRODUCTION IDS *
$config['paypal']['clientID'] = "";
$config['paypal']['clientSecretID'] = "";
/** SANDBOX IDS *
$config['paypal']['sandboxClientID'] = "";
$config['paypal']['sandboxClientSecretID'] = "";
/** ##PayPal configs*/

/** MERCADO PAGO CONFIGS */
$config['mp']['CLIENT_ID'] = "";
$config['mp']['CLIENT_SECRET'] = "";
$config['mp']['SANDBOX_CLIENT_ID'] = "";
$config['mp']['SANDBOX_CLIENT_SECRET'] = "";
$config['mp']['sandboxMode'] = false; // true | false
$config['sale']['productName'] = "Tibia Coins";
$config['sale']['subProductName'] = "Coins";
/** ##MERCADO PAGO CONFIGS */

/** LAYOUT CONFIGS */
//$config['site']['layout'] = 'med'; //Layout Name
$config['site']['layout'] = 'tibiacom'; //Layout Name
//$config['site']['layout'] = 'materialize_template'; //Layout Name
$config['site']['vdarkborder'] = '#505050';
$config['site']['darkborder'] = '#D4C0A1';
$config['site']['lightborder'] = '#F1E0C6';
$config['site']['download_page'] = false;
$config['site']['serverinfo_page'] = true;
$config['site']['cssVersion'] = "?vs=3.0.6";

/** MULTIPLE REQ CONFIGS */
$config['site']['max_req_tries'] = 3;
$config['site']['timeout_time'] = 1; //TIME IN MINUTES

/** SELL CHARACTERS ACCOUNT CONFIGURE */
$config['sell']['account_seller_id'] = 2;
$config['site']['max_price_coin'] = 10000;
$config['site']['max_price_gold'] = 100000000;
$config['site']['sell_by_gold'] = false;
$config['site']['min_lvl_to_sell'] = 1;
/** SALE TAXES PERCENT 0-100 */
$config['site']['percent_sellchar_sale'] = 5;

/** Promoção configuration */
$config['site']['promo_isactive'] = false;
$config['site']['promo_imagename'] = 'promo.png';

/** SELL CHARACTERS VARIABLES LOAD */
$config['site']['Outfits_path'] = $config['site']['serverPath'] . "data/XML/outfits.xml";
$config['site']['Mounts_path'] = $config['site']['serverPath'] . "data/XML/mounts.xml";
$config['site']['Itens_path'] = $config['site']['serverPath'] . "data/items/items.xml";

$config['site']['enablelogs'] = false;
$config['site']['logsdir'] = '/home/logs/';



Y ASI ESTA LA CONFIGURACION DEL CONFIG.LUA


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

onlyInvitedCanMoveHouseItems = true
cleanProtectionZones = false

-- Connection Config
-- NOTE: maxPlayers set to 0 means no limit
-- NOTE: MaxPacketsPerSeconds if you change you will be subject to bugs by WPE, keep the default value of 25
ip = "127.0.0.1"
bindOnlyGlobalAddress = false
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = 0
motd = "Bem vindo ao OTServBR-Global!"
onePlayerOnlinePerAccount = true
allowClones = false
serverName = "OTServBR-Global"
statusTimeout = 5 * 1000
replaceKickOnLogin = true
maxPacketsPerSecond = 25
maxItem = 2000
maxContainer = 100

-- Version
clientVersion = 1264
clientVersionStr = "12.64"

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

-- GameStore
gamestoreByModules = true

-- NOTE: Access only for Premium Account
onlyPremiumAccount = false

-- Customs
weatherRain = false
thunderEffect = false
freeQuests = false
allConsoleLog = false
-- NOTE: saveIntervalTime in hours
saveInterval = false
saveIntervalCleanMap = false
saveIntervalTime = 1
-- Stamina in Trainers
staminaTrainer = false
staminaTrainerDelay = 5
staminaTrainerGain = 1
-- Stamina in PZ
staminaPz = false
staminaOrangeDelay = 1
staminaGreenDelay = 5
staminaPzGain = 1

-- 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
-- Periods: daily/weekly/monthly/yearly/never
housePriceEachSQM = 1000
houseRentPeriod = "never"
houseOwnedByAccount = false

-- Item Usage
timeBetweenActions = 200
timeBetweenExActions = 1000

-- Push Delay
pushDelay = 1000
pushDistanceDelay = 1500

-- Map
-- NOTE: set mapName WITHOUT .otbm at the end
-- NOTE: unzip the map world.rar
mapName = "otservbr"
mapAuthor = "OTServBR"

-- Party List limitations
-- max distance in which players in party list are visible
-- NOTE partyListMaxDistance set to 0 means no limit
partyListMaxDistance = 30

-- Custom Map
-- NOTE: mapCustomEnabled: true = activate the map, false = disable the map
mapCustomName = "otservbr-custom"
mapCustomFile = "data/world/custom/otservbr-custom.otbm"
mapCustomSpawn = "data/world/custom/otservbr-custom-spawn.xml"
mapCustomAuthor = "OTServBR"
mapCustomEnabled = true

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

-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "spectrum08ve"
mysqlPass = "12345"
mysqlDatabase = "verylin"
mysqlPort = 3306
mysqlSock = ""

passwordtype= 'sha1'
-- Misc.
allowChangeOutfit = true
freePremium = false
kickIdlePlayerAfterMinutes = 15
maxMessageBuffer = 4
emoteSpells = false
classicEquipmentSlots = false
allowWalkthrough = true
coinPacketSize = 25
coinImagesURL = "http://127.0.0.1/images/store/"
classicAttackSpeed = false
showScriptsLogInConsole = false

-- Server Save
-- NOTE: serverSaveNotifyDuration in minutes
serverSaveNotifyMessage = true
serverSaveNotifyDuration = 5
serverSaveCleanMap = false
serverSaveClose = false
serverSaveShutdown = true

-- Rates
-- NOTE: rateExp, rateSkill and rateMagic is used as a fallback only
-- To configure rates see file data/stages.lua
rateExp = 1
rateSkill = 50
rateLoot = 3
rateMagic = 25
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 = "OTServBR-Global"
ownerEmail = ""
url = "https://github.com/opentibiabr/otservbr-global"
location = "South America"

-- Sends Discord webhook notifications on startup, raids and shutdown.
-- The URL layout is https://discord.com/api/webhooks/:id/:token
-- Leave empty if you wish to disable.
discordWebhookURL = ""
 

Alex

Miembro del equipo
Webdesigner
LV
58
 
Awards
38
Me sigue dando error 500 la pagina web y si intento entrar directo por el cliente con la cuenta @god con el cliente 12.64 me dice
error en transferring http://127.0.0.1/login.php - server replied: Not Found

Asi esta la configuracion del config.php del a pagina web


Código:
<?PHP
if (!function_exists('is_https')) {
    function is_https()
    {
        if (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') {
            return true;
        } elseif (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) === 'https') {
            return true;
        } elseif (!empty($_SERVER['HTTP_FRONT_END_HTTPS']) && strtolower($_SERVER['HTTP_FRONT_END_HTTPS']) !== 'off') {
            return true;
        }

        return false;
    }
}

$is_https = is_https();

if ($is_https) {
    $base_url = "https://" . $_SERVER['HTTP_HOST'];
    $base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']), "", $_SERVER['SCRIPT_NAME']);
} else {
    $base_url = "http://" . $_SERVER['HTTP_HOST'];
    $base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']), "", $_SERVER['SCRIPT_NAME']);
}

/** SERVER URLS */
/** @var array $config */
$config['base_url'] = $base_url;
$config['site']['base_url'] = $base_url;
$config['site']['realurl'] = "https:///"; // Put the real url for your website without www DO NOT FORGET FROM / AT THE END
$config['site']['realurlwww'] = "https:///"; // Put the real url for your website with www IF IT IS A SUBDOMINUM PUT THE MSM URL OF THE REAL URL
$config['site']['testurl'] = "http://localhost/"; // Put the url you use to test your site (LOCALHOST)
/** END SERVER URLS */


/** SERVER PATHS */
if ($config['base_url'] == $config['site']['realurl'] || $config['base_url'] == $config['site']['realurlwww']) {
    $config['site']['serverPath'] = "L:/Servidor_Tibia/Server/otservbr/"; // SERVER PATH IN PRODUCTION
} else {
    $config['site']['serverPath'] = "L:/Servidor_Tibia/Server/otservbr/"; // SERVERPATH LOCALHOST
}
/** END SERVER PATHS */


/** ENABLE SHOP */
$config['site']['shopEnabled'] = false;

$config['site']['start'] = 'Apr 07, 2020 18:00:00';


/** GOOGLE RECAPTCHA VALUES */
$config['site']['gRecaptchaSecret'] = "6LePp3cdAAAAAGTsMHRoq4M8T4FDWEBqPYmMFN2N";
$config['site']['gRecaptchaSiteKey'] = "6LePp3cdAAAAACPGPuLkDdDg7sxKd_ExhOeRkNVp";

/** WIDGETS CONFIG */
$config['site']['widget_rank'] = true;
$config['site']['widget_supportButton'] = true;
$config['site']['widget_buycharButton'] = false;
$config['site']['widget_PremiumBox'] = true;
$config['site']['widget_Serverinfobox'] = false;
$config['site']['widget_Serverinfoboxfloat'] = true;
$config['site']['widget_NetworksBox'] = false;
$config['site']['widget_CurrentPollBox'] = false;
$config['site']['widget_CastleWarBox'] = false;
$config['site']['twoAuthentication2'] = true;

/** WIDGETS 'widget_rank' TOP LVL CONFIGS */
$config['site']['top_lvl_qtd'] = 5; // 1 -- 5
$config['site']['top_lvl_goku_isActive'] = true; // true - false
$config['site']['top_lvl_out_anim'] = true; // true - false

# Social Networks
$config['social']['status'] = true;
$config['social']['facebook'] = ""; // Link to your facebook page
$config['social']['discord'] = ""; // Link to your discord invite
$config['social']['fbapiversion'] = "";
$config['social']['fbapilink'] = "";
$config['social']['fbpageid'] = "";
$config['social']['accessToken'] = "";
$config['social']['twitter'] = "";
$config['social']['twittercreator'] = "";
$config['social']['fbappid'] = "";

# Using Ajax Field Validation, this is important if you want to use ajax check in your create account.
$config['site']['sqlHost'] = "localhost";
$config['site']['sqlUser'] = "spectrum08ve";
$config['site']['sqlPass'] = "12345";
$config['site']['sqlBD'] = "verylin";

# Characters animatedOutfits php
$config['site']['animatedOutfits_url'] = 'http://127.0.0.1/AnimatedOutfits/animoutfit.php?';
$config['site']['outfit_images_url'] = 'http://127.0.0.1/AnimatedOutfits/outfit.php?';
$config['site']['icons_images_url'] = '/images/icons_damage/';
$config['site']['item_images_extension'] = '.png';
$config['site']['flag_images_url'] = '/images/flags/';
$config['site']['flag_images_extension'] = '.png';


# Config Shop
$outfits_list = array();
$loyalty_title = array(
    50 => 'Scout',
    100 => 'Sentinel',
    200 => 'Steward',
    400 => 'Warden',
    1000 => 'Squire',
    2000 => 'Warrior',
    3000 => 'Keeper',
    4000 => 'Guardian',
    5000 => 'Sage
'
);
$config['shop']['newitemdays'] = 1;

# Character Former name, time in days to show the former names
$config['site']['formerNames'] = 10;
$config['site']['formerNames_amount'] = 10;

# PAGE: characters.php
$config['site']['quests'] = array(
    "Demon Helmet" => 2213,
    "The Dream Courts" => 23000,
    "Pits Of Inferno" => 10544,
    "The Secret Library" => 22399,
    "The Annihilator" => 2215,
    "The First Dragon" => 14018,
    "Wrath Of The Emperor" => 12374
);

# PAGE: whoisonline.php
$config['site']['private-servlist.com_server_id'] = 0;

# Account Maker Config
$config['site']['encryptionType'] = 'sha1';
$config['site']['useServerConfigCache'] = false;
$towns_list = array(
    1 => 'Dawnport Tutorial',
    2 => 'Dawnport',
    3 => 'Rookgaard',
    4 => 'Island of Destiny',
    5 => 'Ab\'Dendriel',
    6 => 'Carlin',
    7 => 'Kazordoon',
    8 => 'Thais',
    9 => 'Venore',
    10 => 'Ankrahmun',
    11 => 'Edron',
    12 => 'Farmine',
    13 => 'Darashia',
    14 => 'Liberty Bay',
    15 => 'Port Hope',
    16 => 'Svargrond',
    17 => 'Yalahar',
    18 => 'Gray Beach',
    19 => 'Krailos',
    20 => 'Rathleton',
    21 => 'Roshamuul',
    22 => 'Issavi',
);
$vocations_list = [
    0 => "No Vocation",
    1 => "Sorcerer",
    2 => "Druid",
    3 => "Paladin",
    4 => "Knight",
    5 => "Master Sorcerer",
    6 => "Elder Druid",
    7 => "Royal Paladin",
    8 => "Elite Knight",
    10 => "ALL"
];
$highscores_list = [
    //        1 => "Achievements",
    2 => "Axe Fighting",
    3 => "Club Fighting",
    4 => "Distance Fighting",
    5 => "Experience Points",
    6 => "Fishing",
    7 => "First Fighting",
    //        8 => "Loyalty Points",
    9 => "Magic Level",
    10 => "Shielding",
    11 => "Sword Fighting"
];
# Create Account Options
$config['site']['one_email'] = true;
$config['site']['create_account_verify_mail'] = false;
$config['site']['verify_code'] = true;
$config['site']['email_days_to_change'] = 3;
$config['site']['newaccount_premdays'] = 10000;
$config['site']['send_register_email'] = true;
$config['site']['flash_client_enabled'] = false;

# Create Character Options
$config['site']['newchar_vocations'] = array(0 => 'Rook Sample');
$config['site']['newchar_towns'] = array(1);
$config['site']['max_players_per_account'] = 7;

# Emails Config
$config['site']['send_emails'] = false;
$config['site']['mail_address'] = "spectrum08ve@gmail.com";
$config['site']['mail_senderName'] = "";
$config['site']['smtp_enabled'] = true;
$config['site']['smtp_host'] = "smtp.gmail.com";
$config['site']['smtp_port'] = 465;
$config['site']['smtp_auth'] = true;
$config['site']['smtp_user'] = "";
$config['site']['smtp_pass'] = "";
$config['site']['smtp_secure'] = true;

# PAGE: accountmanagement.php
$config['site']['send_mail_when_change_password'] = true;
$config['site']['send_mail_when_generate_reckey'] = true;
$config['site']['email_time_change'] = 7;
$config['site']['daystodelete'] = 7;

# PAGE: guilds.php
$config['site']['guild_need_level'] = 1;
$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']['ticket_reply_access'] = 5;

# PAGE: latestnews.php
$config['site']['news_limit'] = 6;

# PAGE: killstatistics.php
$config['site']['last_deaths_limit'] = 40;

# PAGE: team.php
$config['site']['groups_support'] = array(2, 3, 4, 5, 6);

# PAGE: highscores.php INACTIVE
$config['site']['groups_hidden'] = array(3, 4, 5, 6);
$config['site']['accounts_hidden'] = array(1);

# PAGE: lostaccount.php
$config['site']['email_lai_sec_interval'] = 180;

/** LANDPAGE CONFIG */
$config['site']['landpage_isactive'] = true;
$config['site']['landpage_title'] = "";
$config['site']['landpage_timeout'] = 60 * 10080; // Time in seconds 1 * 60 = 1 minute
$config['site']['landpage_description'] = ""; // Type text here to appear on the landpage
$config['site']['landpage_max_notices'] = 3; // Maximum number of news items displayed on the landpage.
$config['site']['landpage_youtube'] = ""; // youtube video id


/** OUIBOUNCE - DISPLAY A MODAL WHEN REMOVING THE MOUSE FROM THE SCREEN */
$config['site']['ouibounce_isActive'] = true;


/** HIGH SCORES CONFIG */
$config['site']['h_limit'] = 25; // Limit players per page
$config['site']['h_limitOffset'] = 200; // Limits the maximum number of players in the rank
$config['site']['h_group_acc_show'] = "1,2,3,6"; // Select the class groups that will appear in the rank

/** INFO_BAR TIBIA NEW LIKE */
$config['site']['info_bar_active'] = true;
$config['site']['info_bar_cast'] = true;
$config['site']['info_bar_twitch'] = true;
$config['site']['info_bar_youtube'] = true;
$config['site']['info_bar_forum'] = true;
$config['site']['info_bar_online'] = true;

/**
    * DONATE CONFIG LIKE PAYABLE OLD_CONFIG
    * (50 * 10) = R $ 5.00 // 50 = TIBIA COINS COUNT 1 to 1 ratio
*/

$config['donate']['offers'] = [
    /** id =>[PRICE=>COINS]*/
    0 => [(5 * 100) => 75],
    1 => [(10 * 100) => 150],
    2 => [(25 * 100) => 375],
    3 => [(50 * 90) => 750], //10% discount
    4 => [(100 * 90) => 1500], //10% discount
    5 => [(200 * 80) => 3000], //20% discount
    6 => [(300 * 80) => 4500], //20% discount
    8 => [(400 * 70) => 6000], //30% discount
    // 9 => [24500 => 5000]
];


$proporcao_preco = (array_keys($config['donate']['offers'][intval(0)])[0] / 100);
$proporcao_qnt = array_values($config['donate']['offers'][intval(0)])[0];

$config['donate']['proporcao'] = $proporcao_preco / $proporcao_qnt;
$config['donate']['show_proporcao'] = false;

/**
 * configure your active payment method with this
 * true = ACTIVE
 * false = INACTIVE
 */
$config['paymentsMethods'] = [
    'pagseguro' => true,
    'paypal' => true,
    'mercadoPago' => false,
    'transfer' => false,
    'picpay' => true
];

/** PICPAY CONFIGS */
$config['picpay']['user'] = ''; //User no having @

/** Bank transfer data */
$config['banktransfer'] = [
    //        EXAMPLE TO ADD MORE
    //        0 => [
    //                'bank' => '',
    //                'agency' => '',
    //                'account' => '',
    //                'name' => '',
    //                'operation' => '',
    //                'email' => '',
    //                'acctype' => ''
    //        ],
    //        1 => [
    //                'bank' => '',
    //                'agency' => '',
    //                'account' => '',
    //                'name' => '',
    //                'operation' => '',
    //                'email' => '',
    //                'acctype' => ''
    //        ]
];

/** PAGSEGURO FIXED */
$config['pagseguro']['testing'] = false;
$config['pagseguro']['lightbox'] = true;
$config['pagseguro']['tokentest'] = "";

/** PAGSEGURO CONFIGS */
$config['pagseguro']['email'] = "@gmail.com";
$config['pagseguro']['token'] = "";
$config['pagseguro']['produtoNome'] = 'Tibia Coins';
$config['pagseguro']['urlRedirect'] = $config['base_url'];
$config['pagseguro']['urlNotification'] = 'https:///retpagseguro.php';

$config['pagseguro']['offers'] = [
    500 => 75,
    800 => 125,
    1500 => 250,
    2800 => 500,
    4900 => 1000
];

// /** PayPal configs */
$config['paypal']['email'] = "@gmail.com";
$config['paypal']['sandboxemail'] = "sb-lmf4f1383105@business.example.com";
$config['paypal']['itemName'] = "Tibia Coins";
$config['paypal']['notify_url'] = $config['base_url'] . "paypal_ipn.php";
$config['paypal']['currency'] = "BRL";
// /** SETUP LIVE OR TESTING YOUR IMPLEMENT */
$config['paypal']['env'] = "production"; // sandbox | production
// /** PRODUCTION IDS */
$config['paypal']['clientID'] = "";
$config['paypal']['clientSecretID'] = "";
// /** SANDBOX IDS */
$config['paypal']['sandboxClientID'] = "";
$config['paypal']['sandboxClientSecretID'] = "";
// /** ##PayPal configs */
/** PayPal configs *
$config['paypal']['email'] = "spectrum08ve@gmail.com";
$config['paypal']['sandboxemail'] = "sb-vuwmo1072234@business.example.com";
$config['paypal']['itemName'] = "Tibia Coins";
$config['paypal']['notify_url'] = $config['base_url'] . "paypal_ipn.php";
$config['paypal']['currency'] = "BRL";
/** SETUP LIVE OR TESTING YOUR IMPLEMENT */
$config['paypal']['env'] = "production"; // sandbox | production
/** PRODUCTION IDS *
$config['paypal']['clientID'] = "";
$config['paypal']['clientSecretID'] = "";
/** SANDBOX IDS *
$config['paypal']['sandboxClientID'] = "";
$config['paypal']['sandboxClientSecretID'] = "";
/** ##PayPal configs*/

/** MERCADO PAGO CONFIGS */
$config['mp']['CLIENT_ID'] = "";
$config['mp']['CLIENT_SECRET'] = "";
$config['mp']['SANDBOX_CLIENT_ID'] = "";
$config['mp']['SANDBOX_CLIENT_SECRET'] = "";
$config['mp']['sandboxMode'] = false; // true | false
$config['sale']['productName'] = "Tibia Coins";
$config['sale']['subProductName'] = "Coins";
/** ##MERCADO PAGO CONFIGS */

/** LAYOUT CONFIGS */
//$config['site']['layout'] = 'med'; //Layout Name
$config['site']['layout'] = 'tibiacom'; //Layout Name
//$config['site']['layout'] = 'materialize_template'; //Layout Name
$config['site']['vdarkborder'] = '#505050';
$config['site']['darkborder'] = '#D4C0A1';
$config['site']['lightborder'] = '#F1E0C6';
$config['site']['download_page'] = false;
$config['site']['serverinfo_page'] = true;
$config['site']['cssVersion'] = "?vs=3.0.6";

/** MULTIPLE REQ CONFIGS */
$config['site']['max_req_tries'] = 3;
$config['site']['timeout_time'] = 1; //TIME IN MINUTES

/** SELL CHARACTERS ACCOUNT CONFIGURE */
$config['sell']['account_seller_id'] = 2;
$config['site']['max_price_coin'] = 10000;
$config['site']['max_price_gold'] = 100000000;
$config['site']['sell_by_gold'] = false;
$config['site']['min_lvl_to_sell'] = 1;
/** SALE TAXES PERCENT 0-100 */
$config['site']['percent_sellchar_sale'] = 5;

/** Promoção configuration */
$config['site']['promo_isactive'] = false;
$config['site']['promo_imagename'] = 'promo.png';

/** SELL CHARACTERS VARIABLES LOAD */
$config['site']['Outfits_path'] = $config['site']['serverPath'] . "data/XML/outfits.xml";
$config['site']['Mounts_path'] = $config['site']['serverPath'] . "data/XML/mounts.xml";
$config['site']['Itens_path'] = $config['site']['serverPath'] . "data/items/items.xml";

$config['site']['enablelogs'] = false;
$config['site']['logsdir'] = '/home/logs/';



Y ASI ESTA LA CONFIGURACION DEL CONFIG.LUA


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

onlyInvitedCanMoveHouseItems = true
cleanProtectionZones = false

-- Connection Config
-- NOTE: maxPlayers set to 0 means no limit
-- NOTE: MaxPacketsPerSeconds if you change you will be subject to bugs by WPE, keep the default value of 25
ip = "127.0.0.1"
bindOnlyGlobalAddress = false
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = 0
motd = "Bem vindo ao OTServBR-Global!"
onePlayerOnlinePerAccount = true
allowClones = false
serverName = "OTServBR-Global"
statusTimeout = 5 * 1000
replaceKickOnLogin = true
maxPacketsPerSecond = 25
maxItem = 2000
maxContainer = 100

-- Version
clientVersion = 1264
clientVersionStr = "12.64"

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

-- GameStore
gamestoreByModules = true

-- NOTE: Access only for Premium Account
onlyPremiumAccount = false

-- Customs
weatherRain = false
thunderEffect = false
freeQuests = false
allConsoleLog = false
-- NOTE: saveIntervalTime in hours
saveInterval = false
saveIntervalCleanMap = false
saveIntervalTime = 1
-- Stamina in Trainers
staminaTrainer = false
staminaTrainerDelay = 5
staminaTrainerGain = 1
-- Stamina in PZ
staminaPz = false
staminaOrangeDelay = 1
staminaGreenDelay = 5
staminaPzGain = 1

-- 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
-- Periods: daily/weekly/monthly/yearly/never
housePriceEachSQM = 1000
houseRentPeriod = "never"
houseOwnedByAccount = false

-- Item Usage
timeBetweenActions = 200
timeBetweenExActions = 1000

-- Push Delay
pushDelay = 1000
pushDistanceDelay = 1500

-- Map
-- NOTE: set mapName WITHOUT .otbm at the end
-- NOTE: unzip the map world.rar
mapName = "otservbr"
mapAuthor = "OTServBR"

-- Party List limitations
-- max distance in which players in party list are visible
-- NOTE partyListMaxDistance set to 0 means no limit
partyListMaxDistance = 30

-- Custom Map
-- NOTE: mapCustomEnabled: true = activate the map, false = disable the map
mapCustomName = "otservbr-custom"
mapCustomFile = "data/world/custom/otservbr-custom.otbm"
mapCustomSpawn = "data/world/custom/otservbr-custom-spawn.xml"
mapCustomAuthor = "OTServBR"
mapCustomEnabled = true

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

-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "spectrum08ve"
mysqlPass = "12345"
mysqlDatabase = "verylin"
mysqlPort = 3306
mysqlSock = ""

passwordtype= 'sha1'
-- Misc.
allowChangeOutfit = true
freePremium = false
kickIdlePlayerAfterMinutes = 15
maxMessageBuffer = 4
emoteSpells = false
classicEquipmentSlots = false
allowWalkthrough = true
coinPacketSize = 25
coinImagesURL = "http://127.0.0.1/images/store/"
classicAttackSpeed = false
showScriptsLogInConsole = false

-- Server Save
-- NOTE: serverSaveNotifyDuration in minutes
serverSaveNotifyMessage = true
serverSaveNotifyDuration = 5
serverSaveCleanMap = false
serverSaveClose = false
serverSaveShutdown = true

-- Rates
-- NOTE: rateExp, rateSkill and rateMagic is used as a fallback only
-- To configure rates see file data/stages.lua
rateExp = 1
rateSkill = 50
rateLoot = 3
rateMagic = 25
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 = "OTServBR-Global"
ownerEmail = ""
url = "https://github.com/opentibiabr/otservbr-global"
location = "South America"

-- Sends Discord webhook notifications on startup, raids and shutdown.
-- The URL layout is https://discord.com/api/webhooks/:id/:token
-- Leave empty if you wish to disable.
discordWebhookURL = ""
Vale, ahora, en Xampp o UniserverZ puedes entrar en la pesta√Īa apache > error log, abrirlo con un editor de texto y mirar las √ļltimas l√≠neas ?
Copiame las 5 √ļltimas porfavor , ah√≠ dir√° lo que est√° sucediendo
 

Alex

Miembro del equipo
Webdesigner
LV
58
 
Awards
38
S

stormy

Invitado
Buenas Alex,

He conseguido arrancar el servidor y me funciona perfectamente! Ahora me gustaria realizar algunos cambios al mapa. Pero no consigo abrir Remere Maps Editor con la version del mapa.

A ver si me podrias ayudar.
 

Alex

Miembro del equipo
Webdesigner
LV
58
 
Awards
38
Buenas Alex,

He conseguido arrancar el servidor y me funciona perfectamente! Ahora me gustaria realizar algunos cambios al mapa. Pero no consigo abrir Remere Maps Editor con la version del mapa.

A ver si me podrias ayudar.

Hola, entra en descargas > Open Tibia > Herramientas, abajo del Todo, Remeres Map Editor v3.6.0.
Descargalo, así conjuntamente al Spider Client Converter.
Abre Spider Client Converter, extrae el SPR y DAT del cliente tibia 12.72 o 12.64.
A la hora de abrir el remeres, te saltara un error algo de 1261, indícale la ubicación en donde esta tu .spr y .dat, seguramente en una carpeta llamada Clients.
Se te abrir√° el mapa.
 
S

stormy

Invitado
Buenas tardes Alex,

Tengo el servidor ya operativo pero veo que por la noche se cierra el OT. La web funciona perfectamente. Sabrias porque pasa?

No muestra ningun error ni nada.

PD: Estoy editando un poco el mapa haciendo una room de TPs pero no consigo que me salga la creature, pongo el respawn y lo otro en PZ pero no sale la creature. Sabrias porque me pasa?

Muchas gracias,
 

Alex

Miembro del equipo
Webdesigner
LV
58
 
Awards
38
Buenas tardes Alex,

Tengo el servidor ya operativo pero veo que por la noche se cierra el OT. La web funciona perfectamente. Sabrias porque pasa?

No muestra ningun error ni nada.

PD: Estoy editando un poco el mapa haciendo una room de TPs pero no consigo que me salga la creature, pongo el respawn y lo otro en PZ pero no sale la creature. Sabrias porque me pasa?

Muchas gracias,

Hola @stormy ,

El servidor si se cierra, deberias de abrir el .exe en el visual studio, ahi te dira porqué se cierra, luego puedes utilizar:

Para que se abra de nuevo el ot, cada vez que se caiga.

La criatura que incluyes en tu Spawn, esta en el remeres, esta también en tu OT ? has agregado la linea correspondiente en tu rme si es un monstruo custom ?
 

ponchaodml

Miembro
LV
1
 
Awards
3
Hola, ya tengo todo arriba y corriendo incluyendo la pagina y cliente pero tengo un problema con la pagina, cuando creo cuentas desde mi computadora local puedo crear cuentas y characters sin problema pero cuando entro por la url desde un externo no pueden crear cuentas ni chars. Supongo que debe ser algo con la base de datos pero no logro saber que esta fallando.
 

Alex

Miembro del equipo
Webdesigner
LV
58
 
Awards
38
Hola, ya tengo todo arriba y corriendo incluyendo la pagina y cliente pero tengo un problema con la pagina, cuando creo cuentas desde mi computadora local puedo crear cuentas y characters sin problema pero cuando entro por la url desde un externo no pueden crear cuentas ni chars. Supongo que debe ser algo con la base de datos pero no logro saber que esta fallando.
Hola,

No, por mala suerte, no tengo ni idea lo que es, en m√°s de cinco a√Īos a√ļn no he encontrado cu√°l es ese problema.

La solucion:

Si est√°s usando UniserverZ , pasate a Xampp.
Si utilizas Xampp, pasate a UniserverZ .
Si ninguno de los dos funcionan, es posible utilizar Wampp u otro.
 

ponchaodml

Miembro
LV
1
 
Awards
3
Hola,

No, por mala suerte, no tengo ni idea lo que es, en m√°s de cinco a√Īos a√ļn no he encontrado cu√°l es ese problema.

La solucion:

Si est√°s usando UniserverZ , pasate a Xampp.
Si utilizas Xampp, pasate a UniserverZ .
Si ninguno de los dos funcionan, es posible utilizar Wampp u otro.

Gracias Alex, problema solucionado. Con Xampp pude crear cuentas fuera de la local. Pero ahora estoy viendo esto en varias paginas como por ejemplo la de guilds:

Warning: fopen(engine/cache/guildlist.cache.php): failed to open stream: No such file or directory in C:\Xampp\htdocs\engine\function\cache.php on line 91

Warning
: fwrite() expects parameter 1 to be resource, bool given in C:\Xampp\htdocs\engine\function\cache.php on line 92

Warning
: fclose() expects parameter 1 to be resource, bool given in C:\Xampp\htdocs\engine\function\cache.php on line 93

Creo que es algo del Xampp porque no me aparecia eso con el UniserverZ .
 

Alex

Miembro del equipo
Webdesigner
LV
58
 
Awards
38
Gracias Alex, problema solucionado. Con Xampp pude crear cuentas fuera de la local. Pero ahora estoy viendo esto en varias paginas como por ejemplo la de guilds:

Warning: fopen(engine/cache/guildlist.cache.php): failed to open stream: No such file or directory in C:\Xampp\htdocs\engine\function\cache.php on line 91

Warning
: fwrite() expects parameter 1 to be resource, bool given in C:\Xampp\htdocs\engine\function\cache.php on line 92

Warning
: fclose() expects parameter 1 to be resource, bool given in C:\Xampp\htdocs\engine\function\cache.php on line 93

Creo que es algo del Xampp porque no me aparecia eso con el UniserverZ .

 
S

sheckone

Invitado
hola buenas tardes, tengo un problema, mi pagina carga y pueden entrar mis amigos pero de la nada se cai la pagina y le pico al refresh de no-ip y vuelve a entrar rapido, otra cosa mis amigos si pueden entrar a mi pagina pero yo no mas que en localhost, no se si pudieras ayudarme con eso
 

Alex

Miembro del equipo
Webdesigner
LV
58
 
Awards
38
hola buenas tardes, tengo un problema, mi pagina carga y pueden entrar mis amigos pero de la nada se cai la pagina y le pico al refresh de no-ip y vuelve a entrar rapido, otra cosa mis amigos si pueden entrar a mi pagina pero yo no mas que en localhost, no se si pudieras ayudarme con eso
Hola,

Si estas utilizando Xampp, p√°sate a UniserverZ , si usas UniserverZ , p√°sate a Xampp, eso corregir√° el segundo error.
¬ŅPara el primero, no entiendo muy bien, se cae la p√°gina? Tienes un problema con el Puerto 80 Apache ? Usas Skype a la vez o algo asi? Esos usan ese puerto apache, procura desinstalar ese tipo de programa, como Skype, por qu√© pueden interferir.
 

Alex

Miembro del equipo
Webdesigner
LV
58
 
Awards
38
need help compile on ubuntu ?

Supported OS​

  • Windows 10
  • Debian 10 and 11
  • Ubuntu 18.04 and 20.04

1. Install the required software​

The following command will install Git, CMake, a compiler and the libraries used by Otservbr.

Git will be used to download the source code, and CMake will be used to generate the build files.

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install git cmake build-essential libluajit-5.1-dev ca-certificates curl zip unzip tar pkg-config ninja-build
Install vcpkg

cd ~
git clone https://github.com/microsoft/vcpkg
cd vcpkg
./bootstrap-vcpkg.sh
cd ..

2. Download the source code​

cd ( Folder of your Otservbr )

3. Checkout nightly branch (optional)​

git checkout master

4. Folder structure​

.
‚Ēú‚ĒÄ‚ĒÄ otservbr
‚ĒĒ‚ĒÄ‚ĒÄ vcpkg

5. Configure and build​

mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake ..
make -j`nproc`
-- Running vcpkg install
This step will take a long time on the first run, as it needs to download and install all the dependencies, so be patient!
 

waski1212

Miembro
LV
8
 
Awards
8
if the file is not needed items.otb?


vcpkg collects usage data in order to help us improve your experience.
The data collected by Microsoft is anonymous.
You can opt-out of telemetry by re-running the bootstrap-vcpkg script with -disableMetrics,
passing --disable-metrics to vcpkg on the command line,
or by setting the VCPKG_DISABLE_METRICS environment variable.

Read more about vcpkg telemetry at docs/about/privacy.md


AND

/home/ots/build# cmake -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake ..
CMake Error at /usr/share/cmake-3.16/Modules/CMakeDetermineSystem.cmake:99 (message):
Could not find toolchain file: ~/vcpkg/scripts/buildsystems/vcpkg.cmake
Call Stack (most recent call first):
CMakeLists.txt:26 (project)


CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
 
Última edición:

Alex

Miembro del equipo
Webdesigner
LV
58
 
Awards
38
if the file is not needed items.otb?


vcpkg collects usage data in order to help us improve your experience.
The data collected by Microsoft is anonymous.
You can opt-out of telemetry by re-running the bootstrap-vcpkg script with -disableMetrics,
passing --disable-metrics to vcpkg on the command line,
or by setting the VCPKG_DISABLE_METRICS environment variable.

Read more about vcpkg telemetry at docs/about/privacy.md


AND

/home/ots/build# cmake -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake ..
CMake Error at /usr/share/cmake-3.16/Modules/CMakeDetermineSystem.cmake:99 (message):
Could not find toolchain file: ~/vcpkg/scripts/buildsystems/vcpkg.cmake
Call Stack (most recent call first):
CMakeLists.txt:26 (project)


CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
Bruh, i dont know about errors on Ubuntu.
About Ubuntu this is the Ubuntu compilation tutorial writed by Otservbr.
If doesnt work, try download the last version of Canary Server from Otservbr:


Take Src from Canary server, read the readme file.
If still doesnt work > Issue on github to Otservbr showing the error.
 
Arriba