
Solutions
-
Sanieg's post in (Resolvido)[ERRO] Formula de MagicLevel was marked as the answerMano.... mds.. Você está certo. O damage é 40, numa vocação normal. Sua vocação multiplica esse valor (40) por 4... 40*4=160
Então basta alterar o "magDamage" para 1.0
Você disse que ele está causando 160 de dano... Coincidência ?! Eu diria que não, mas não sei né..
-
Sanieg's post in (Resolvido)Erro Unable Outfist was marked as the answerVerifique as suas tags e compare com essas tags acima que você vai entender...
-
Sanieg's post in (Resolvido)[PEDIDO] Alavanca recompensa se tiver 100 frags was marked as the answerlocal function getPlayFrags(cid) local time = os.time() local times = {today = (time - 86400), week = (time - (7 * 86400))} local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. getPlayerGUID(cid) .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC") if(result:getID() ~= -1) then repeat local content = {date = result:getDataInt("date")} if(content.date > times.today) then table.insert(contents.day, content) elseif(content.date > times.week) then table.insert(contents.week, content) else table.insert(contents.month, content) end until not result:next() result:free() end local size = {day = table.maxn(contents.day),week = table.maxn(contents.week),month = table.maxn(contents.month)} return size.day + size.week + size.month end function onUse(cid, fromPos, item, toPos) local item = 2160 --IDDOITEM if getPlayerStorageValue(cid, 19245) >= 1 then doPlayerSendCancel(cid, "Voce ja completou a quest.") return LUA_ERROR end if getPlayFrags(cid) < 100 then doPlayerSendCancel(cid, "Voce precisa possuir 100 frags.") return false end doPlayerAddItem(cid, item, 1) doPlayerSendTextMessage(cid, 19, "Voce recebeu seu premio.") setPlayerStorageValue(cid, 19245, 1) return true end
-
Sanieg's post in (Resolvido)Spell que da % a mas de dano de magia was marked as the answerEm creaturescripts.xml
<event type="statschange" name="porcenthit" script="porcent.lua"/> E em Spells.xml
<instant name="BoostGear" words="boost" lvl="100" mana="100" prem="0" exhaustion="2000" needlearn="0" script="Exemplo.lua"> </instant> -
Sanieg's post in (Resolvido)[Pedido] Npc de Barco was marked as the answerE esse "It was a pleasure doing business with you." fica no .xml ? poderia postar ele também ? ...
Essa pos que você configurou no script, já verificou se é nula ?!
-
Sanieg's post in (Resolvido){Pedido} Addon Bonus was marked as the answerLembrando que preciso do script da spell de heal... São todos em data/creaturescripts/scripts: crie sorcererskill.lua com o seguinte: function onStatsChange(cid, target, type, combat, value) if not getPlayerStorageValue(cid, 19235) >= 1 then return false end if math.abs(value) ~= 0 and getCreatureTarget(cid) ~= false then value = 10 * value / 100 + value --10 é a porcentagem end return true end depois knightskill.lua com:
function onStatsChange(cid, target, type, combat, value) if not getPlayerStorageValue(cid, 19236) >= 1 then return false end if math.abs(value) ~= 0 and getCreatureTarget(cid) ~= false then value = 5 * value / 100 + value --5 é a porcentagem end return true end e por ultimo skills.lua:
function onLogin(cid) local vocations = { [1] = {19235}, [3] = {19236} } if getCreatureOutfit(cid, lookAddons) ~= 3 and getPlayerStorageValue(cid, {19235, 19236}) >= 1 then setPlayerStorageValue(cid, 19235, -getPlayerStorageValue(cid, 19235)) setPlayerStorageValue(cid, 19236, -getPlayerStorageValue(cid, 19236)) end if getCreatureOutfit(cid, lookAddons) == 3 and getPlayerVocation(cid) == {1,2} then setPlayerStorageValue(cid, vocations[getPlayerVocation(cid)], 1) end return true end tags para colocar em creaturesscripts.xml (data/creaturescripts):
<event type="login" name="skills1" event=" script" value="skills.lua"/> <event type="statschange" name="skills2" event=" script" value="knightskill.lua"/> <event type="statschange" name="skills3" event=" script" value="sorcererskill.lua"/> -
Sanieg's post in (Resolvido)Ajuda ObjectBuilder was marked as the answerOlha encontrei o seguinte sobre esse erro:
Por razões de segurança alguns diretórios têm o acesso negado por exemplo: Arquivos de programas ou pastas do sistema.
-
Sanieg's post in (Resolvido)[AJUDA] Mudando Pokeballs was marked as the answerPara modificar isso não sei ao certo, porém é muito complicado creio que você terá que fazer alterações em:
Sprite dos itens no client (Se for remover os icons, existe um icon para cada pokémon no servidor ),
catch.lua em data/actions/scripts para alterar os atributos da pokeball e em items.xml em data/items
(Se for remover os icons) não me lembro ao certo se possui mais algum script.
-
Sanieg's post in (Resolvido)[AJUDA] Script was marked as the answertente assim:
function onKill(cid, target) local targetMonster = Monster(target) if not targetMonster then return true end if getCreatureName(cid) ~= 'drillworm' then return true end local player = Player(cid) if player:getStorageValue(Storage.spikeTask.Killing) > 0 and player:getStorageValue(Storage.spikeTask.Killing) < 8 then player:setStorageValue(Storage.spikeTask.Killing, player:getStorageValue(Storage.spikeTask.Killing) + 1) end return true end -
Sanieg's post in (Resolvido)[AJUDA] Problema com Sistema de Casamento was marked as the answerSe você se casou o npc setou a storage até ai tudo bem porém não setou a outfit de forma "correta" certo ? pois se ele setou a outfit acho que esta funcionado um segundo erro seria em você tentar se casar de novo porém já possui a storage.
Então ele pula para a outra função de casamento e acaba ficando sem resposta acho que é isso porque ele não vai te casar de novo.
E desculpe a demora para responder pois estava escrevendo uma recomendação enorme pro TK e acabei desistindo de postar
-
Sanieg's post in (Resolvido)[Pedido] Script ARENA was marked as the answeré parecido esse que postei só que é um teleport para ir para o local e não uma tile
-
Sanieg's post in (Resolvido)[AJUDA] Npc was marked as the answerassim ?
-
Sanieg's post in (Resolvido)Erros em scripts was marked as the answerRemovido a linha:
registerCreatureEvent(cid, "task_count") que não esta em creaturescripts.xml
-
Sanieg's post in (Resolvido){PEDIDO} Storage ao aprender spells was marked as the answer
-
Sanieg's post in (Resolvido)Ajuda Editar Spell was marked as the answerParece que esse script foi funcional em outro tópico na resposta de zipter98:
-
Sanieg's post in (Resolvido)Preciso de 1 AOL que nao perca items estando REDSKULL was marked as the answerAcho que tem algum event em creaturescripts que faz com que ele perca o item cancelando todas as outras ordens/funções
esse poderia ser o motivo de não estar funcionando, e não sei se você já viu ou não esse tópico
mais parece ser muito lógico e util: http://www.tibiaking.com/forum/topic/26631-script-para-n%C3%A3o-perder-item/
-
Sanieg's post in (Resolvido)Pedido Client [10.76] was marked as the answerNem tinha visto só uso (usava) o 8.60.
ta ai então: http://baixe.net/download/4103/tibia-10-76/
-
Sanieg's post in (Resolvido)[Ajuda] Teria como eu aumentar o limite de spr do meu OLD Client? was marked as the answer1°-Você tem que extender o dat/spr do seu client.
2°-Em seguida Coloca-los em data/things/854
3°-Abra o otclient e use-o.
Ele deu o erro de "não encontrar o dat/spr" pelo motivo de você não ter extendido.
lembrando que o otc tem que ser da versão 8.54
-
Sanieg's post in (Resolvido)[DUVIDA]Object Builder was marked as the answerolha ai:
http://www.tibiaking.com/forum/topic/49826-object-builder-adicionando-pokemons/
-
Sanieg's post in (Resolvido)[Ajuda] Script por teletransporte was marked as the answer
-
Sanieg's post in (Resolvido)Editando mapas 10.41+ was marked as the answerFonte do download
http://baixe.net/download/3650/tibia-10-41/
Tente esse client download direto:
http://www.otibia.com/downloads/clients/tibia1041.exe
AVISO: O site é confiável já baixei varias vezes clients nele
scan: https://www.virustotal.com/cs/url/1d95c63cda903e7431cfe5a47c8d7de930508a18eb4f53f64f7686a3d87d7509/analysis/1429675877/
-
Sanieg's post in (Resolvido)como fazer um Npc was marked as the answerVeja esse tutorial para aprender um pouco sobre lua:
CLIQUE AQUI
e depois procure as funções necessárias aqui no TK
-
Sanieg's post in (Resolvido)Tirar erro de script was marked as the answerMuito facil u.u essa eu tiro de letra....
Funfo com certeza testa ai -
Sanieg's post in (Resolvido)[ajuda] Mew de agressivo pra passivo was marked as the answerMuito facil data/lib abra configuration.lua
CTRL+F Procure por passivepokemons
la deve estar assim:
passivepokemons = {"Caterpie", "Metapod", "Butterfree", 'Pidgey', 'Pikachu', 'Clefairy', 'Jigglypuff', 'Oddish', 'Gloom', 'Vileplume', 'Paras', 'Psyduck', 'Bellsprout', 'Weepinbell', 'Slowpoke', 'Slowbro', "Farfetch'd", 'Doduo', 'Dodrio', 'Seel', 'Shellder', 'Exeggcute', 'Exeggutor', 'Lickitung', 'Chansey', 'Tangela', 'Mr. Mime', 'Tauros', 'Ditto', 'Lapras', 'Porygon', 'Omanyte'}
adicione o mew antes do caterpie assim:
passivepokemons = {"Mew", "Caterpie", "Metapod", "Butterfree", 'Pidgey', 'Pikachu', 'Clefairy', 'Jigglypuff', 'Oddish', 'Gloom', 'Vileplume', 'Paras', 'Psyduck', 'Bellsprout', 'Weepinbell', 'Slowpoke', 'Slowbro', "Farfetch'd", 'Doduo', 'Dodrio', 'Seel', 'Shellder', 'Exeggcute', 'Exeggutor', 'Lickitung', 'Chansey', 'Tangela', 'Mr. Mime', 'Tauros', 'Ditto', 'Lapras', 'Porygon', 'Omanyte'}