Tudo que vankk postou
-
FLC - Attempt to mapping - ShowOff
Gostei (:
-
Nuker
@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.
-
Oferecendo serviço de hosting/segurança
Fale mais do host que voce adquiriu, de qual empresa, de mais informacões, etc.
-
(Resolvido)Erro no config php
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); }
-
Atualizar Query para TFS 1.2
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;
-
Loot indo para last hit. +REP
Acho que as sources do Vanaheim possui cast system, não tenho certeza..
-
Loot indo para last hit. +REP
Abre um issue no GitHub do TFS. Acho que no TFS 1.2 não possui esse erro. TFS 1.0 está outdated.
-
(Resolvido)Erro no config php
<?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; } }
- Minha água no rme tá bugada
-
Erro script tfs 1.0
Atualiza a funcão getPlayerSkillLevel.
-
(Resolvido)[AJUDA] Item de Tp
O script que o @p e o p l e mandou (que eu fiz .-.) não está removendo o item, voce testou? lol
- SHOP MODERN ACC
-
(Resolvido)[AJUDA] Item de Tp
@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.
-
(Resolvido)[REQUEST] !Mount Doll Script Full
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}
-
Configurar Trainner Offline
Se não me engano, o training offline é baseado nas rates que está configurada no config.lua, posso estar errado.
- Duvidas Tibia 9.81
- Duvidas Tibia 9.81
-
Training Offiline tfs1.2
https://github.com/otland/forgottenserver/commit/29b7cb4e6596444957e36be9c6b3ab1715b6750a
-
[Erro] Nenhuma account dá certo!
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".
-
Crise no Brasil
Enchi o tanque do carro hoje, 39~41 litros, 170 reais. Minha cara para isso, ta uma bosta. (:
-
Shared party tfs 1.2
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
-
[PEDIDO] Alguem Ajeita Essa Script
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
-
[PEDIDO] Alguem Ajeita Essa Script
Tente isso local config = { exausted = 60, tempo = 30, [533] = {800, 534, 692, 114}, [126] = {800, 475, 107, 114} } function change(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
-
Script Account Manager
Não existe outra maneira a não ser editar as sources.
-
urgente bloquear acc manager gesior
Como assim voce quer bloquear o acc manager no Gesior? Voce quis dizer editar a acc aonde que fica os samples? Se sim, então, simplesmente troque o password deles na database para algo bem dificil, eg: 8g8rg47w9idjls0dkb. ou bate de cara no teclado p escolher o password