
Tudo que Wakon postou
- (Resolvido)talkaction ganhar item em certo lvl
-
Cassino system
Como o Caronte disse, não tem como amigo, tem como colocar no Server Log em branco, no default tem laranja/vermelho/azul.
-
Cassino system
Não consegui achar algum TYPE para default em branco, fiz assim: local config = { items = {9777, 7383, 9776, 7457}, -- Itens que ele pode ganhar vp = 2160 -- ID do Vip Coin } function onUse(cid, item, frompos, item2, topos) local rand = math.random(1, #config.items) if (item.actionid == 1140) and item.itemid == 1945 then if getPlayerItemCount(cid, config.vp) >= 6 then doPlayerRemoveItem(cid, config.vp, 6) doPlayerAddItem(cid, config.items[rand], 1) doPlayerSendTextMessage(cid, 22, "Você ganhou um "..getItemNameById(config.items[rand])..".") doBroadcastMessage("O Player ["..getCreatureName(cid).."] fez uma aposta e ganhou "..getItemNameById(config.items[rand])..".", MESSAGE_STATUS_CONSOLE_BLUE) else doCreatureSay(cid, "Você precisa de 6 vip coins.", TALKTYPE_ORANGE_1) doSendMagicEffect(getPlayerPosition(cid), 2) end elseif item.itemid == 1946 then doTransformItem(item.uid,item.itemid-1) end return TRUE end Caso alguém saiba, diga para o amigo .
-
(Resolvido)[PEDIDO] Action teleport com Storage..
Pronto. local t = { storage = 34555, -- Storage do baú. gopos = {x = 160, y = 54, z = 7} -- Posição caso não tenha feito a quest. } function onUse(cid, item, fromPos, itemEx, toPos) if getPlayerStorageValue(cid, t.storage) <= 0 then doTeleportThing(cid, t.gopos) doPlayerSendTextMessage(cid, 25, "Boa sorte.") else doPlayerSendTextMessage(cid, 25, "Você já fez essa quest.") end return true end
-
Status nicaw acc não esta funcionando
Não tenho conhecimento nessa área, desculpe.
-
(Resolvido)Mensagem de dominio
Teste:
-
[AJUDA] Servidor travando após 100 players online com VPS
Amigo, use nomes adequados em seus tópicos: Seu titulo será alterado dessa vez, mas que não ocorra novamente. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Infraestrutura"
-
Erro Transparência OtClient (Dcx9 e OpenGL)
Drigobo, você deve dar UP após 24 horas do primeiro UP, se voltar a acontecer irei lhe negativar, leia as regras: http://www.tibiaking.com/forum/topic/1281-regras-gerais/?p=7680
-
Proteção Do Client
O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Programação"
-
(Resolvido)PEDIDO Descopilar Client
O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Programação"
-
(Resolvido)Aviso de Blessings
function onThink(cid, lastExecution, thinkInterval) if(getTilePzInfo(getCreaturePosition(cid))) == false and getPlayerStorageValue(cid, 23333) <= 0 then for b = 1,5 do if getPlayerBlessing(cid, b) == false then setPlayerStorageValue(cid, 23333, 1) return doPlayerSendTextMessage(cid, 25, "Você não tem todas as bênçãos, tome cuidado.") end end elseif (getTilePzInfo(getCreaturePosition(cid))) == true and getPlayerStorageValue(cid, 23333) == 1 then setPlayerStorageValue(cid, 23333, -1) end return true end
-
(Resolvido)Aviso de Blessings
Script em "Data/creaturescripts/scripts", bless.lua function onThink(cid, lastExecution, thinkInterval) if(getTilePzInfo(getCreaturePosition(cid))) == false and getPlayerStorageValue(cid, 23333) <= 0 then for b = 1,5 do if getPlayerBlessing(cid, b) == false then setPlayerStorageValue(cid, 23333, 1) return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não tem todas as bênçãos, tome cuidado.") end end elseif (getTilePzInfo(getCreaturePosition(cid))) == true and getPlayerStorageValue(cid, 23333) == 1 then setPlayerStorageValue(cid, 23333, -1) end return true end Tag em "Data/creaturescripts", creaturescripts.xml: <event type="think" name="BlessCheck" event="script" value="bless.lua"/> Registre no login.lua: registerCreatureEvent(cid, "BlessCheck")
-
(Resolvido)Aviso de Blessings
Caso não funcione o do amigo acima: function onLogin(cid) if getTilePzInfo(getPlayerPosition(cid)) == FALSE then for b = 1,5 do if getPlayerBlessing(cid, b) then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE," Você está protegido!") else return doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Você não tem todas as bênçãos, tome cuidado!") end end end return TRUE end
-
Nao quer funfar as creaturescripts
Tente registrar os eventos no login.lua: registerCreatureEvent(cid, "NomeExatoDoEvento")
-
[TFS 1.0] Alterar storage por comando: /storage, key, value
Sim, você pode usar qual quer valor: /storage Wakon, 25005, 0 /storage Wakon, 25005, -1 /storage Wakon, 25005, 50
-
[TFS 1.0] Alterar storage por comando: /storage, key, value
[Testado em TFS 1.0] -- Caso funcione em outras versões, comente que eu atualizo. Olá galera, estou trazendo a vocês um comando para alterar a storage do player sem precisar acessar a database, facilitando o teste de alguns sistemas. Esse comando já vem na base porém desativado, para ativar siga os passos: Vá em "Data/talkactions" abra o arquivo talkactions.xml e adicione a TAG: <talkaction words="/storage" separator=" " script="setstorage.lua" /> Caso sua base não tenha esse script, você deve colocá-lo em "Data/talkactions/scripts", com o nome setstorage.lua: function onSay(cid, words, param) local player = Player(cid) if not player:getGroup():getAccess() then return true end if player:getAccountType() < ACCOUNT_TYPE_GOD then return false end local split = param:split(",") if split[2] == nil then player:sendCancelMessage("Insufficient parameters.") return false end local target = Player(split[1]) if target == nil then player:sendCancelMessage("A player with that name is not online.") return false end split[2] = split[2]:gsub("^%s*(.-)$", "%1") split[3] = split[3]:gsub("^%s*(.-)$", "%1") local ch = split[2] local ch2 = split[3] setPlayerStorageValue(getPlayerByName(split[1]), tonumber(ch), tonumber(ch2)) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "The storage with id: "..tonumber(ch).." from player "..split[1].." is now: "..ch2..".") return false end Para usar o comando é bem simples: /storage Wakon, 25005, 1 Em vermelho é o nome do personagem. Em verde é a storage que será alterada. Em azul é o valor que a storage terá.
-
(Resolvido)[PEDIDO] Action teleport com Storage..
Não entendi seu pedido da action, fiz esse aqui, veja se é o que você quer. local t = { storage = 34555, -- Storage do baú. gopos = {x = 160, y = 54, z = 7}, -- Posição caso não tenha feito a quest. nopos = {x = 161, y = 55, z = 7} -- Posição caso já tenha feito a quest. } function onUse(cid, item, fromPos, itemEx, toPos) if getPlayerStorageValue(cid, t.storage) <= 0 then doTeleportThing(cid, t.gopos) doPlayerSendTextMessage(cid, 25, "Boa sorte.") else doTeleportThing(cid, t.nopos) doPlayerSendTextMessage(cid, 25, "Você já fez essa quest.") end return true end Se não for, especifique melhor seu pedido.
-
Status nicaw acc não esta funcionando
O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Aprovação de Tópicos de Conteúdos" Para: "OTServ → Suporte OTServ → Suporte de WebSites"
-
[PEDIDO]Remover vials ao usar potions
Amigo, use nomes adequados em seus tópicos para facilitar o suporte de outros membros. Leia as regras: http://www.tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Editei o seu para facilitar, mas preste mais atenção da próxima vez.
-
[PEDIDO]Action/hotkey para seguir o NPC a dois SQM's
Amigo, use nomes adequados em seus tópicos para facilitar o suporte de outros membros. Leia as regras: http://www.tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Editei o seu para facilitar, mas preste mais atenção da próxima vez.
-
(Resolvido)Hamachi & IP Changer! Como Tirar ?
Veja esses tutoriais: http://www.tibiaking.com/forum/topic/1930-criando-otserv-ip-fixo-sqlitestudio-e-colocando-otserv-online/ Cliente próprio tem duas maneiras: http://www.tibiaking.com/forum/topic/28214-tutorial-criando-client-proprio-sem-vapus-completo/ http://www.tibiaking.com/forum/topic/11099-aprenda-a-fazer-seu-proprio-client/
-
[Problema] Meu elfbot não ta salvando as conf.
Se não funcionar o que o amigo acima citou, tente executar o Tibia e o ElfBot como administrador. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "Bots para Tibia → Suporte Bots"
-
(Resolvido)[AJUDA]Como adicionar função doCreatureAddHealth no script
local temp = 1 -- Cooldown em minutos. function onPrepareDeath(cid, deathList) if not isPlayer(cid) then return true end if getPlayerStorageValue(cid, 34820) <= os.time() then doCreatureAddHealth(cid, 20000, 65535, 256, true) doCreatureSay(cid,"SetStorage!", 19) setPlayerStorageValue(cid, 34820, os.time() + temp * 60) setPlayerStorageValue(cid, 19332, 1) return FALSE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua skill já esta carregada o carregamento automatico nao foi executado.") end return TRUE end
-
(Resolvido)[AJUDA]Como adicionar função doCreatureAddHealth no script
Testa ai: function onPrepareDeath(cid, deathList) if not isPlayer(cid) then return true end if getPlayerStorageValue(cid, 34820) <= 0 then doCreatureAddHealth(cid, 20000, 65535, 256, true) doCreatureSay(cid,"SetStorage!", 19) setPlayerStorageValue(cid, 34820, 1) setPlayerStorageValue(cid, 19332, 1) return FALSE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua skill já esta carregada o carregamento automatico nao foi executado.") end return TRUE end
-
(Resolvido)[AJUDA]Como adicionar função doCreatureAddHealth no script
Amigo, use nomes adequados em seus tópicos, leia as regras: http://www.tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Como membros não tem permissão de alterar o titulo, alterei esse pra você, preste mais atenção da próxima vez.