
Tudo que Celulose postou
-
Problema ao criar site
testa..
-
Problema ao criar site
<?php if(!defined('INITIALIZED')) exit; class ConfigLUA extends Errors // NOT SAFE CLASS, LUA CONFIG CAN BE EXECUTED AS PHP CODE { private $config; public function __construct($path = false) { if($path) $this->loadFromFile($path); } public function loadFromFile($path) { if(Website::fileExists($path)) { $content = Website::getFileContents($path); $this->loadFromString($content); } else { new Error_Critic('#C-2', 'ERROR: <b>#C-2</b> : Class::ConfigLUA - LUA config file doesn\'t exist. Path: <b>' . $path . '</b>'); } } public function fileExists($path) { return Website::fileExists($path); } public function loadFromString($string) { $lines = explode("\n", $string); if(count($lines) > 0) foreach($lines as $ln => $line) { $tmp_exp = explode('=', $line, 2); if(count($tmp_exp) >= 2) { $key = trim($tmp_exp[0]); if(substr($key, 0, 2) != '--') { $value = trim($tmp_exp[1]); if(is_numeric($value)) $this->config[ $key ] = (float) $value; elseif(in_array(substr($value, 0 , 1), array("'", '"')) && in_array(substr($value, -1 , 1), array("'", '"'))) $this->config[ $key ] = (string) substr(substr($value, 1), 0, -1); elseif(in_array($value, array('true', 'false'))) $this->config[ $key ] = ($value == 'true') ? true : false; else { foreach($this->config as $tmp_key => $tmp_value) // load values definied by other keys, like: dailyFragsToBlackSkull = dailyFragsToRedSkull $value = str_replace($tmp_key, $tmp_value, $value); $ret = @eval("return $value;"); if((string) $ret == '') // = parser error { new Error_Critic('', 'ERROR: <b>#C-1</b> : Class::ConfigLUA - Line <b>' . ($ln + 1) . '</b> of LUA config file is not valid [key: <b>' . $key . '</b>]'); } $this->config[ $key ] = $ret; } } } } } public function getValue($key) { if(isset($this->config[ $key ])) return $this->config[ $key ]; else new Error_Critic('#C-3', 'ERROR: <b>#C-3</b> : Class::ConfigLUA - Key <b>' . $key . '</b> doesn\'t exist.'); } public function isSetKey($key) { return isset($this->config[ $key ]); } public function getConfig() { return $this->config; } } esse testei e está OK . Versão gesior ?
-
Problema ao criar site
olá. configlua.php
-
(Resolvido)[ANTI-BOT] Mandar player para cidade natal!
doTeleportThing(cid, {x = 26026, y = 26036, z = 5}) só você edita aqui {x = 26026, y = 26036, z = 5})
-
ServerCore
servercore , 4youstart são tudo boa , tem proteção suporte é bom . eu sempre usei OVH no meu caso sempre usei dedicado e o suporte é mais demorado porem raro você precisar a OVH.com é em dólar , euros . só escolher'
-
Bug Magic Level aumentando drasticamente
verifica se o servidor está usando skill stages .... todas magia aumenta rápido ? posta config.
-
Randar RPG Tibia Server
wtf , projeto lindo irei acompanhar parabéns
-
ERRO Compilar
Cara como ele vai acha que você não está na pastaaaaaaaa Primeiro usa sudo eu depois cd /home/otserv/pasta-da-source
-
ERRO Compilar
Usa o comando do site que você pegou
-
ERRO Compilar
Posta o erro
-
ERRO Compilar
Moço. Usa cd /home/otserv depois usa chmod 777 pasta-da-source Depois usa cd /home/otserv/pasta-da-source ai você usa o comando pra compila
-
ERRO Compilar
cd /home/otserv/pasta-da-source
-
Alguem tem esse site?
Custom meu amigo. Só pega um 2012 e modificar.
-
Bug Shop site
vai no shopsystem , alterar onde fica os seus item ...
-
Atacar e usar runa ao mesmo tempo
.... TFS 0.4 if((!_weapon->hasExhaustion() || !hasCondition(CONDITION_EXHAUST, EXHAUST_COMBAT)) && _weapon->useWeapon(this, item, attackedCreature)) this, item, attackedCreature VEJA <<<<<<<<<<<<<<<<<<<<<<<<<<<<< OTX this, weapon, attackedCreature VEJA <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< no topico ta claro que é para OTX , 0.4 já existe para 0.3.6 a diferencia é bem GRANDE** ...
- Atacar e usar runa ao mesmo tempo
-
[SQL] problema com query
show
-
[SQL] problema com query
sqlite DROP TABLE IF EXISTS market_offers; CREATE TABLE market_offers ( id INTEGER PRIMARY KEY NOT NULL, player_id INTEGER NOT NULL, sale BOOLEAN NOT NULL DEFAULT '0', itemtype UNSIGNED INTEGER NOT NULL, amount UNSIGNED INTEGER NOT NULL, created UNSIGNED INTEGER NOT NULL, anonymous BOOLEAN NOT NULL DEFAULT '0', price UNSIGNED INTEGER NOT NULL DEFAULT '0', world_id TINYINT( 4 ) NOT NULL DEFAULT ( 0 ), FOREIGN KEY ( player_id ) REFERENCES players ( id ) ON DELETE CASCADE ); mysql DROP TABLE IF EXISTS `market_offers`; CREATE TABLE `market_offers` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `world_id` tinyint(4) unsigned NOT NULL DEFAULT '0', `player_id` int(11) NOT NULL, `sale` tinyint(1) NOT NULL DEFAULT '0', `itemtype` int(10) unsigned NOT NULL, `amount` smallint(5) unsigned NOT NULL, `created` bigint(20) unsigned NOT NULL, `anonymous` tinyint(1) NOT NULL DEFAULT '0', `price` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `sale` (`sale`,`itemtype`), KEY `created` (`created`), KEY `market_offers_ibfk_1` (`player_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
- Atacar e usar runa ao mesmo tempo
- Atacar e usar runa ao mesmo tempo
- Atacar e usar runa ao mesmo tempo
-
(Resolvido)[SUPORTE] CoolDown na Magia
Se fizer alterando em exhaustion.check Não Seria melhor ? exemplo if exhaustion.check(cid, 13103) == TRUE then - exhaustion.set(cid, 13103, 45.0)
-
Atacar e usar runa ao mesmo tempo
Olá Reparei Que muitos Está Procurando essa alteração , em todo fórum só acha a versão 0.3.6. . e vim trazer 0.4 E OTX. OTX 2.1 procure por: Player.cpp if((!_weapon->hasExhaustion() || !hasCondition(CONDITION_EXHAUST)) && _weapon->useWeapon(this, weapon, attackedCreature)) Altere por: if(!_weapon->hasExhaustion() && _weapon->useWeapon(this, weapon, attackedCreature)) Usar runa enquanto corre. Em player.cpp, remova essa linha setNextAction(OTSYS_TIME() + getStepDuration(dir)); - TFS 0.4 Procure por: Player.cpp if((!_weapon->hasExhaustion() || !hasCondition(CONDITION_EXHAUST, EXHAUST_COMBAT)) && _weapon->useWeapon(this, item, attackedCreature)) Altere por : if(!_weapon->hasExhaustion() && _weapon->useWeapon(this, item, attackedCreature)) Usar runa enquanto corre. Em player.cpp, remova essa linha setNextAction(OTSYS_TIME() + getStepDuration(dir)); Créditos Usar Runa Enquanto corre - Xellath alterar para 0.4/otx 2.1 Eu !! As 2 Versão foi testado !!!
-
(Resolvido)[PEDIDO] Atacar e usar runa ao mesmo tempo 0.4
Player .cpp VERSÃO OTX 2.1... Procura por if((!_weapon->hasExhaustion() || !hasCondition(CONDITION_EXHAUST)) && _weapon->useWeapon(this, weapon, attackedCreature)) altere por ; if(!_weapon->hasExhaustion() && _weapon->useWeapon(this, weapon, attackedCreature)) --- 0.4 procure por if((!_weapon->hasExhaustion() || !hasCondition(CONDITION_EXHAUST, EXHAUST_COMBAT)) && _weapon->useWeapon(this, item, attackedCreature)) altere por : if(!_weapon->hasExhaustion() && _weapon->useWeapon(this, item, attackedCreature))
-
Erro nas senhas da data base
somente contas novas vai aaparecer a senha ou voce altere as antiga !