
Tudo que Wakon postou
- pokemons sem lvl
-
Recrutamento
Esta é uma mensagem automática! Este tópico foi movido para a área correta. Pedimos que você leia as regras do fórum.
-
(Resolvido)[ACTION] Item add description
Tente assim: function onUse(cid, item, position) if item.itemid == 1945 then doTransformItem(item.uid, 1946) else doTransformItem(item.uid, 1945) end local removeItem1 = 11192 local removeItem2 = 7772 local AddItem = 7753 -- o item que o player vai ganhar if getPlayerItemCount(cid, removeItem1) >= 10 and getPlayerItemCount(cid, removeItem2) >= 1 then doPlayerRemoveItem(cid, removeItem1, 10) doPlayerRemoveItem(cid, removeItem2, 1) local add = doPlayerAddItem(cid, AddItem, 1) doItemSetAttribute(add, "description", "Este item foi comprado por " .. getPlayerName(cid) .. ".") doPlayerPopupFYI(cid, "Voce realizou seu upgrade com sucesso!") else doPlayerPopupFYI(cid, "voce precisa de: \n *10 pontos \n *arma +7 \n \n para relizar o upgrade.") return false end end
- Teleport Falante
-
(Resolvido)[ACTION] Item add description
Tente assim: local coin = 11192 -- sua moeda vip local lever = { [50000] = {1,8982}, [50001] = {7,10132}, [50002] = {12,10131}, [50003] = {20,10130}, [50004] = {10,7773}, [50005] = {10,7772}, [50006] = {10,7766}, [50007] = {10,7775}, [50008] = {10,8849}, [50009] = {1,12289}, [50010] = {10,2157,100}, [50011] = {4,7902}, [50012] = {4,8866}, [50013] = {4,7896}, [50014] = {4,7892}, [50015] = {4,12608}, [50016] = {4,2501}, [50017] = {4,2503}, [50018] = {4,2504}, [50019] = {4,7891}, [50020] = {4,6391}, [50021] = {4,2343}, [50022] = {4,8880}, [50023] = {4,2507}, [50024] = {4,7886}, [50025] = {4,7460}, [50026] = {1,2198}, [50028] = {3,5884}, [50029] = {3,2361}, [50030] = {1,2197,100}, [50031] = {10,2198,100}, [50032] = {1,7443}, [50034] = {2,6387}, [50037] = {2,5801}, [50038] = {8,2121}, [50039] = {10,2138}, [50040] = {2,7439}, [50041] = {2,9693}, [50042] = {10,5785}, [50043] = {10,8977}, [50044] = {30,8981}, } function onUse(cid,item,fromPosition,itemEx,toPosition) if doPlayerRemoveItem(cid,coin,lever[item.actionid][1]) == FALSE then return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você precisa de "..lever[item.actionid][1].." " ..getItemNameById(coin)) end local add = doPlayerAddItem(cid,lever[item.actionid][2], isItemStackable(lever[item.actionid][2]) and 100 or 1 ) doItemSetAttribute(add, "description", "Este item foi comprado por " .. getPlayerName(cid) .. ".") doPlayerSendTextMessage(cid,22,"Você comprou um " .. getItemNameById(lever[item.actionid][2])) doSendMagicEffect(getCreaturePosition(cid), math.random(28,30)) return true end
- [TALKACTION] Caixa Postal
- SharpMapTracker v0.8.25 tibia 10.95
-
Novos comandos para Guild: war, invite, broadcast
Testado no: TFS 0.4 Bom, esse script adiciona alguns comandos para auxiliar principalmente lideres de guildas, eu coloquei dois comandos padrões, porém se você tiver alguma ideia de comando, você pode adicionar na tabela. /guild - Mostra a lista de comandos. A lista de comandos aparece em um popup: O comando /guild mensagem é o broadcast, caso você desative-o nas configurações, ele irá sumir da lista de comandos. O preço também é configurável e caso você desative-o nas configurações, ele irá sumir da lista de comandos. - Instalação - Na pasta "OT/Data/Talkactions/Scripts", copie e cole um arquivo.LUA, renomeie para guildHelp.lua, apague tudo e cole: local config = { keys = { ["war"] = {msg = " está procurando por uma guerra", info = "Procurar por uma guerra."}, ["invite"] = {msg = " está procurando por membros", info = "Procurar por membros para sua guilda."}, }, needMoney = {on = true, price = 15000}, -- Ativar custo para usar comando. broadcast = true, -- Ativar mensagem livre, exemplo: /guild mensagem livre storage = 43095, -- Só altere caso seja necessário permission = {3, 2}, -- Permissões: 3 = Leader, 2 = Vice-Leader, 1 = Member cooldown = 5 -- Em minutos. } function onSay(cid, words, param) local key, inf = config.keys[param], '' for wa, kon in pairs(config.keys) do inf = inf ..words.. " " ..wa.. " - " .. kon.info .."\n" end if config.broadcast then inf = inf .. words .. " mensagem - Mensagem livre." end if config.needMoney.on == true then inf = inf .. "\n\nPreço: " .. config.needMoney.price end if not isInArray(config.permission, getPlayerGuildLevel(cid)) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você não tem permissão para usar esse comando.") and true elseif (param == "") then return doPlayerPopupFYI(cid, "Comandos:\n" ..inf) and true elseif getPlayerStorageValue(cid, config.storage) > os.time() then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde ".. math.ceil(getPlayerStorageValue(cid, config.storage) - os.time()) .." segundos para usar novamente.") and true elseif config.needMoney.on == true then if doPlayerRemoveMoney(cid, config.needMoney.price) == false then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você não tem ".. config.needMoney.price .." gold coins.") end end if key then doBroadcastMessage("O jogador [".. getCreatureName(cid) .."] da guild [".. getPlayerGuildName(cid) .."]".. key.msg ..".") setPlayerStorageValue(cid, config.storage, os.time() + config.cooldown * 60) elseif not key and config.broadcast == true then doBroadcastMessage("Player[".. getCreatureName(cid) .."] Guild(".. getPlayerGuildName(cid) .."): ".. param) setPlayerStorageValue(cid, config.storage, os.time() + config.cooldown * 60) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Comando inválido, digite apenas '.. words ..' para ver a lista de comandos.') end return true end Agora em "OT/Data/Talkactions", abra o arquivo talkaction.xml e adicione: <talkaction words="!guild;/guild" script="guildHelp.lua"/> É isso, caso tenha alguma sugestão ou encontre algum erro, me avise. Créditos: @Wakon
-
Criação de OT, poderia me ajudar?
Esta é uma mensagem automática! Este tópico foi movido para a área correta. Pedimos que você leia as regras do fórum.
- [TalkActions] Sistema de Loja
-
(Resolvido)Npc Não carrega!
@Kemmlly, oferecer suporte fora do fórum é proibido! Leia as regras: http://www.tibiaking.com/forum/forums/topic/1281-regras-gerais/
-
alguém ajuda a ajeitar isso aqui bro :(
Pronto: local config = { exhausttime = 7200, -- time in seconds exhauststorage = 2302, level = 50 -- level minimo para usar o book } local rewarditems = { {id = 2492, chance = 10, count = 1}, -- id da demon legs {id = 2498, chance = 10, count = 1}, -- id da demon armor {id = 2488, chance = 10, count = 1}, -- id do demon shield {id = 2488, chance = 20, count = 1}, -- id do demon helmet {id = 2488, chance = 50, count = 1} -- id stell boots } function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerLevel(cid) < config.level then doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) return doPlayerSendCancel(cid, "Você precisa ser level "..config.level.." para usar o livro.") and true end if exhaustion.check(cid, config.exhauststorage) then local time = exhaustion.get(cid, config.exhauststorage) local hours, minutes, seconds = math.floor (time / 3600), math.floor ((time - ((math.floor (time / 3600)) * 3600))/ 60), time - ((math.floor (time/60)) * 60) if time >= 3600 then text = hours.." "..(hours > 1 and "horas" or "hora")..", "..minutes.." "..(minutes > 1 and "minutos" or "minuto").." e "..seconds.." "..(seconds > 1 and "segundos" or "segundo") elseif time >= 120 then text = minutes.." "..(minutes > 1 and "minutos" or "minuto").." and "..seconds.." "..(seconds > 1 and "segundos" or "segundo") else text = seconds.." "..(seconds > 1 and "segundos" or "segundo") end doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Você precisa esperar "..text.." antes de usar o livro novamente.") return true end local chance = math.random(1,100) for i = 1, #rewarditems, 1 do if chance < rewarditems[i].chance then local info = getItemInfo(rewarditems[i].id) if rewarditems[i].count > 1 then text = rewarditems[i].count .. " " .. info.plural else text = info.article .. " " .. info.name end local reward = doCreateItemEx(rewarditems[i].id, rewarditems[i].count) if(doPlayerAddItemEx(cid, reward, false) ~= RETURNVALUE_NOERROR) then doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) text = "Você não tem cap ou espaço em sua backpack para receber o item." else doRemoveItem(item.uid, 1) text = "Você encontrou 1 ".. text .."." exhaustion.set(cid, config.exhauststorage, config.exhausttime) end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, text) return true else chance = chance - rewarditems[i].chance end end return true end E @helix758, evite de criar tópicos com títulos inadequados, leia as regras:
-
alguém ajuda a ajeitar isso aqui bro :(
Tente assim: local config = { exhausttime = 7200, -- time in seconds exhauststorage = 2301, level = 50 -- level minimo para usar o book } function onUse(cid, item, fromPosition, itemEx, toPosition) local rewarditems = { {id = 2492, chance = 10, count = 1}, -- id da demon legs {id = 2498, chance = 10, count = 1}, -- id da demon armor {id = 2488, chance = 10, count = 1}, -- id do demon shield {id = 2488, chance = 20, count = 1}, -- id do demon helmet {id = 2488, chance = 50, count = 1} -- id stell boots } if getPlayerLevel(cid) < config.level then doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) doPlayerSendCancel(cid, "Voce precisa estar ser level "..config.level.." para usar o livro.") return true end if exhaustion.check(cid, config.exhauststorage) then local time = exhaustion.get(cid, config.exhauststorage) local hours, minutes, seconds = math.floor (time / 3600), math.floor ((time - ((math.floor (time / 3600)) * 3600))/ 60), time - ((math.floor (time/60)) * 60) if time >= 3600 then text = hours.." "..(hours > 1 and "hours" or "hour")..", "..minutes.." "..(minutes > 1 and "minutes" or "minute").." and "..seconds.." "..(seconds > 1 and "seconds" or "second") elseif time >= 120 then text = minutes.." "..(minutes > 1 and "minutes" or "minute").." and "..seconds.." "..(seconds > 1 and "seconds" or "second") else text = seconds.." "..(seconds > 1 and "seconds" or "second") end doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Esta vazio, voce precisa esperar "..text.." antes de usar o livro novamente.") return true end local chance = math.random(1,100) for i = 1, #rewarditems, 1 do if chance < rewarditems[i].chance then local info = getItemInfo(rewarditems[i].id) if rewarditems[i].count > 1 then text = rewarditems[i].count .. " " .. info.plural else text = info.article .. " " .. info.name end local item = doCreateItemEx(rewarditems[i].id, rewarditems[i].count) if(doPlayerAddItemEx(cid, item, false) ~= RETURNVALUE_NOERROR) then doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) text = "Voce encontrou uma recompensa, mas voce nao tem cap ou espaco na bp para ganha-la." else doRemoveItem(item.uid, 1) text = "Voce encontrou " .. text .. "." exhaustion.set(cid, config.exhauststorage, config.exhausttime) end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, text) return true else chance = chance - rewarditems[i].chance end end end
- Baiak Zik Do Deathrook Editado por mim
-
Script com erro na Distro
Tente limpar o script como o amigo disse acima, dê um CTRL A + DEL e cole o script novamente. Caso não funcione, tente salvar o script com outro editor de texto, como o notepad por exemplo.
-
alguem sabe qual a base do pokedash?
Esta é uma mensagem automática! Este tópico foi movido para a área correta. Pedimos que você leia as regras do fórum.
-
Group Quest/ Tp em grupo
Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP.
-
[AJUDA] Oque seria uma source ?
Esta é uma mensagem automática! Este tópico foi movido para a área correta. Pedimos que você leia as regras do fórum.
- Script
- Galera Alguem Pode Ajudar Antes Meu Server Pegava Agora Msm Dizendo Que Esta Online Nem Aparece Meu ip Antes Do Nome Server Online Notem Aii E Me Ajuden Vlw
- Colocar site onlinee
-
algum adm deleta esse topico pls, não achei opção. vlw
Esta é uma mensagem automática! Este tópico foi movido para a área correta. Pedimos que você leia as regras do fórum.
- Erro Ao Criar Conta No Site
- Passando server de 8.54 para 8.60 (NTO)
- Fazendo que o servidor aceite qualquer items.otb!