Ir para conteúdo
Banner com Efeitos

Celulose

Membro
  • Registro em

  • Última visita

Tudo que Celulose postou

  1. testa..
  2. <?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 ?
  3. olá. configlua.php
  4. doTeleportThing(cid, {x = 26026, y = 26036, z = 5}) só você edita aqui {x = 26026, y = 26036, z = 5})
  5. Celulose postou uma resposta no tópico em Suporte & Pedidos
    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'
  6. verifica se o servidor está usando skill stages .... todas magia aumenta rápido ? posta config.
  7. Celulose postou uma resposta no tópico em Formação de Equipe
    wtf , projeto lindo irei acompanhar parabéns
  8. Cara como ele vai acha que você não está na pastaaaaaaaa Primeiro usa sudo eu depois cd /home/otserv/pasta-da-source
  9. Usa o comando do site que você pegou
  10. Posta o erro
  11. 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
  12. cd /home/otserv/pasta-da-source
  13. Celulose postou uma resposta no tópico em Suporte Websites
    Custom meu amigo. Só pega um 2012 e modificar.
  14. Celulose postou uma resposta no tópico em Suporte Tibia OTServer
    vai no shopsystem , alterar onde fica os seus item ...
  15. Celulose postou uma resposta no tópico em Códigos C++
    .... 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** ...
  16. Celulose postou uma resposta no tópico em Códigos C++
    qual parte você não entendeu ? 0.3.6pl1 não 0.4 Não sabe ler ? olha os código e vê se é igual antes de fala asneira ... as função é diferente . se fosse igual antes de aprova iria fala babaca !
  17. 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 ;
  18. Celulose postou uma resposta no tópico em Códigos C++
    antes de falar coisas leia corretamente . função dele é para 0.3.6 e olha as minha !
  19. Celulose postou uma resposta no tópico em Códigos C++
    ele vai tira exhaust de quando você usa runa com magia ou , algo do tipo
  20. Celulose postou uma resposta no tópico em Códigos C++
    @Wakon ty
  21. Se fizer alterando em exhaustion.check Não Seria melhor ? exemplo if exhaustion.check(cid, 13103) == TRUE then - exhaustion.set(cid, 13103, 45.0)
  22. Celulose postou uma resposta no tópico em Códigos C++
    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 !!!
  23. 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))
  24. somente contas novas vai aaparecer a senha ou voce altere as antiga !

Informação Importante

Confirmação de Termo