
Solutions
-
vankk's post in (Resolvido)Double Exp Item para tfs 1.x was marked as the answerfunction onUse(cid, item, fromPosition, itemEx, toPosition) local player = Player(cid) if player:getStorageValue(1234) >= os.time() then player:say('You already have double exp!', TALKTYPE_MONSTER_SAY) return true end player:setStorageValue(1234, os.time() + 86400) Item(item.uid):remove(1) player:say('Your 24 hours of double XP has started!', TALKTYPE_MONSTER_SAY) return true end em events/scripts/player.lua procure por function Player:onGainExperience(source, exp, rawExp) e adiciona na linha abaixo:
if self:getStorageValue(1234) >= os.time() then exp = exp * 2 end
-
vankk's post in (Resolvido)Erro no config php was marked as the answerVe 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); }
-
vankk's post in (Resolvido)Server Info do meu gesior tfs1.0 was marked as the answerctrl+u nesse site, copia as tables, e seja feliz.
-
vankk's post in (Resolvido)Ver site sem configurar mysql was marked as the answerah my bad, eu li errado, achava que vc queria abrir um servidor sem website, então, vc nao precisa de um servidor, apenas o config.lua, porque todos os AAC tendem a checar ele, e voce ter uma database tbm, se não, como que o website vai checar as coisas? Baixa um config.lua e mexa com o que voce quer mexer, (:
-
vankk's post in Assinatura do fórum was marked as the answerhttp://www.tibiaking.com/forum/settings/
E depois em assinatura -
vankk's post in (Resolvido)Sistema area vip liberada por 45 minutos was marked as the answerNão tenho a minima ideia se vai funcionar:
globalevents com time 20:00
local config = { teleportActionId = 1247, -- action do tp teleportPos = {x = 1001, y = 992, z = 7}, -- aonde vai aparecer o tp teleportId = 1387, storage = 485, tempo = 45, } function TPSai() local get = getThingfromPos(config.teleportPos) if get.itemid == config.teleportId then doRemoveItem(get.uid, 1) doBroadcastMessage("O teleport sumiu do templo, amanhã as 20hrs ele volta.", MESSAGE_STATUS_WARNING) print('Removed TP.') setGlobalStorageValue(config.storage, 0) end end function onTime(interval) local tp = doCreateTeleport(config.teleportId, config.teleportPos) doItemSetAttribute(tp, "aid", config.teleportActionId) doBroadcastMessage("Foi criado um teleport no templo um teleport para a area VIP por 45 minutos, aproveita!", MESSAGE_STATUS_WARNING) setGlobalStorageValue(config.storage, 1) addEvent(TPSai, config.tempo * 1000 * 60) print('Teleport nasceu no templo por 45 minutos.') end outro script no globalevents (bota com delay de 5000 miliseg)
function onThink(interval, lastExecution, thinkInterval) local pos = {x = 1001, y = 992, z = 7} if (getGlobalStorageValue(cid, 485) == 0) then doTeleportThing(cid, pos) doSendMagicEffect(getCreaturePosition(cid), 12) doPlayerSendTextMessage(cid, 22, "Voce saiu da area vip por 45 minutos, amanha tem mais.") setPlayerStorageValue(cid, 486, 0) end end movementsfunction onStepIn(cid, item, pos) local area = {x = 1176, y = 1048, z = 15} if item.actionid == 1247 then if getPlayerStorageValue(cid, 486) < 1 then setPlayerStorageValue(cid, 486, 1) end doTeleportThing(cid, area) doSendMagicEffect(getCreaturePosition(cid), 12) doPlayerSendTextMessage(cid, 22, "Voce entrou na area VIP por 45 minutos.") end return TRUE end login.lualocal pos = {x = 1001, y = 992, z = 7} if (getPlayerStorageValue(cid, 486) == 1 and getGlobalStorageValue(cid, 485) == 0) then doTeleportThing(cid, pos) doSendMagicEffect(getCreaturePosition(cid), 12) doPlayerSendTextMessage(cid, 22, "Voce foi teletransportado para fora da area VIP.") setPlayerStorageValue(cid, 486, 0) end Esperando os 10 mil erros.. -
vankk's post in (Resolvido)[PEDIDO] Monstro & Raid - Zushuka TFS 1.0 was marked as the answer<?xml version="1.0" encoding="UTF-8"?> <monster name="Zushuka" nameDescription="zushuka" race="blood" experience="9000" speed="220" manacost="0"> <health now="15000" max="15000" /> <look type="149" head="86" body="12" legs="31" feet="60" addons="0" corpse="20423" /> <targetchange interval="4000" chance="10" /> <flags> <flag summonable="0" /> <flag attackable="1" /> <flag hostile="1" /> <flag illusionable="0" /> <flag convinceable="0" /> <flag pushable="0" /> <flag canpushitems="1" /> <flag canpushcreatures="1" /> <flag staticattack="70" /> <flag targetdistance="1" /> <flag runonhealth="0" /> </flags> <attacks> <attack name="melee" interval="2000" min="0" max="-560" /> <attack name="ice" interval="2000" chance="10" length="8" spread="3" min="0" max="-100"> <attribute key="areaEffect" value="iceattack" /> </attack> <attack name="ice" interval="2000" chance="20" range="7" min="0" max="-110"> <attribute key="shootEffect" value="snowball" /> </attack> <attack name="ice" interval="2000" chance="10" length="8" spread="3" min="-300" max="-750"> <attribute key="areaEffect" value="icearea" /> </attack> <attack name="outfit" interval="2000" chance="10" range="7" item="7172" duration="4000"> <attribute key="areaEffect" value="blueshimmer" /> </attack> <attack name="speed" interval="2000" chance="15" range="7" speedchange="-330" duration="20000"> <attribute key="areaEffect" value="icetornado" /> </attack> </attacks> <defenses armor="20" defense="20"> <defense name="healing" interval="10000" chance="1" min="7500" max="7515"> <attribute key="areaEffect" value="blueshimmer" /> </defense> <defense name="healing" interval="3000" chance="15" min="200" max="500"> <attribute key="areaEffect" value="blueshimmer" /> </defense> </defenses> <elements> <element firePercent="50" /> <element earthPercent="40" /> <element holyPercent="30" /> <element energyPercent="-10" /> <element deathPercent="-10" /> </elements> <immunities> <immunity ice="1" /> <immunity paralyze="1" /> <immunity invisible="1" /> </immunities> <voices interval="2000" chance="7"> <voice sentence="Cool down, you will?" /> <voice sentence="Freeze!" /> <voice sentence="Is this all you've got?" /> <voice sentence="Rise, my servants. Destroy the trespassers!" /> <voice sentence="And stay cool." /> <voice sentence="Your cold dead body will be a marvelous ice statue." /> </voices> <loot> <item id="2148" countmax="200" chance="92000" /> <!-- gold coin --> <item id="21400" chance="92000" /> <!-- silver raid token --> <item id="7290" chance="57000" /> <!-- shard --> <item id="7449" chance="42000" /> <!-- crystal sword --> <item id="8472" countmax="5" chance="42000" /> <!-- great spirit potion --> <item id="2396" chance="42000" /> <!-- ice rapier --> <item id="2168" chance="42000" /> <!-- life ring --> <item id="7443" chance="35000" /> <!-- bullseye potion --> <item id="7892" chance="35000" /> <!-- glacier shoes --> <item id="7440" chance="35000" /> <!-- mastermind potion --> <item id="2152" chance="35000" /> <!-- platinum coin --> <item id="5909" countmax="2" chance="35000" /> <!-- white piece of cloth --> <item id="7439" chance="28000" /> <!-- berserk potion --> <item id="2158" chance="28000" /> <!-- blue gem --> <item id="2663" chance="28000" /> <!-- mystic turban --> <item id="7888" chance="21000" /> <!-- glacier amulet --> <item id="7590" countmax="5" chance="21000" /> <!-- great mana potion --> <item id="5912" chance="14000" /> <!-- blue piece of cloth --> <item id="2445" chance="14000" /> <!-- crystal mace --> <item id="2201" chance="14000" /> <!-- dragon necklace --> <item id="7896" chance="14000" /> <!-- glacier kilt --> <item id="7897" chance="14000" /> <!-- glacier robe --> <item id="9971" chance="14000" /> <!-- gold ingot --> <item id="7591" countmax="5" chance="14000" /> <!-- great health potion --> <item id="7459" chance="14000" /> <!-- pair of earmuffs --> <item id="2436" chance="14000" /> <!-- skull staff --> <item id="2195" chance="7000" /> <!-- boots of haste --> <item id="7902" chance="7000" /> <!-- glacier mask --> <item id="5911" chance="7000" /> <!-- red piece of cloth --> <item id="21699" chance="7000" /> <!-- trapped lightning --> <item id="21700" chance="3000" /> <!-- icy culotte --> </loot> </monster> <?xml version="1.0" encoding="utf-8"?> <raid> <singlespawn delay="1000" name="Zushuka" x="1" y="2" z="3" /> </raid>
-
vankk's post in (Resolvido)Spell Buff was marked as the answerlocal tempo = 180 -- tempo em segundos. local ml = 80 -- quantos ira aumentar o skill de ML local skillfist = 25 -- quantos ira aumentar o skill de Fist local skillsword = 85 -- quantos ira aumentar o skill de Sword local skillaxe = 25 -- quantos ira aumentar o skill de Axe local skillclub = 25 -- quantos ira aumentar o skill de Club local skilldistance = 85 -- quantos ira aumentar o skill de Distance local skillshield = 25 -- quantos ira aumentar o skill de Shield local health = 200 -- A cada 1 segundo quantos aumentar de vida local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, ml) setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, skillfist) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword) setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, skillaxe) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, skillclub) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, skilldistance) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield) setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_SPEED, 250) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_REGENERATION) setConditionParam(condition, CONDITION_PARAM_SUBID, 1) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, health) setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000) setCombatCondition(combat, condition) function magicEffect113(tempo2,tempo3,cid) if (isCreature(cid)) then if getCreatureCondition(cid, CONDITION_REGENERATION, 1) then doSendMagicEffect(getPlayerPosition(cid), 113) end end end function onCastSpell(cid, var) local outfit = {lookType = 512, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0} if (getCreatureStorage(cid, 89745) == 4) then if getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then doSetCreatureOutfit(cid, outfit, 60*1000) doCombat(cid, combat, var) tempo2 = 0 while (tempo2 ~= (tempo*1000)) do addEvent(magicEffect113, tempo2, tempo2, tempo*1000, cid) tempo2 = tempo2 + 500 end doPlayerSendCancel(cid, "Sorry, you are transformed.") end else doPlayerSendCancel(cid, "Sorry, you're not Anbu.") end end
-
vankk's post in (Resolvido)Erro Comfirmaçao Pagseguro 3 etapa was marked as the answerExatamente isso.
>>8. Em até 4 dias úteis serão depositados dois valores de até R$ 0,99 cada na conta corrente informada;
>> 9. Assim que receber os depósitos, você retorna ao PagSeguro e nos informa quais valores foram depositados.
-
vankk's post in (Resolvido)Demon oak Voice was marked as the answerTesta o script abaixo, se nao funcionar.. Tenta editar a linha 19 para local specs = getSpectators(demonOak_pos, false, true, 0, 15, 0, 15) .
local demonOak_pos = {x = 32716, y = 32352, z = 7} local questAreaPosition = { {x = 32706, y = 32345, z = 7, stackpos = 255}, {x = 32725, y = 32357, z = 7, stackpos = 255} } local sounds = { 'Release me and you will be rewarded greatefully!', 'What is this? Demon Legs lying here? Someone might have lost them!', 'I\'m trapped, come here and free me fast!!', 'I can bring your beloved back from the dead, just release me!', 'What a nice shiny golden armor. Come to me and you can have it!', 'Find a way in here and release me! Pleeeease hurry!', 'You can have my demon set, if you help me get out of here!' } function onThink(interval, lastExecution) local specs = Game.getSpectators(demonOak_pos, false, true, 0, 15, 0, 15) for i = 1, #specs do if isInRange(specs[i]:getPosition(), questAreaPosition[1], questAreaPosition[2]) then return true end specs[i]:say(sounds[math.random(#sounds)], TALKTYPE_MONSTER_YELL, false, 0, demonOak_pos) end return true end