.jpg.a7babd2e790d7149e4703c379b2602bf.jpg)
Solutions
-
Caronte's post in (Resolvido)Aprendendo Script was marked as the answerO que você julga básico ?
e os links que eu te dei, fala de quase tudo...
-
Caronte's post in (Resolvido)[pedido] ao falar com NPC abrir janela de book was marked as the answerdoShowTextDialog(cid,itemid,text) Cid, é o player
Itemid, é o id do item que vai aparecer, no caso daí de cima é o book
Text, é o texto que você quer que apareça...
-
Caronte's post in (Resolvido)[Erro] Erro na distro - Script Movement was marked as the answerfunction onStepIn(cid, item, position, fromPosition) local mensagem = { action = item.actionid, [50001] = "Rota 1!", [50002] = "Rota 2!", [50003] = "Rota 3!", [50004] = "Rota 4!", [50005] = "Rota 5!", [50006] = "Rota 6!", [50007] = "Rota 7!", [50008] = "Rota 8!", [50009] = "Rota 9!", [50010] = "Rota 10!", [50011] = "Rota 11!", [50012] = "Rota 12!", [50013] = "Rota 13!", [50014] = "Rota 14!", [50015] = "Rota 15!", [50016] = "Rota 16!", [50017] = "Rota 17!", [50018] = "Rota 18!", [50019] = "Rota 19!", [50020] = "Rota 20!", [50021] = "Rota 21!", [50022] = "Rota 22!", [50023] = "Rota 23!", [50024] = "Cidade de Pallet!", [50025] = "Cidade de Viridian!", [50026] = "Cidade de Pewter!", [50027] = "Cidade de Cerulean!", [50028] = "Cidade de Saffron!", [50029] = "Cidade de Celadon!", [50030] = "Cidade de Lavender!", [50031] = "Cidade de Vermilion!", [50032] = "Cidade de Fuchsia!", [50033] = "Ilhas de Cinnabar!", } if(not isPlayer(cid)) then return true end if(item.actionid == mensagem.action) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, mensagem[item.actionid]) return true end end
-
Caronte's post in Como bloquear notificações de "x" tópicos? was marked as the answerTem o botão seguir esse tópico em cima do primeiro post, no canto > > >
Se você estiver seguindo , é só apertar que vai parar de seguir...
-
Caronte's post in (Resolvido)Change gold was marked as the answerTa diamante: local coins = { [ITEM_GOLD_COIN] = {to = ITEM_PLATINUM_COIN, effect = TEXTCOLOR_YELLOW}, [ITEM_PLATINUM_COIN] = {from = ITEM_GOLD_COIN, to = ITEM_CRYSTAL_COIN, effect = TEXTCOLOR_LIGHTBLUE}, [ITEM_CRYSTAL_COIN] = {from = ITEM_PLATINUM_COIN, to = 2145, effect = TEXTCOLOR_TEAL}, [2145] = {from = ITEM_CRYSTAL_COIN, effect = TEXTCOLOR_WHITE} } function onUse(cid, item, fromPosition, itemEx, toPosition) local coin = coins[item.itemid] if(not coin) then return FALSE end if(coin.to ~= nil and item.type == ITEMCOUNT_MAX) then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, coin.to, 1) doSendAnimatedText(fromPosition, "$$$", coins[coin.to].effect) elseif(coin.from ~= nil) then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, coin.from, ITEMCOUNT_MAX) doSendAnimatedText(fromPosition, "$$$", coins[coin.from].effect) end return TRUE end vou editando: local coins = { [ITEM_GOLD_COIN] = {to = ITEM_PLATINUM_COIN, effect = TEXTCOLOR_YELLOW}, [ITEM_PLATINUM_COIN] = {from = ITEM_GOLD_COIN, to = ITEM_CRYSTAL_COIN, effect = TEXTCOLOR_LIGHTBLUE}, [ITEM_CRYSTAL_COIN] = {from = ITEM_PLATINUM_COIN, to = 9971, effect = TEXTCOLOR_TEAL}, [9971] = {from = ITEM_CRYSTAL_COIN, effect = 205} } function onUse(cid, item, fromPosition, itemEx, toPosition) local coin = coins[item.itemid] if(not coin) then return FALSE end if(coin.to ~= nil and item.type == ITEMCOUNT_MAX) then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, coin.to, 1) doSendAnimatedText(fromPosition, "$$$", coins[coin.to].effect) elseif(coin.from ~= nil) then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, coin.from, ITEMCOUNT_MAX) doSendAnimatedText(fromPosition, "$$$", coins[coin.from].effect) end return TRUE end
Pronto, 205 é a cor, amarelozin...
Não se esqueça de por valor no gold ingot de 1kk ... no items.xml.
-
Caronte's post in (Resolvido)[Erro] Unexpected symbol near 'ï' was marked as the answerJá salvou em ANSI então ?
-
Caronte's post in (Resolvido)doPlayerRemoveItem no chão?! was marked as the answerdoRemoveItem(uid[, count]) http://www.tibiaking.com/forum/topic/17853-como-usar-a-funcao-doremoveitem/
-
Caronte's post in (Resolvido)Distance Effect apartir de uma Posição was marked as the answerdoSendDistanceShoot(frompos, topos, type[, player])
-
Caronte's post in (Resolvido)[Pedido] Se o player não comer um food a cada 20 minutos ele começa a perder vida! was marked as the answerhttp://www.tibiaking.com/forum/topic/49754-hunger-system-sistema-de-fome/
Créditos
-
Caronte's post in (Resolvido)Wand com damage de água AJUDA? was marked as the answerMude desse:
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PARAM_AGGRESSIVE) Para esse:
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DROWNDAMAGE) -
Caronte's post in (Resolvido)Como Corrigir esses Erros was marked as the answer[23/01/2015 14:01:21] [Warning - Spawns::loadFromXml] Training Monk ( 01056 / 01035 / 007 ) spawntime cannot be less than 1 seconds.
Inglês:
spawntime cannot be less than 1 seconds.
Português:
tempodespawn não pode ser menos que 1 segundo.
Vai nessa posição e muda o tempo de spawn para mais de 1 segundo...
[23/01/2015 14:01:28] Info: failed to load external entity "data/raids/raids.xml"
Copie um arquivo .xml , e delete tudo que há dentro...
nele coloque isso:
<?xml version="1.0" encoding="UTF-8"?> <raids> </raids> E deixe na pasta raids
[23/01/2015 14:01:21] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (409
Entre no remere's e vá em house palette
localize essa casa no house palette, selecione ela, e clique em select exit, depois disso, coloque a exit na frente da porta, de preferência.
[23/01/2015 14:01:20] [spawn::addMonster] Cannot find "Arkhothep"
[23/01/2015 14:01:21] [spawn::addMonster] Cannot find "Exp bug"
[23/01/2015 14:01:21] [spawn::addMonster] Cannot find "Exp bug"
[23/01/2015 14:01:21] [spawn::addMonster] Cannot find "Mr.Ever"
[23/01/2015 14:01:21] [spawn::addMonster] Cannot find "Mr.Ever
Se você não sabe onde esses spawns dos bichos estão, crie dois monstros com os nomes deles, e de /goto Exp bug , e depois /goto mr.ever , para localizar eles, e se quiser, tirar...
[23/01/2015 14:01:28] [Warning - Monster::Monster] Unknown event name - inquisitionPortals
Esse você tem que saber qual monstro é da quest inquisition que tem um script dentro dele, pois o script foi deletado e o <event>inquisitionPortals</event> ainda está dentro do monstro, ou seja, ele está dando reload no script que não existe, a partir do XML de algum monstro...
-
Caronte's post in (Resolvido)Error Spell was marked as the answerCreio que tem que usar o getCreatureLookDirection(cid) em algum lugar, pera aí...
-
Caronte's post in (Resolvido)[duvida]BordCast message com o nome do player was marked as the answerO
doBroadcastMessage("Parabéns") Não é o ideal para essa ocasião, e mesmo assim, não é assim que se usa.
é assim:
doBroadcastMessage(message, type) e no type, tem que colocar isso:
MESSAGE_FIRST = 18 MESSAGE_STATUS_CONSOLE_RED = MESSAGE_FIRST MESSAGE_EVENT_ORANGE = 19 MESSAGE_STATUS_CONSOLE_ORANGE = 20 MESSAGE_STATUS_WARNING = 21 MESSAGE_EVENT_ADVANCE = 22 MESSAGE_EVENT_DEFAULT = 23 MESSAGE_STATUS_DEFAULT = 24 MESSAGE_INFO_DESCR = 25 MESSAGE_STATUS_SMALL = 26 MESSAGE_STATUS_CONSOLE_BLUE = 27 MESSAGE_LAST = MESSAGE_STATUS_CONSOLE_BLUE E nesse caso, irá mandar para o servidor inteiro !
Mas se você quer fazer isso para o player...
se for para o player falar em laranja é assim:
doCreatureSay(cid,'Parabens '..getCreatureName(cid)..' voce ganhou a 'getPlayerVocationName(cid)' vocation', TALKTYPE_ORANGE_1) Prefere assim ?
ou uma mensagem pro servidor inteiro ?
ou quer uma que só o player veja no console ? (doPlayerSendTextMessage(cid, type,mensagem)
-
Caronte's post in (Resolvido)Como tirar o efeito quando eu uso alguma potion? was marked as the answerSó apagar a linha
as linhas que possuem DO, são para executar ações, ou seja, se você tirar elas, vai tirar as ações que elas executam.
EDIT:
Se você quiser colocar outro efeito, tem a lista aqui dos nomes e números de efeitos: http://www.tibiaking.com/forum/topic/49095-lib-000-const/
Em const_me tutorial.
-
Caronte's post in (Resolvido){PEDIDO} Tile Vip was marked as the answerProvavelmente a área onde ele irá colocar será pz...
-
Caronte's post in (Resolvido)Dúvida sobre esse script! was marked as the answerelseif(self.levels[self.item.level][2] == true and (self:chance().downgrade * 100) > math.random(1, 10000)) then tenta por 1, 1 , pra ser 100%
elseif(self.levels[self.item.level][2] == true and (self:chance().downgrade * 100) > math.random(1, 1)) then
É um palpite...
-
Caronte's post in (Resolvido)[AJUDAAA] REMERES E OTSERV was marked as the answerPegue o arquivo items.otb do seu ot, localizado na pasta items
E coloque na pasta 860 da pasta remeres>data
Obs: Tem que substituir.
-
Caronte's post in (Resolvido)[PEDIDO] Retirando os vial was marked as the answersobre a sua sociedade que você ta procurando, está bem na sua frente uma bem grande que não precisa de remuneração, só uma pitada de respeito e educação estaremos em prontidão, para tudo que você precisar , é o Tíbia King
Como eu disse , é só remover odoPlayerAddItem(cid, potion.empty, 1)
mas se não tem erro,significa que:
doPlayerAddItem(cid, no, 1)
não está dando problema na sua distro
-
Caronte's post in (Resolvido)[Pedido] Castle was marked as the answerProcure por castle of honor
-
Caronte's post in (Resolvido)Problema com corpos de monstros was marked as the answerVá na pasta items do seu otserver, no arquivo items.xml clique com o botão direito e clique em editar.
Lá você adiciona isso para cada item que quiser nomear:
Embaixo de um </item> cole isso. <item id="ID DO ITEM QUE APARECE ESSA MENSAGEM" article="a" name="NOME QUE VOCÊ QUER QUE APAREÇA> <attribute key="description" value="DESCRIÇAO DO ITEM" /> <attribute key="weight" value="700" /> <attribute key="decayTo" value="0" /> </item> Description é a descrição.
Weight é o peso do item, como é corpse não importa.
Decayto é se vai decompor , ponha o id que você quer para ele virar depois de um tempo.
-
Caronte's post in (Resolvido)Potions não fica infinita?! was marked as the answero Script que as potions executam pode não ser esse, para ver, pesquise um id de umas das potions no actions.xml,
as vezes os scripts das potions são aqueles espalhados e individuais...
Agora, se for esse mesmo, você pode resolver facilmente colocando os ids das empty potion como os ids das potion cheias, Assim :
local POTIONS = { [8704] = {empty = 8704, splash = 42, health = {50, 100}}, -- small health potion [7618] = {empty = 7618, splash = 42, health = {100, 200}}, -- health potion [7588] = {empty = 7588, splash = 42, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7591, splash = 42, health = {500, 700}, level = 80, vocations = {4, 8}, vocStr = "knights"}, -- great health potion [8473] = {empty = 8473, splash = 42, health = {800, 1000}, level = 130, vocations = {4, 8}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7620, splash = 47, mana = {70, 130}}, -- mana potion [7589] = {empty = 7589, splash = 47, mana = {110, 190}, level = 50, vocations = {1, 2, 3, 5, 6, 7}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7590, splash = 47, mana = {200, 300}, level = 80, vocations = {1, 2, 5, 6}, vocStr = "sorcerers and druids"}, -- great mana potion [8472] = {empty = 8472, splash = 43, health = {200, 400}, mana = {110, 190}, level = 80, vocations = {3, 7}, vocStr = "paladins"} -- great spirit potion } -
Caronte's post in Change gold was marked as the answerNesse ot o gold não dá pra puxar pro arrow manualmente nem assim...
valeu mesmo assim...
Opa, resolvi:
Se alguém está na mesma situação que a minha pode usar essa hotkey que eu criei:
auto 2000 counthigher 100 openitem 3031 2 'Blue Backpack' Onde o Blue backpack vai ser a janela em que o player ta colocando os golds
2 é o slot em que ele vai clicar, se tiver gold nele...
Detalhe: backpack aberta...
-
Caronte's post in (Resolvido)[PEDIDO] Download Client 9.60 ! was marked as the answerhttp://remeresmapeditor.com/rmedl.php?file=tibia960.exe
-
Caronte's post in (Resolvido)(PEDIDO) Client 10.55 Não Acho Para Download was marked as the answerhttp://www.tibiaclient.com.br/2014/09/tibiaclient-para-tibia-1055.html
-
Caronte's post in (Resolvido)Set Bugado no meu Ot was marked as the answerO item.otb do seu remere's tá diferente do seu do tibia.
antes de pegar os ids no remere's pegue o items.otb do seu ot, que fica na pasta items
e coloque na pasta da versão correspondente no remere's, vê se resolve...