Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Ola pessoa hoje venho trazer para comunidade tibia king o sistema de remove addon do pokemon não esta 100% na hora que você remove addon da esse erro "OnUse" 

Bom vamos la.

Lembrando que não  fui eu o criador foi o TheRatazana do otserver brasil" eu tentei e não deu certo então ele me ajudo espero que ajude vocês.

se estiver no lugar errado peço desde já desculpa pois nunca criei um topico aqui para scripts. 

 

vai em Servidor / data / actions addon

 

Pra que funcione legal, você precisa adicionar isso aqui na linha 30 do seu sistema

doSetItemAttribute(pb, "addonItem", item.itemid)

ele tem que fica assim no Actions.

 

Spoiler

 



function onUse(cid, item, fromPosition, itemEx, toPosition)
                
                 local addons = {
                -- Snorlax
                [13847] = {pokemon= "Snorlax", looktype = 1558, nome = "Bear Cap", fly =  0, ride = 0, surf = 1560},
                [13848] = {pokemon= "Snorlax", looktype = 1561, nome = "Polar Bear Cap", fly =  0, ride = 0, surf = 1557},
                [13849] = {pokemon= "Snorlax", looktype = 1564, nome = "Chef Costume", fly =  0, ride = 0, surf = 1563},
                [13850] = {pokemon= "Snorlax", looktype = 1567, nome = "Obelix Costume", fly =  0, ride = 0, surf = 1566},
                [13851] = {pokemon= "Snorlax", looktype = 1571, nome = "Sushilax", fly =  0, ride = 0, surf = 1572},
                [13852] = {pokemon= "Snorlax", looktype = 1569, nome = "The Gray", fly =  0, ride = 0, surf = 1570},
                
                -- Shiny Snorlax
                [13847] = {pokemon= "Shiny Snorlax", looktype = 1580, nome = "Bear Cap", fly =  0, ride = 0, surf = 1582},
                [13848] = {pokemon= "Shiny Snorlax", looktype = 1574, nome = "Polar Bear Cap", fly =  0, ride = 0, surf = 1575},
                [13849] = {pokemon= "Shiny Snorlax", looktype = 1577, nome = "Chef Costume", fly =  0, ride = 0, surf = 1579},
                [13850] = {pokemon= "Shiny Snorlax", looktype = 1584, nome = "Obelix Costume", fly =  0, ride = 0, surf = 1583},
                [13851] = {pokemon= "Shiny Snorlax", looktype = 1589, nome = "Sushilax", fly =  0, ride = 0, surf = 1590},
                [13852] = {pokemon= "Shiny Snorlax", looktype = 1586, nome = "The Gray", fly =  0, ride = 0, surf = 1587},
                
                -- Shiny Charizard
                [13857] = {pokemon= "Shiny Charizard", looktype = 1603, nome = "white spot", fly =  1602, ride = 0, surf = 0},
                [13854] = {pokemon= "Shiny Charizard", looktype = 1607, nome = "Traveler Bag", fly =  1606, ride = 0, surf = 0},
                [13853] = {pokemon= "Shiny Charizard", looktype = 1604, nome = "Charla Flower", fly =  1605, ride = 0, surf = 0},
                [13856] = {pokemon= "Shiny Charizard", looktype = 1608, nome = "Skull Dragon", fly =  1609, ride = 0, surf = 0},
                
                -- Charizard
                [13857] = {pokemon= "Charizard", looktype = 1593, nome = "white spot", fly =  1592, ride = 0, surf = 0},
                [13854] = {pokemon= "Charizard", looktype = 1595, nome = "Traveler Bag", fly = 1594, ride = 0, surf = 0},
                [13853] = {pokemon= "Charizard", looktype = 1597, nome = "Charla Flower", fly = 1596, ride = 0, surf = 0},
                [13855] = {pokemon= "Charizard", looktype = 1599, nome = "helmet Dragon", fly = 1598, ride = 0, surf = 0},
                [13856] = {pokemon= "Charizard", looktype = 1600, nome = "Skull Dragon", fly =  1601, ride = 0, surf = 0},
               }
                
                if #getCreatureSummons(cid) > 0 then
                                doPlayerSendCancel(cid, "Por favor, de volta seu pokemon.")
                                return false
                end     
                local addon = addons[item.itemid].looktype
                local fly = addons[item.itemid].fly
                local ride = addons[item.itemid].ride
                local surf = addons[item.itemid].surf
 
                local pb = getPlayerSlotItem(cid, 8).uid
                local pk = addons[item.itemid].pokemon
 
                if getItemAttribute(pb,"poke") ~= pk then
                                doPlayerSendCancel(cid, "Desculpe, voce não pode usar este addon nesta pokemon.")
                return false
                end
 
                if getItemAttribute(pb,"addon") >= 0 then
                                doRemoveItem(item.uid, 1)
                                doPlayerSendTextMessage(cid, 27, "Parabens! Agora seu pokemon vai usar o addon.")
                                doSetItemAttribute(pb,"addon",addon)
                                doSetItemAttribute(pb,"addonfly",fly)
                                doSetItemAttribute(pb,"addonride",ride)
                                doSetItemAttribute(pb,"addonsurf",surf)
                                doSetItemAttribute(pb, "addonItem", item.itemid)
                                return true
                end     
 
