Ir para conteúdo

vankk

Membro
  • Registro em

  • Última visita

Tudo que vankk postou

  1. Eu não sou muito bom com dicas, mas ok.. Não teria dicas, eu gosto de mapas bem clean assim, mas com um leve toque de detalhes. Igual que voce fez. Porém existe uns polaks de 2009~2011 que eu era amarrado no mapa deles, eles utilizavam muitosss detalhes, e ficava bom!! 2 deles trabalharam para mim num projeto que eu tive em 2012. Se quiser dar uma inspirada: https://otland.net/threads/gengia-ereth-project.167856/
  2. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Coloca para que quando isso acontecer ele seja transportado para o Templo. Como se fosse um TP igual no global.
  3. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Não seria mais fácil voce tentar descobrir como o player conseguiu subir no bau, e trabalhar em cima disso? Assim não precisa verificar todas as quests e separa-las.
  4. Gostei (:
  5. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    @Lykkan Voce resolveu um pequeno problema, a questão é, resolver todo o problema.. Digamos que pode ser que exista mais quests uma do lado da outra, é só questão de tempo até a pessoa que estava bugando descobrir.
  6. Fale mais do host que voce adquiriu, de qual empresa, de mais informacões, etc.
  7. Ve se no config/config.php existe isso: $config['site']['useServerConfigCache'] = false; Se não existir, adicione. E tenta usar esse script no load.init.php <?php if(!defined('INITIALIZED')) exit; $time_start = microtime(true); session_start(); function autoLoadClass($className) { if(!class_exists($className)) if(file_exists('./classes/' . strtolower($className) . '.php')) include_once('./classes/' . strtolower($className) . '.php'); else new Error_Critic('#E-7', 'Cannot load class <b>' . $className . '</b>, file <b>./classes/class.' . strtolower($className) . '.php</b> doesn\'t exist'); } spl_autoload_register('autoLoadClass'); //load acc. maker config to $config['site'] $config = array(); include('./config/config.php'); //load server config $config['server'] if(Website::getWebsiteConfig()->getValue('useServerConfigCache')) { // use cache to make website load faster if(Website::fileExists('./config/server.config.php')) { $tmp_php_config = new ConfigPHP('./config/server.config.php'); $config['server'] = $tmp_php_config->getConfig(); } else { // if file isn't cached we should load .lua file and make .php cache $tmp_lua_config = new ConfigLUA(Website::getWebsiteConfig()->getValue('serverPath') . 'config.lua'); $config['server'] = $tmp_lua_config->getConfig(); $tmp_php_config = new ConfigPHP(); $tmp_php_config->setConfig($tmp_lua_config->getConfig()); $tmp_php_config->saveToFile('./config/server.config.php'); } } else { $tmp_lua_config = new ConfigLUA(Website::getWebsiteConfig()->getValue('serverPath') . 'config.lua'); $config['server'] = $tmp_lua_config->getConfig(); } // remove magic quotes, to make it compatible with some bad PHP configurations, 'stripslashes' in scripts is not needed anymore! if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) { $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST); while(list($key, $val) = each($process)) { foreach ($val as $k => $v) { unset($process[$key][$k]); if(is_array($v)) { $process[$key][stripslashes($k)] = $v; $process[] = &$process[$key][stripslashes($k)]; } else $process[$key][stripslashes($k)] = stripslashes($v); } } unset($process); }
  8. Estou atualmente com problemas para atualizar algumas Querys para TFS 1.2, teria como alguém me ajudar? Segue o code abaixo: $allM1 = $SQL->query ('SELECT SUM(`level`) as `level` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = '.$guild_id.') ')->fetch(); $allM2 = $SQL->query ('SELECT AVG(`level`) as `level` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = '.$guild_id.') ')->fetch(); $allM3 = $SQL->query ('SELECT `name` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = '.$guild_id.') ORDER BY `level` ASC LIMIT 1')->fetch(); $allM4 = $SQL->query ('SELECT `name` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = '.$guild_id.') ORDER BY `level` DESC LIMIT 1')->fetch(); Estruturas: Yours VANKK;
  9. Acho que as sources do Vanaheim possui cast system, não tenho certeza..
  10. Abre um issue no GitHub do TFS. Acho que no TFS 1.2 não possui esse erro. TFS 1.0 está outdated.
  11. <?php if(!defined('INITIALIZED')) exit; class ConfigPHP extends Errors { private $config; private $loadedFromPath = ''; public function __construct($path = false) { if($path) $this->loadFromFile($path); } public function loadFromFile($path) { if(Website::fileExists($path)) { $content = Website::getFileContents($path); $this->loadedFromPath = $path; $lines = explode("\n", $content); unset($lines[0]); // remove <?php unset($lines[count($lines)]); // remove ? > $this->loadFromString(implode("\n", $lines)); } else WebsiteErrors::addError('#C-4', 'ERROR: <b>#C-4</b> : Class::ConfigPHP - PHP config file doesn\'t exist. Path: <b>' . $path . '</b>'); } public function fileExists($path) { return Website::fileExists($path); } public function loadFromString($string) { $ret = @eval('$_web_config = array();' . chr(0x0A) . $string . chr(0x0A) . ''); if($ret === false) { $error = error_get_last(); new Error_Critic('', ' - cannot load PHP config from string', array( new Error('MESSAGE', $error['message']), new Error('FILE', $error['file']), new Error('LINE', $error['line']), new Error('FILE PATH', $this->loadedFromPath) )); } $this->config = $_web_config; unset($_web_config); } private function parsePhpVariableToText($value) { if(is_bool($value)) return ($value) ? 'true' : 'false'; elseif(is_numeric($value)) return $value; else return '"' . str_replace('"', '\"' , $value) . '"'; } public function arrayToPhpString(array $a, $d) { $s = ''; if(is_array($a) && count($a) > 0) foreach($a as $k => $v) { if(is_array($v)) $s .= self::arrayToPhpString($v, $d . '["' . $k . '"]'); else $s .= $d . '["' . $k . '"] = ' . self::parsePhpVariableToText($v) . ';' . chr(0x0A); } return $s; } public function getConfigAsString() { return self::arrayToPhpString($this->config, '$_web_config'); } public function saveToFile($path = false) { if($path) $savePath = $path; else $savePath = $this->loadedFromPath; Website::putFileContents($savePath, '<?php' . chr(0x0A) . $this->getConfigAsString() . '?>'); } public function getValue($key) { if(isset($this->config[ $key ])) return $this->config[ $key ]; else new Error_Critic('#C-5', 'ERROR: <b>#C-5</b> : Class::ConfigPHP - Key <b>' . $key . '</b> doesn\'t exist.'); } public function setValue($key, $value) { $this->config[ $key ] = $value; } public function removeKey($key) { if(isset($this->config[ $key ])) unset($this->config[ $key ]); } public function isSetKey($key) { return isset($this->config[ $key ]); } public function getConfig() { return $this->config; } public function setConfig($value) { $this->config = $value; } }
  12. Atualiza o items.otb
  13. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Atualiza a funcão getPlayerSkillLevel.
  14. O script que o @p e o p l e mandou (que eu fiz .-.) não está removendo o item, voce testou? lol
  15. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Tentar usar esses arquivos, não tenho ideia se vai funcionar, eu usava um parecido com esse em meados de 2011. http://www.speedyshare.com/files/26113666/SHOP.zip
  16. @p e o p l e Esse script fui eu que fiz p vc pelo skype, seu gay. .-. @Loouis Actions, voce que não entendeu o script, kkk.
  17. Vou te explicar a diferenca das cores.. @Larissa Azhaurn na esquerda - @vankk na direita.. O seu script seria o nome da montaria e o ID que está configurada no mounts.xml <mount id="8" clientid="375" name="Tin Lizzard" speed="20" premium="no" /> Tin Lizzard ID 8.. então.. ["Tin Lizzard"] = {id = 8} Só não esquece que o script precisa ter VIRGULAS "," e quando for a ultima linha das montarias, não precisa, eg: ["widow queen"] = {id = 1}, ["Racing Bird"] = {id = 2}, ["War Bear"] = {id = 3}, ["Black Sheep"] = {id = 4}
  18. Se não me engano, o training offline é baseado nas rates que está configurada no config.lua, posso estar errado.
  19. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Adiciona do ID da montaria 1 até a 24. (se quiser mais edite). for i = 1, 24 do doPlayerAddMount(cid, i) end Para addon a mesma coisa, so mude a funcão doPlayerAddMount por doPlayerAddOutfit E sobre o NPC, é só voce editar
  20. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Para a duvida 1 e 2, voce cria usando LUA. E sobre a terceira, reformule a duvida.
  21. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    https://github.com/otland/forgottenserver/commit/29b7cb4e6596444957e36be9c6b3ab1715b6750a
  22. As senhas criptografadas significa que sua database está configurada com sha1, checa seu config.lua, veja se o plain está como sha1, no IP Address do servidor coloque ou seu IP Address ou "localhost" ou "127.0.0.1".
  23. vankk postou uma resposta no tópico em Playground (Off-topic)
    Enchi o tanque do carro hoje, 39~41 litros, 170 reais. Minha cara para isso, ta uma bosta. (:
  24. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    function Party:onJoin(player) return true end function Party:onLeave(player) return true end function Party:onDisband() return true end function Party:onShareExperience(exp) local sharedExperienceMultiplier = 1.20 --20% local vocationsIds = {} local vocationId = self:getLeader():getVocation():getId() if vocationId ~= VOCATION_NONE then vocationsIds[#vocationsIds + 1] = self:getLeader():getVocation():getId() end for _, member in ipairs(self:getMembers()) do vocationId = member:getVocation():getId() if not isInArray(vocationsIds, vocationId) and vocationId ~= VOCATION_NONE then vocationsIds[#vocationsIds + 1] = vocationId end end local size = #vocationsIds if size > 1 then sharedExperienceMultiplier = 1.0 + ((size * (10 + (size - 1) * 5)) / 100) end exp = (exp * sharedExperienceMultiplier) / (self:getMembers() + 1) return exp end
  25. local config = { exausted = 60, tempo = 30, [533] = {800, 534, 692, 114}, [126] = {800, 475, 107, 114} } function change(cid) local voc = config[getPlayerVocation(cid)] doPlayerSetVocation(cid, voc[2]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce Se Transformou Em Mode God!") doCreatureSay(cid, "Mode God", 19) setPlayerStorageValue(cid, 77889, os.time()+ config.exausted) local outfit = {lookType = voc[3]} doCreatureChangeOutfit(cid, outfit) doSendMagicEffect(getCreaturePosition(cid), voc[4]) end function onSay(cid, words, param, channel) local voc = config[getPlayerVocation(cid)] if getPlayerStorageValue(cid, 77889) >= os.time() then doPlayerSendCancel(cid, "You're exausted.") return TRUE end if isPremium(cid) then if voc then if getPlayerLevel(cid) >= voc[1] then addEvent(change, config.tempo * 1000, cid) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce precisa estar no level " .. voc[1] .. " para se Transformar Em Mode God.") end else doPlayerSendCancel(cid, "Nao é possível se transformar em Mode God.") end else doPlayerSendCancel(cid, "You must be premium account to use this command.") end return true end

Informação Importante

Confirmação de Termo