Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''planta''.



Mais opções de pesquisa

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • A Cidade OTBR
    • OTServ Brasil
    • Atendimento
    • Taverna
  • Projetos Open Source
    • Canary
    • OTServBR-Global
    • Mehah OTClient
    • MyAAC
  • OpenTibia
    • Notícias e Discussões
    • Suporte - Dúvidas, Bugs, Erros
    • Downloads
    • Tutoriais
    • Show-Off
  • Outros
    • Design

Encontrado 1 registro

  1. [8.1] Cuidando de uma "Plantinha"

    ----------------------------------------------- Nome: Plantinha System Versão: 8.1 Tipo do script: Ações. Servidor Testado: Aries 0.4.5 XML Autor: Mukah ------------------------------------------------------- Bom galera, este é meu primero post aki na OTserv. Meu script é o seguinte, no Tibia Global, lanço há um tempo atraz um sistema de cuidar de uma plantinha. Você junta "seeds", e troca com a npc. E vai regando sua planta, e chega um ponto que ela cresce! Então, meu script é bem parecido, você pega o vasinho sem planta e começa a regar. Chega uma hora que ela começa a crescer até ficar grande. Você poderá programar para ela envelheçer também Então vamos lá! Crie um arquivo na pasta "data/actions/scripts/" com o nome de "planta.lua". Planta.xml -- Script 100% by Mukah -- function onUse(cid, item, frompos, item2, topos) if item2.itemid == 0 then return 0 end if item2.itemid == 7679 then rand = math.random(1,10) if rand == 4 then doTransformItem(item2.uid,7678) else doTransformItem(item2.uid,7679) end -- Muda elseif item2.itemid == 7678 then rand = math.random(1,25) if rand == 5 then doTransformItem(item2.uid,7680) elseif rand == 10 then doTransformItem(item2.uid,7682) elseif rand == 15 then doTransformItem(item2.uid,7684) elseif rand == 20 then doTransformItem(item2.uid,7686) else doTransformItem(item2.uid,7678) end -- Planta 1 elseif item2.itemid == 7680 then rand = math.random(1,30) if rand == 11 then doTransformItem(item2.uid,7688) else doTransformItem(item2.uid,7680) end -- Planta 2 elseif item2.itemid == 7682 then rand = math.random(1,30) if rand == 11 then doTransformItem(item2.uid,7690) else doTransformItem(item2.uid,7682) end -- Planta 3 elseif item2.itemid == 7684 then rand = math.random(1,30) if rand == 11 then doTransformItem(item2.uid,7692) else doTransformItem(item2.uid,7684) end -- Planta 4 elseif item2.itemid == 7686 then rand = math.random(1,30) if rand == 11 then doTransformItem(item2.uid,7694) else doTransformItem(item2.uid,7686) end -- Cuidando da sua planta elseif item2.itemid == 7688 then doTransformItem(item2.uid,7688) elseif item2.itemid == 7690 then doTransformItem(item2.uid,7690) elseif item2.itemid == 7692 then doTransformItem(item2.uid,7692) elseif item2.itemid == 7694 then doTransformItem(item2.uid,7694) else return 0 end return 1 end -- Script 100% by Mukah -- Após ter criado o script acima, abra o arquivo "data/actions/actions.xml". Coloque o tag dentro depois do "<actions>" e antes do "</actions>". tag actions <action itemid="7734" script="planta.lua" /> Exemplo: actions.xml <?xml version="1.0"?> <actions> <action itemid="7734" script="planta.lua" /> </actions> Pronto, o seu vaso está configurado. *Como fazer ela ficar velha se não regar? Busque as ID's dos vasos no arquivo"data/items/items.xml", e adicione em cada vaso [7688/7690/7692/7694] o seguinte tag: tag items <attribute key="decayTo" value="7674"/> <attribute key="duration" value="50000"/> Exemplo: itens.xml <item id="7688" article="a" name="vase"> <attribute key="decayTo" value="7674"/> <attribute key="duration" value="[color=Red]200000[/color]"/> </item> <item id="7690" article="a" name="vase"> <attribute key="decayTo" value="7674"/> <attribute key="duration" value="[color=Red]200000[/color]"/> </item> <item id="7692" article="a" name="vase"> <attribute key="decayTo" value="7674"/> <attribute key="duration" value="[color=Red]200000[/color]"/> </item> <item id="7694" article="a" name="vase"> <attribute key="decayTo" value="7674"/> <attribute key="duration" value="[color=Red]200000[/color]"/> </item> Nota: Em vermelho o tempo de duração que a planta vai ficar viva. Você pode mudar a vontade. Então é isto, depois posto mais alguns scripts meus! Comenta!
×