return true
end

 

 

 

 

 

Vai em Servidor\data\talkactions\scripts cria um arquivo lua e mude o nome para addon
 

Spoiler

 



function onSay(cid, words, param, channel)
    if #getCreatureSummons(cid) > 0 then
        doPlayerSendCancel(cid, "Please back your pokemon.")
        return false
    end

    local pokeball = getPlayerSlotItem(cid, 8).uid

    if getItemAttribute(pokeball,"addon") <= 0 then
        doPlayerSendCancel(cid, "Nenhum addon para remover.")
        return false
    end
    
    doPlayerAddItem(cid, getItemAttribute(pokeball, "addonItem"))
    doPlayerAddItem(cid, getItemAttribute("addonItem"))

    doSetItemAttribute(pokeball, "addon", 0)
    doSetItemAttribute(pokeball, "addonfly", 0)
    doSetItemAttribute(pokeball, "addonride", 0)
    doSetItemAttribute(pokeball, "addonsurf", 0)
    doSetItemAttribute(pokeball, "addonItem", 0)

    doPlayerSendTextMessage(cid, 28, "Você removeu o addon do seu pokemon.")

    return true
end

 

 

 

 

agora vai em talkaction.xlm e coloca essa tag la

 

 <talkaction words="/addonsRemove" access="1" event="script" value="addons.lua"/>

 

Link para o post
Compartilhar em outros sites

Este tópico foi movido para a área correta. Esta é uma mensagem automática!
Pedimos que leia as regras do fórum!

Spoiler

This topic has been moved to the correct area. This is an automated message!
Please read the forum rules.

 

Compre seus Scripts Agora totalmente seguro e de forma rápida, aceitamos também encomendas.

discord.gg/phJZeHa2k4

 

Projeto ATS (Naruto)

Informações Abaixo

Facebook

Youtube
Discord

 

Tutoriais / Conteúdos

Clique Aqui

Link para o post
Compartilhar em outros sites

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.

Spoiler

Congratulations, your content has been approved!
Thank you for your contribution, we of Tibia King we are grateful.
Your content will help many other users, you received +1 REP.

 

@DarkRed dei uma editada no tópico para ficar mais organizado e de melhor leitura

Compre seus Scripts Agora totalmente seguro e de forma rápida, aceitamos também encomendas.

discord.gg/phJZeHa2k4

 

Projeto ATS (Naruto)

Informações Abaixo

Facebook

Youtube
Discord

 

Tutoriais / Conteúdos

Clique Aqui

Link para o post
Compartilhar em outros sites
7 minutos atrás, Brunds disse:

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.

  Mostrar conteúdo oculto

Congratulations, your content has been approved!
Thank you for your contribution, we of Tibia King we are grateful.
Your content will help many other users, you received +1 REP.

 

@DarkRed dei uma editada no tópico para ficar mais organizado e de melhor leitura

 

Muito obtogado mesmo 

