Jump to content

Search the Community

Showing results for tags 'talkaction'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Sou

  1. EU TENHO A CLASS NO MEU WODBO MAIS EU NAO SIGO FAZER ELA TRANSFORMAR TIPO O TAPION NAO CONSIGO FAZER ELE VIRA TAPION2.!ME AJUDA MAIS FAST POSSÍVEL EU DO REP+
  2. Olá galera fiquei um tempo fora mais voltei então let's go O que o script ira fazer ? Simplesmente o comando ira comprar outift com talkaction ! Então vamos lá Vá em data / scripts / talkactions / renomeie alguem arquivo para outiftbuy.lua é adicione function onSay(cid, words, param) local storage = 30193 -- mão mexa local itemid = 2160 -- id do item que vai remover local count = 5 -- quantidade do item que vai remover local looktype = 75 -- O Looktype da outift que vai ser vendida if getPlayerStorageValue(cid, storage) >= 1 then doPlayerSendTextMessage(cid, 22, "Desculpe voce ja comprou essa outift") return true end if doPlayerRemoveItem(cid,itemid,count) then doPlayerSendTextMessage(cid, 22, "Você não tem dinheiro suficiente") return true end doPlayerAddOutfit(cid,looktype,3) setPlayerStorageValue(cid, storage, 1) doPlayerSendTextMessage(cid, 22, "Você comprou a outift") return true end Em talkactions.xml <talkaction words="!outift" event="script" value="outiftbuy.lua"/> Espero que gostem !
  3. algumas imagens = ] Bom..essa é a versão 1.1 do meu script a versão anterior voce pode acha-la aqui.. http://www.xtibia.com/forum/topic/217778-v10-summon-monster/ Mais iai, oque mudou na versão 1.1? Agora modifiquei um pouco o SCRIPT, exemplo.. agora voce pode colokar 10-20 bixos em cada pos, ai o script começa rodar ele escolhe 1 bixo "monstro" que voce colokou na tabela.. Agora não é mais 1 bixo exato que nasce e sim é variavel e configuravel. Agora fico facil e rapido para voce mesmo editar as msg de quando o evento irá iniciar,e iniciou.. Também colokei para manda MSG pro servidor todo quais bixos forão "sumonado" nesse evento. (creditos = > slicer). Vamos ao script.. talkactions/script/ copie qualquer arquivo e renomei para v1.1 start event.lua e coloka isso lá.. Agora a TAG. <talkaction words="!start;/start" script="v1.1 start event.lua"/>
  4. queria instalar em meu serv um sistema de qgs entao e o seguinte nele contem actions e talkactions axo.. e asim 1 casa com respaw q so o dono q compro-a podera upar.. entao vou explicar como tem que ser... primeira coisa o player tem q falar !qg e abrirá uma tabela q nem do spell book q lah contem os respaw possiveis para colocar no qg com isso o player solta ex (!qg Gorila ) e 1 mensagem ira aparecer ao player ("respaw mudado do qg para Gorila") depois o player tem q utilizar uma alavanca para ativar o respaw q qando utilizada aparece 1 mensagem ("respaw Ativado ) e asim tera lah dentro do qg umas areas q nasce o bicho q voce ativou... com isso o respaw e infinito e so podera ser mudado se o player usa a alavanca novamente... alguem ae pode me ajudar? pfv do mtos reps...+++
  5. Olá galerinha, eu tava sem fazer nada, e resolvi trazer um sistema de duelo, que conta vitorias e derrotas. Eu achei que seria bem legal, os jogadores chamando os outros para um duelo limpo e talz. , SISTEMA 100% Meu. Testado no TFS By OrochiElf v1.0 Bom, no sistema tem as seguintes funçoes : Invite, -- Convida para o duelo Accept, -- Aceita o convite Recuse, -- Recusa o Convite Cancel, -- Cancela o convite Check, -- Verifica quem voce convidou ou quem te convidou Status -- Checa a vitoria e a derrota Como usar : /duel comado, player Exemplo : /duel invite, Tony /duel accept, Tony /duel recuse, Tony /duel cancel, Tony /duel check /duel status, Tony Bom, vamos a instalaçao. primeiro, vá em data/talkaction/script, crie um arquivo chamado : duel.lua e adicione dentro http://pastebin.com/3HUMPCYs TAG <talkaction words="/duel" hide="yes" event="script" value="duel.lua"/> Agora vamos em creaturescript/scripts e dentro crie um arquivo chamado dueldie.lua e dentro adicione http://pastebin.com/QH2UeQTR Em login.lua, antes do ultimo return true, adicione registerCreatureEvent(cid, "DuelDie") TAG <event type="death" name="DuelDie" event="script" value="dueldie.lua"/> Qualquer bug, avise.
  6. Ola Galera venho aqui posta um system de vip criador por EddyHavoc (TibiaKing) então decidir reviver o tropico com a autorização do EddyHavoc Versão Testada:TFS 0.3.6 - 8.54 - 8.60 Creditos pelas modificações: Kydrai,Nicekid e Marcryzius e EddyHavoc Creditos pelas publicações: EddyHavoc e Vodkart Contem - Compra Vip pela talkaction ( Comando !buyvip ) -- ou sem o comando. - Tile para somente Players Vip passarem ( conta também com função os.time ) - verifica quantos dias de Vip o character ainda possui. - Administradores (GOD) podem adicionar e remover dias de Vip para characters. -- Administradores (GOD) podem checar dias de Vip dos Players. -- É adicionado [VIP] ao nome e retirado quando a vip Acabar. GOD Adicionando e Removendo dias de Vip Comprando VIP e Checando dia da sua VIP Quote Comando: comprar vip: !buyvip checkar dias de vip: !vipdays God checkar dias de vip do character: /checkvip Nick exemplo: /checkvip Nicekid God adionar dias ao character: /addvip Nick,dias exemplo: /addvip Nicekid,5 aqui adicionei 5 dias de vip. God Retirar dias de Vip do character: /delvip Nick,dias exemplo: /delvip Nicekid,5 aqui retirei 5 dias de vip. Primeiro passo vá até talkactions/scripts Crie um arquivo.lua e renomeie para systemvip.lua dentro coloque: Price : Custo em gp da vip days : quantos dias sera adicionado apos o player fala !buyvip Vá em talkactions.xml e adicione esta tag. <talkaction words="!vipdays;!buyvip;/checkvip;/addvip;/delvip" script="systemvip.lua"/> Tile "PISO" VIP Vá em movements/scripts crie um arquivo e coloque isto dentro Agora vá em movements.xml e adicione esta tag. <movevent type="StepIn" uniqueid="13700" event="script" value="vipe.lua"/> FIM DA VIP creaturescript/script crie um arquivo.lua e renomeie para endvip.lua e cole isso dentro dele: Vá em creaturescript.xml e adicione esta tag. <event type="login" name="CheckVip" script="endvip.lua"/> Pronto seu vip foi feito com sucesso !
  7. Galera eu estou criando um servidor totalmente RPG e preciso da ajuda de vocês, gostaria de saber se tem como criar um script que não divide a experiencia do monstro quando os players o matam. Exemplo: criei um bicho que chama blackion, ele da 20 de xp, ao inves da experiencia ser dividia 10 para cada player gostaria que perma nesses "20" incentivando a caça em grupo... esse é o primeiro topico não sei se esta na area certa, caso esteja erado por favor ajudem Shadow's Revenger: ServRPG
  8. Eu pressizo de un script quando vc fala tipo !evento iria aparecer as seguintes menssagens o chão esta tremendo.. a terra esta se abrindo.. um boss esta surgindo.. o boss morgaroth ira fica na cidade tal por 2 horas e depois iria aparecer os boos numa posição que eu colocasse auguem pode me ajudar ?
  9. Iae galera blz? nao vou enrolar vou logo começando.
  10. Versão: 1.1 Versão testada: 8.60 (acho que funciona em versões acima). Descrição: O script foi criado para caso os membros da staff (CM+) do servidor quiser dar um bônus a todos os players online ele pode digitar o comando e dar o premio a todos. Tag: Code: data/talkactions/createitemall.lua Creditos: JackXan Bruno Carvalho
  11. Não Sei se é a Area Certa Mais Vamos Lá Por Favor Se Não For Area Certa não Reporte Apenas Contate 1 Membro Da Equipe e Mande ele Por No Lugar Certo Por Favor Preciso de 1 Talkaction Tipo !addpromotion Fulano, 30 OU /addpromotion Fulano, 30 Que Adicione Promotion ao Player Sem Ser Por Npc Legenda Verde = Nome Do Player Legenda Azul = Dias Att: JackXan
  12. Ola! estou precisando muito de uma coisa, mas nao sei ao certo como fazer isso, eu jogava um ot, que tinha uma magia chamada uber exori, magia normal, mas, voce podia comprar essa magia "VIP", voce comprava pelo site, e ja ia altomaticamente, mudava a aparencia da magia a força e o tamanho, só que o nome continuava o mesmo, o mesmo uber exori de antes, queria saber como se fas isso, pois estou querendo colocar no meu ot, por exemplo, eu tenho uma magia chamada Under Exori, e queria fazer o mesmo sistema da quele ot, quando um certo player comprace a magia (Com R$) eu daria a "permissao" para ele usar a "magia nova", que tem o mesmo nome, só nao sei como farei isso rrs, queria que voces me ajudacem, nao precisa nen ser na mesma magia, só preciso de uma talkaction seila, que de, de eu dar permissao para tal player usar tal magia, intenderam? por exemplo o player "X" nao é vip e usa a magia Under Exori normalmente, e um certo dia ele resolve comprar a magia Under Exori (Vip), entao eu poderia falar /underexorivip "PLAYER" e entao ele começaria a soltar o Under Exori só que vip, poderia ser ate outra magia se a mesma magia for complicado de mais, eu inventaria uma magia, e ao player tentar soltar ela, falaria que ele nao teria permissao, entao eu usava esse comando, e ele ganharia a permissao de soltar aquela magia (a permissao é permanente). Aguardo respostas, muito obrigado.
  13. Olá galerinha, vim trazer um reset system com stages/ou sem, você escolhe, é fácil configurar ele. /data/talkactions/scripts/resetSystem.lua adicione o seguinte conteúdo dentro: TAG: <talkaction words="!reset" event="script" value="resetSystem.lua"/> /data/creaturescripts/scripts/resetRank.lua: TAG: <talkaction words="!resets" event="script" value="resetRank.lua"/> /data/creaturescripts/scripts/resetLook.lua: TAG: <event type="look" name="showResets" event="script" value="resetLook.lua"/> login.lua: registerCreatureEvent(cid, "showResets") Qualquer erro postei ai galerinha galerosa. O rank é um script antigo do Jhon922 para o Simple Reputation System dele, eu só peguei e modifiquei as mensagens e storages.
  14. Se estiver em área errada, Favor Mover! Galera, no meu otserv tem o Taunt System, em todas as outfits, mais quando eu digito !taunt aparece uma msg, Desculpe isso não é possivel, só que ingles Alguem sabe porque aparece isso? testei com todas as outfits RANK5 dos clan, testei ALL CLANS! Meu Script, OBS: Não sei por em Spoiler: local outfits = { [1413] = {1510, 1511, 1512},--volcanic male [1160] = {1689, 1690, 1691, 1692, 1693, 1694, 1695,1694, 1693, 1692, 1691, 1690},--raibolt male [1162] = {1696, 1697, 1698, 1699, 1700, 1699, 1698, 1697, 1696},--seavel male [1159] = {1701, 1702, 1703, 1704, 1705, 1704, 1703, 1702, 1701},--naturia male [1158] = {1710, 1711, 1709, 1708, 1707, 1706, 1707, 1708, 1709, 1709, 1711, 1710},--wingeon male [1751] = {1713, 1714, 1715, 1712, 1715, 1716, 1715, 1714, 1713},--malefic male [1155] = {1717, 1718, 1719, 1720, 1721, 1722, 1723, 1724, 1725},--Gardestrike male [1161] = {1727, 1728, 1729, 1730, 1731, 1732, 1733},--Psycraft male [1156] = {1735, 1736, 1737, 1738, 1739, 1734, 1738, 1737, 1736, 1735},--Orebound male [1153] = {1751, 1752, 1753, 1754, 1755, 1756, 1757, 1758, 1759, 1750},--malefic female [1146] = {1760, 1761, 1762, 1763, 1764, 1763, 1762, 1761, 1760},--Gardestrike female [1152] = {1765, 1766, 1767, 1768, 1769, 1770, 1771, 1772, 1773, 1765},--volcanic female [1151] = {1774, 1775, 1776, 1777, 1778, 1779, 1780},--seavel female [1149] = {1781, 1782, 1783, 1784, 1785, 1786, 1787, 1788, 1789, 1790, 1791},--Naturia female [1145] = {1792, 1793, 1794, 1795, 1796, 1797, 1798, 1799, 1800, 1792},--Psycraft female [1150] = {1801, 1802, 1803, 1804, 1805, 1804, 1803, 1802, 1801},--Orebound female [1147] = {1807, 1808, 1809, 1810, 1811, 1812, 1813, 1814, 1806},--Raibolt female [1148] = {1815, 1816, 1817, 1818, 1819, 1820, 1821, 1822, 1823, 1824},--Wingeon female [1183] = {1829, 1830, 1831, 1832, 1831, 1832},--police male [1184] = {1825, 1826, 1827, 1828, 1827, 1828},--police female } local premium = true --editado por min, somente premium usar taunt local intervalo_para_trocar_roupas = 2 * 200 -- em ms, 1 * 1000 = 1 segundo local function doChangeOutfit(cid, id, oldLook) if not isCreature(cid) then return true end local n = id or 1 local newOutfit = getCreatureOutfit(cid) newOutfit.lookType = outfits[oldLook][n] doSetCreatureOutfit(cid, newOutfit, -1) if n < #outfits[oldLook] then addEvent(doChangeOutfit, intervalo_para_trocar_roupas, cid, n + 1, oldLook) else doCreatureSetNoMove(cid, false) doRemoveCondition(cid, CONDITION_OUTFIT) end end function onSay(cid, words, param) if getCreatureCondition(cid, CONDITION_OUTFIT) and getCreatureNoMove(cid) then return true end -- somente premium usa taunt -- if isPlayer(cid) and not isPremium(cid) and premium == true then doPlayerSendCancel(cid, "Only premium members are allowed to taunt system.") return true end if not outfits[getCreatureOutfit(cid).lookType] then doPlayerSendCancel(cid, "Sorry,not possible.") return true end doCreatureSetNoMove(cid, true) doChangeOutfit(cid, 1, getCreatureOutfit(cid).lookType) return true end REP+ Pra Quem Ajudar !! Rapido Por Favor
  15. Olá galera do xtibia , venho trazer para vocês um sistema que muito simples mais também pode ser muito útil para pessoas que tem seu servidor sem site é gostaria de por um sistema desse no seu servidor ! Bom vamos lá este script e o seguinte através do script você poderá configurar a quantidade de dias de premium ou vip será necessário para a mudança de nome , quando o player usar o comando exempo : !mudarnome Xtibia , o player será kikado ao relogar já não irar ta mais os dias de vip que ele usou para trocar o nome ! Testado em TFS 0.3.6 , TFS 0.4 , Versões 8.54 , 8.6 Bom vamos ao script : vá em talkactions/script crie um arquivo lua chamado "mudarnome" é cole isso dentro : Lembrando Este e para premium Account : Este é para servidores que possui o sistema de vip normal, não através de premium account : Agora Vá em talkactions.xml é adicione essa tag : <talkaction words="!mudarnome;/mudarnome" event="script" value="mudarnome.lua"/> Local Onde você configura os dias de vip que vai custar para mudar ! elseif(getPlayerVipDays(cid) < 6) then Creditos : 80% Desconhecido 20% AdilsonHacker ( eu por editar algumas coisas ) Espero Ter Ajudado ! Abraços @up
  16. Fala ai galera, vim trazer outro script, então vamos a ele. Serve para o player ter acesso a alguma coisa por certo tempo, o player compra o acesso por uma quantia estipulada no script. /data/talkactions/scripts/newfile.lua DfujTzXB[/pastebin] talkactions.xml <talkaction words = "!buyacess" event = "script" value = "newfile.lua"/> Para checar se a pessoa tem acesso. To check if the person has access, you use: if(getPlayerStorageValue(cid, 83922) - os.time() > 0) then. Para checar quantos dias de acesso a pessoa ainda tem. To check how many days the person still has access, you use: os.date("%d %B %Y %X", getPlayerStorageValue(cid, 83922)). Exemplo. Example: function onUse(cid, item, fromPosition, itemEx, toPosition) if(getPlayerStorageValue(cid, 83922) - os.time() > 0) then return doTeleportThing(cid, toPosition) end return doPlayerSendCancel(cid, "Sorry, you do not have access to it.") end Como usar. How to use: !buyacess 20. É isso ai, espero que gostem.
  17. Gift System Saudações galerinha linda, vim trazer para vocês um comando bem legal e útil, no qual você pode presentear sua namorada, seu amigo ou seu parceiro ¬¬ Instalação Vá em data/talkactions/scripts, copie algum arquivo da pasta e cole, renomeie para gift_system.lua e adicione dentro: Em talkactions.xml adicione essa tag: <talkaction words="!gift;/gift" event="script" value="gift_system.lua" /> Configuração Siga nesta parte do código logo abaixo, e edite conforme citado: local gifts = { ["magic sword"] = {price = 500000, id = 2400}, ["dsm"] = {price = 500000, id = 2492}, ["mpa"] = {price = 500000, id = 2472}, ["mms"] = {price = 500000, id = 2514}, ["dsl"] = {price = 500000, id = 2469}, } Cada linha representa um GIFT, entre chaves ([ e ]) você coloca entre aspas o nome do item que ele vai presentear, price você coloca o preço a pagar e id o Item ID deste presente. Demonstração Print by: Overxin
  18. Alguém me ajuda esse script de reset quando da look nao mostra a quantidade de reset alguem poderia ajudar aew? function onSay(cid, words, param, channel) config = { RemainingLvl=8, exper=4200, pid=getPlayerGUID(cid), batle="yes" } function getPlayerResets(cid) resets = getPlayerStorageValue(cid,1020) if resets < 0 then resets = 0 end return resets end if (config.batle == "yes") and (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then doPlayerSendTextMessage(cid,22,"Você Precisa estar sem Battle para Resetar.") return TRUE end if (getPlayerStorageValue(cid, 11548) >= os.time()) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED,"Por medidas de segurança você só pode utilizar este comando em " .. (getPlayerStorageValue(cid, 11548)-os.time()+(0)) .. " segundos.") return TRUE end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 85 then if getPlayerLevel(cid) >= 780 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 780 .") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 80 then if getPlayerLevel(cid) >= 730 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 730 .") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 75 then if getPlayerLevel(cid) >= 680 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 680 .") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 70 then if getPlayerLevel(cid) >= 630 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 630 .") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 65 then if getPlayerLevel(cid) >= 590 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 590 .") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 60 then if getPlayerLevel(cid) >= 550 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 550 .") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 55 then if getPlayerLevel(cid) >= 510 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 510.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 50 then if getPlayerLevel(cid) >= 480 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 480 .") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 45 then if getPlayerLevel(cid) >= 450 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 450 .") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 40 then if getPlayerLevel(cid) >= 430 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 430 .") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 35 then if getPlayerLevel(cid) >= 410 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 410 .") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 30 then if getPlayerLevel(cid) >= 390 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 390") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 25 then if getPlayerLevel(cid) >= 380 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 380 .") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 20 then if getPlayerLevel(cid) >= 365 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 365 .") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 15 then if getPlayerLevel(cid) >= 360 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 360 .") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 10 then if getPlayerLevel(cid) >= 355 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 355 .") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1020) < 5 then if getPlayerLevel(cid) >= 350 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 350 .") end end -- Resets Vips -- ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 85 then if getPlayerLevel(cid) >= 770 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 770 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 80 then if getPlayerLevel(cid) >= 720 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 720 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 75 then if getPlayerLevel(cid) >= 670 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 670 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 70 then if getPlayerLevel(cid) >= 620 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 620 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 65 then if getPlayerLevel(cid) >= 580 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 580 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 60 then if getPlayerLevel(cid) >= 540 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 540 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 55 then if getPlayerLevel(cid) >= 500 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 500 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 50 then if getPlayerLevel(cid) >= 470 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 470 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 45 then if getPlayerLevel(cid) >= 440 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 440 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 40 then if getPlayerLevel(cid) >= 420 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 420 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 35 then if getPlayerLevel(cid) >= 400 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 400 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 30 then if getPlayerLevel(cid) >= 380 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 380 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 25 then if getPlayerLevel(cid) >= 370 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 370 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 20 then if getPlayerLevel(cid) >= 360 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 360 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 15 then if getPlayerLevel(cid) >= 355 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 355 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 10 then if getPlayerLevel(cid) >= 340 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 340 .") end end end ---------------------------------------------------------------------------------------------------------------------------------------- if isPremium(cid) == TRUE then if getPlayerStorageValue(cid,1020) < 5 then if getPlayerLevel(cid) >= 330 then setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid) db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 330 .") end end end return true end
  19. Esse é o meu primeiro tópico, então qualquer coisa comenta abaixo. Ontem dei uma olhada no talkactions e vi que não tinha mais esses comandos básicos, á maioria está postando coisas grandes, e alguns server's já possuem. Mas se o seu não, e você gostaria de adicionar, esse tópico é para você. 1° Abra a pasta do seu server -> data -> talkactions -> scripts 2° Depois duplique qualquer arquivo que esteja no scripts (.LUA) e apague o que tem dentro e coloque isso: O que está em vermelho: O que aparece quando você não tem dinheiro para comprar a backpack. O que está em laranja: É o preço da backpack, lembrando que sempre em gold. O que está em rosa: É o ID da backpack. Nesse caso ai está a Brocade backpack. O que está em azul: É a quantidade. 3° Depois vá em Talkactions.xml e adicione isso, feche e salve:
  20. Olá. Tomara que eu tenha postado em area correta porque sinceramente não sei. Mas vamos lá. Minha talkaction online.lua informa: Quantidade de players online, nome de players online, level de players online. Obs: Na (s) ultima (s) linha (s), estão escalados os jogadores que acabaram de entrar. Oque eu quero pedir? Vejamos: Por enquanto, informar o numero de jogadores online, e só. Já tentei retirar algumas strings, mas o que aconteceu foi que quando o jogador usa !online, aparece um monte de linha se tiver muitos jogadores, linhas em branco e se estiver acima de 150 jogadores, a pessoa que quizer saber quantos online tem, deve então tem que subir muito na aba. Para facilitar quero apenas o numero de jogadores online e na(s) linha(s) de baixo, os 10 ultimos jogadores que acabaram de entrar. Não sei nem cmo funciona meu script, mas eh padrão. N sei como ele consegue informar quem acabou de fazer login. Segue scripts: local config = { showGamemasters = getBooleanFromString(getConfigValue('displayGamemastersWithOnlineCommand')) } function onSay(cid, words, param, channel) local players = getPlayersOnline() local strings = {""} local i, position = 1, 1 local added = false for _, pid in ipairs(players) do if(added) then if(i > (position * 7)) then strings[position] = strings[position] .. "," position = position + 1 strings[position] = "" else strings[position] = i == 1 and "" or strings[position] .. ", " end end if((config.showGamemasters or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES) or not getPlayerCustomFlagValue(pid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) and (not isPlayerGhost(pid) or getPlayerGhostAccess(cid) >= getPlayerGhostAccess(pid))) then strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "]" i = i + 1 added = true else added = false end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (i - 1) .. " player(s) online:") for i, str in ipairs(strings) do if(str:sub(str:len()) ~= ",") then str = str .. "." end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, str) end return true end
  21. Status System Como em grandes fórums ou no Facebook, nós podemos mudar nossos Status. Que tal ter isso no nosso próprio Server? Que tal poder interagir com todos por meio de um simples comando? Sem precisar configurar nada no código. Instalação Vá em data/talkactions/scripts, crie um arquivo chamado status.lua ou copie algum arquivo da pasta e cole, renomeie para status e coloque isso dentro: Abra o talkactions.xml com algum editor de texto e cole essa tag: <talkaction words="!status;/status" event="script" value="status.lua"/> Nesta parte do código: local exhausted = 10 Você configura um exhausted, ou seja, a cada quantos segundos pode mudar seu Status. Demonstração !status << Apenas isso mostra a lista de Status dos players Online. !status Blablabla << Blablabla == Coloque algum status para você !status clean << Retirar seus status
  22. Laziness Shop Tive uma ideia bem legal, após eu me aprofundar em Looping. Este sistema você pode comprar runas e potions e outros items que quiser adicionar por comando, tornando seu character sedentário, não precisa ir ao NPC, rsrs. Instalação Vá em data/talkactions/scripts, copie algum arquivo da pasta e cole, renomeie para laziness_shop.lua e adicione dentro: Abra com o bloco de notas o arquivo talkactions.xml e adicione essa tag: <talkaction words="!comprar;/comprar;!shop;/!shop" event="script" value="laziness_shop.lua"/> Configuração ["blank"] = {eachPrice = 10, id = 2260}, Entre chaves ([ e ]), coloque oque fala para comprar o item, "eachPrice" o preço de cada unidade dele e "id" é o Item ID do mesmo. Para adicionar novos items, é só colocar uma linha igual debaixo desse e editá-la: ["hp"] = {eachPrice = 10, id = 7620}, Demonstração Ensinamentos Looping: MaXwEllDeN
  23. Bom, ele se baseia em um sistema que o player que conseguir ficar encima do trono, ganha. yUJx4Sdn[/pastebin] Configuração: local THRONE_POS = {x = 1, y = 2, z = 3} aqui é a posição do trono. local walls = { {ID, POS}, {ID, POS}, } Aqui é aonde tranca o evento, ele só abre você deve colocar um teleport ali dentro. local DUR = 30 -- aqui e quantos minutos o evento vai durar, você pode cancelar usando !castle fechar. Você cria uma área com um trono/tile e configura a THRONE_POS para aquela posição, você pode cancelar o evento também. !castle fechar. Não foi testado, então qualquer bug favor reportar. TAG: <talkaction words = "!castle" access = "5" event = "script" value = "nome_do_script.lua"/> Para abrir use !castle abrir.
  24. Versão do seu OTServ: 9.81 Dificuldade do pedido: fácil Oque deseja: Preciso de um comando para comprar skill só que não consigo. Comentários: Tenho um script que estava funcionando na versão 8.6 só que passei o servidor para 9.81 e agora o comando não esta funcionando. por favor esse script funcionava certinho na versão 8.6 mais já na versão 9.81 não funciona! +REP pra quem me ajudar! OBS: Primeira Vez que posto no Xtibia e não sei se esta na área correta se estiver em área errada por favor movam!
×
×
  • Create New...