Link para o post
Compartilhar em outros sites
  • 5 months later...

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por Kiman174
      GRIMHAVEN SEASON 4
      LAUNCHING APRIL 18TH 19:00 CEST
       
      Join our community and stay up to date:
      Official Discord Server
       
       
       
       
       
      Step into a world where passion meets innovation—welcome to Grimhaven MMORPG! Born from a heartfelt passion project, Grimhaven has evolved into an extraordinary realm where every pixel on our meticulously crafted Real Map tells a story. Leveraging the classic legacy of version 8.6 and elevated by inventive custom content, our server transcends traditional gameplay, inviting you into a living, breathing adventure at every turn.
       
       
      Explore sprawling landscapes, battle formidable foes, and uncover hidden lore as you journey through environments that blend classic mechanics with innovative systems. Every corner of Grimhaven pulses with life and mystery, inviting you to forge alliances, challenge epic quests, and redefine what you thought possible in an open Tibia server. With each update, our dedicated team pushes the envelope, ensuring that every raid, dungeon, and social encounter feels fresh and electrifying.
       
       
      Whether you're a seasoned adventurer or new to the realm, Grimhaven offers a thrilling escape into a world where the spirit of discovery and the thrill of combat come together in perfect harmony. Embrace the extraordinary—your adventure begins now in Grimhaven MMORPG!
       
       
      What Makes Grimhaven Stand Out?
       
      With over thousands of hours of development and 4000+ commits, Grimhaven stands out with its unique blend of classic and innovative MMORPG features. Built on an authentic Real Map with 8.6 mechanics and expanded with carefully designed custom content, the experience is unmatched. The server offers rates starting from 12x, stunning HD visuals, and intricately scripted quests that immerse you in a dynamic narrative. From challenging custom raid bosses to a refined item system inspired by classic action RPGs, every element is thoughtfully crafted to deliver an engaging and ever-evolving adventure, all backed by a dedicated team ensuring a top-tier gaming experience.
       
       
       
      Custom Zones :
      Explore meticulously designed zones that promise unique challenges and unparalleled rewards.
       

       
       
       
      Unique Randomly Generated Dungeons :
      As if that's not enough, brace yourselves for our unique dungeons. Each one is randomly generated, ensuring that no adventure is ever the same. The thrill of exploring the unknown awaits you in every twist and turn.
       


       

       
       


       
       
       
      Scripted and Mechanically Challenging Quests:
      Immerse yourself in intricately designed quests that push your strategic prowess and combat skills, all brought to life by the remarkable creativity of our quest designer and mapper.
       

       

       


       
       
      Mighty Bosses:
      Confront colossal adversaries, each boasting unique abilities and intricate mechanics that challenge your tactics and teamwork, turning every encounter into an unforgettable battle.
       


       
       
       
      Ancient and Mythic Monsters:
      Encounter legendary beasts, ancient guardians, and mythical creatures that not only test your skills and courage but also offer tougher challenges, richer loot drops, and enhanced experience rewards.
       

       
       
       
      Magical Attributes & Crafting:
      Discover a world of enchantment where magical items not only have a chance to drop in the wild, but can also be expertly crafted to bestow unique and powerful attributes on your gear.
       
       

       

       
       
       
      Custom Events :
      We keep the excitement rolling with unique, server-wide events that'll keep you on the edge of your seat. Expect the unexpected!
       
       



       
       
       
      This glimpse barely scratches the surface—there's a TON more content that would overwhelm this thread! To dive even deeper, visit our official wiki at Grimhaven Wiki (https://wiki.grimhaven.net) and create your account today at Latestnews - Grimhaven (https://www.grimhaven.net/) .   
       
      Gear up for an unforgettable adventure starting April 18th 19:00 CEST.
      Dive into a realm of epic rewards, heart-pounding quests, and intense PVP battles where you'll test your skills against others.
      Join a vibrant community of adventurers, embrace the thrill of discovery, and answer the call to glory on the battlefield!
    • Por zandoria
      Olá, aventureiro!

      É com grande entusiasmo que anunciamos o lançamento do servidor Zandoria! Prepare-se para uma experiência única em um mundo totalmente novo, repleto de desafios, mistérios e diversão!

      Link de acesso: https://zandoria.com.br
      Host BR - Ping: 20ms

      FREE PREMIUM

      Server Info

      IP: zandoria.com.br
      Client: 13.40
      World type: PVP
      Protection level: 7
      Loot: x800
      Spawn: x80
      House rent: monthly
      Level to create guild: 100
      Level to buy house: 100

      Rates
      Exp Rate: x800
      Magic Level: x800
      Skills: x800

      Frags & Skull system

      PZ Lock: 1 min
      Frag Duration: 7 hours
      RedSkull Duration: 1 days
      BlackSkull Duration: 3 days
      Red skull: 3 daily / 5 weekly / 10 monthly
      Black skull: 6 daily / 10 frags weekly / 20 frags monthly 
    • Por BTitan
      Reviva a nostalgia do Tibia 8.6 com um toque das novidades modernas, mantendo a essência clássica que você ama. Nosso mapa é limpo e otimizado, perfeito para wars intensas e estratégicas.
      Com mais de 100 áreas de caça, vocações equilibradas e eventos automáticos diários, garantimos diversão sem limites para todos os jogadores.
       
      ACC Manager: 1/1
      IP: go.baiaktitan.com
      https://www.baiaktitan.com
       
      Principais informações:
       
      Dedicado 24 horas sem lag Attack Speed moderado Cast System DODGE! CRITICAL! REFLECT! Upgrade Weapon Forge System Autoloot Anti Rollbacks Eventos exclusivos (Battle Royale, DOTA, Team Battle, entre outros...) Servidor integrado com Telegram (Contato direto com ADM) Cliente próprio (com novos itens, montarias e outfits) Mapa Baiak, modificado exclusivamente para o PvP Servidor otimizado, suportando mais de 1.000 players online  
      »» EXP Rate: 200x
      »» Skill Rate: 20x
      »» Magic Rate: 10x
      »» Loot Rate: 3x
       
      Aguardamos por você!
    • Por Kuds
      Boas pessoal!
       
      Estou disponibilizando neste fórum a oportunidade para quem é fan de Lord Of the Rings e gostaria de participar na recriação de um mapa baseado no universo de Tolkien. Comecei a projetar o mapa pois sempre gostei do antigo servidor Bronson, então pensei em melhorar ele da melhor forma que posso, e mesmo não sendo Mapper de muito tempo as partes que fiz ja receberam aprovação de conhecidos que acharam interessante o meu estilo por mais simples que seja.
       
      Atualmente ja possuo a base do mapa inteiro de LOTR, recriei ele do 0 seguindo fielmente o formato do mapa, porém ele está com mais de 4x o tamanho do Bronson original. E conforme tenho tempo vou criando áreas do mapa, e no momento ja possuo Bree e Edoras prontas, e estou no processo para recriar Minas Tirith.
       
      Meu objetivo com este Post é achar pessoas que estariam dispostas á participar do grupo de WPP que criei para poder opinar nas votações que faço a respeito do mapa, e talvez achar alguem interessado em ajudar com este projeto. Então qualquer pessoa que tiver interesse fique a vontade para me mandar PM no site!
       
      PS: Não existe nenhuma obrigatoriedade de se manter no grupo, considerando que este é apenas um projeto de carinho ao Tibia e LOTR todos estão livres de sair do projeto a qualquer momento.
    • Por yezzin
      FALA RAPAZIADA CANSADOS DE JOGAR EM SERVIDORES QUE FECHAM TODA HORA E ADM'S QUE NÃO LIGAM PARA O GAME?
      APRESENTO NTO STORM.

      ⚡NTO STORM⚡
       
       💖Versão 8.60 com OLD e OTC
       💖Task system;
       💖Saga system;
      💖 Outfit/skin system;
       💖Raridade system;
       💖Elo/Kage system;
       💖buff/Aura system;
      💖 Market system;
      💖 Autoloot system;
      💖 Mapa 100% proprio e novinho;
       💖Diversas quest de todos os niveis;
      💖 Vocaçao do dia;
       💖Cast System;
       💖Shop no Game
       💖Mercado Negro;
      💖Upgrade Set;
      💖Refinamento de Armas e Shields;
       💖Evento(castle,Guild castle, eventos, task, bonus, sorteios!
       
      https://discord.gg/un9uewM3Ds
      VOA !!
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo