Script De Jardineiro

tibiaa4e
em Actions e Talkactions

tibiaa4e

Ex amante de Tibia
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 18/12/05Posts: 912Gênero: MasculinoChar no Tibia: Kohzete

creditos: Gecko

se vc quer ser jardineiro

+ axa vergonhoso viver uma vida assim (sem ofensas xD)

pode viver no tibia e kem sabe fazer akele concurso de plantas no seu quintal

ai vai o code

garden.xml

function onUse(cid, item, frompos, item2, topos)

fishingskill = getPlayerSkill(cid,6)

formula = fishingskill /200+0.85* math.random()

if formula > 0.70 then

doSendMagicEffect(topos,1)

doPlayerAddSkillTry(cid,6,1)

    if item.itemid == 5157 then

        doPlayerAddItem(cid, 2675, 1)

    elseif item.itemid == 4181 then

        doPlayerAddItem(cid, 2789, 1)

    elseif item.itemid == 2748 then

        doPlayerAddItem(cid, 2744, 1)

    elseif item.itemid == 2750 then

        doPlayerAddItem(cid, 2746, 1)

    elseif item.itemid == 2748 then

        doPlayerAddItem(cid, 2754, 1)

    elseif item.itemid == 4153 then

        doPlayerAddItem(cid, 2753, 1)

    elseif item.itemid == 3985 then

        doPlayerAddItem(cid, 2747, 1)

    elseif item.itemid == 2764 then

        doPlayerAddItem(cid, 2754, 1)

    elseif item.itemid == 2766 then

        doPlayerAddItem(cid, 2745, 1)

    elseif item.itemid == 2781 then

        doPlayerAddItem(cid, 2690, 1)

    elseif item.itemid == 4017 then

        doPlayerAddItem(cid, 2681, 1)

    else

        return 0

    end

    return 1

else

        doSendMagicEffect(topos,2)

        return 0

end

end

e em actions.xml

-- Gardening

<action itemid="5157" script="garden.lua"  />  -- Mango

<action itemid="4181" script="garden.lua"  />  -- Mushroom tree

<action itemid="2763" script="garden.lua"  />  -- Rose Bush

<action itemid="2750" script="garden.lua"  />  -- Yellow Royal

<action itemid="2748" script="garden.lua"  />  -- Love Flower

<action itemid="4153" script="garden.lua"  />  -- Small Sunflower

<action itemid="3985" script="garden.lua"  />  -- Plant

<action itemid="2764" script="garden.lua"  />  -- Rose Bush

<action itemid="2766" script="garden.lua"  />  -- Rose Bush

<action itemid="2781" script="garden.lua"  />  -- Agave

<action itemid="4017" script="garden.lua"  />  -- Fruit

olha o exemplo

mygardenon9.jpg

comentem

flws :bye:

Aposentado de OTserver e Tibia

Meus melhores tutoriais
Enciclopédia Pasta Data
Tutorial de quest

pedroddcunha

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 16/01/06Posts: 7

Ae

Não entendi muito bem esta action

Poderia explicá-la?

Mas ve se eu entedi certo

Você usa tal iten em algum tile daqueles que estão na foto

Ai tem uma chance de virar alguma flor, árvore ou coisa do gênero?

Templarr

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 06/09/06Posts: 69

Ae manow, muito show esse tutorial, nem sabia q dava pra fazer isso no tibia, =D, vlw ^^

 

Abraço,

Templarr.

Loginoob

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 18/03/07Posts: 27

show

 

sem comentes

:D

gp1998

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 20/12/07Posts: 69Char no Tibia: Draconic of Luminera

eu nao achei o arquivo garden.xml na pasta do meu ot server, xD

Olá XTibiano!

A sua assinatura estava danificando a estrutura do fórum e foi removida.

Para conferir sua assinatura antiga e restaurá-la, visite "Sobre mim" no seu perfil.

 

Grato pela atenção,

Henrique Moura.

MecFlay

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 08/01/08Posts: 137

RoooooOOOX!

Aprovadissimo by me

:D

-----------------------------------------------------------------------------------------------------------------
Sou Mapper,Trabalho em equipes ja formadas que tenham um bom projeto.
Se interessa?Mp pra mim.

-----------------------------------------------------------------------------------------------------------------

elder720

Elder Vinícius
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 02/09/06Posts: 99Char no Tibia: Raverin Leath

Aff, vc faz o Script e quer que nós adivinhamos como funciona!!!!

 

¬¬

 

explica certo ae né krl.

1379157_4.pngDinhOTServer

 

Exp rate: 100099x

Skills: 550

Loot: 5

Magic: 515

 

Protection level: 300

 

dinho720.servegame.com

1/1

narrog

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 05/05/06Posts: 23

n entendi nada explica melhor ai como usa?

Rustty

Ex - Coordenador de Conteúdo
avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 30/07/07Posts: 151

Caro usuário seu tópico está meio vago, despertando muitas dúvidas, estou aqui para lhe pedir que implemente algumas instruções.

Avoisc

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 17/12/07Posts: 53

n entendi >.< q q isso faz?

"""um jardi, burro""" eh... mas como? clikando no chao?


chute esse bicho feio que me mordeu, obrigado
Chute esse bicho feio aki

rockets

old times..
avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 29/02/08Posts: 180Char no Tibia: Fearnborn

Criativo em parabens a vc e ao Gecko, pelo q entendi soh dando uma olhadinha a funçao conciste em jogar a fruta no seu jardim e ao dar use ela se tranforma na arvore conforme a fruta, e tenho uma ideia para q quando vc plantar vc correr o risco de ser picado por formigas. Vou tentar fazer aki e posto qd der

Ei, te ajudei?

maow.gif

Rep ++

 

Acesse meu Portfólio http://www.kawek.com.br/everton e se gostou clique em 'Gostou?' ..

Mais informações entre em contato: eu_everton_94@hotmail.com

bepokemon1

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 09/04/08Posts: 7Char no Tibia: Foxx

muito bom, dei uma editada rapido, toma aí ó :D

chances de 1 pra 5 de firmigas te atacarem!

 

function onUse(cid, item, frompos, item2, topos)

 

pos = getPlayerPosition(cid)

formiga = math.random(10,100)

chance = math.random(1,5)

fishingskill = getPlayerSkill(cid,6)

formula = fishingskill /200+0.85* math.random()

if formula > 0.70 then

doSendMagicEffect(topos,1)

doPlayerAddSkillTry(cid,6,1)

if item.itemid == 5157 then

if chance == 1 or chance == 2 or chance == 3 or chance == 4 then

doPlayerAddItem(cid, 2675, 1)

if chance == 5 then

doPlayerAddHealth(pos,-formiga)

doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")

doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)

 

elseif item.itemid == 4181 then

if chance == 1 or chance == 2 or chance == 3 or chance == 4 then

doPlayerAddItem(cid, 2789, 1)

if chance == 5 then

doPlayerAddHealth(pos,-formiga)

doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")

doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)

 

elseif item.itemid == 2748 then

if chance == 1 or chance == 2 or chance == 3 or chance == 4 then

doPlayerAddItem(cid, 2744, 1)

if chance == 5 then

doPlayerAddHealth(pos,-formiga)

doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")

doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)

 

elseif item.itemid == 2750 then

if chance == 1 or chance == 2 or chance == 3 or chance == 4 then

doPlayerAddItem(cid, 2746, 1)

if chance == 5 then

doPlayerAddHealth(pos,-formiga)

doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")

doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)

 

elseif item.itemid == 2748 then

if chance == 1 or chance == 2 or chance == 3 or chance == 4 then

doPlayerAddItem(cid, 2754, 1)

if chance == 5 then

doPlayerAddHealth(pos,-formiga)

doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")

doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)

 

elseif item.itemid == 4153 then

if chance == 1 or chance == 2 or chance == 3 or chance == 4 then

doPlayerAddItem(cid, 2753, 1)

if chance == 5 then

doPlayerAddHealth(pos,-formiga)

doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")

doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)

 

elseif item.itemid == 3985 then

if chance == 1 or chance == 2 or chance == 3 or chance == 4 then

doPlayerAddItem(cid, 2747, 1)

if chance == 5 then

doPlayerAddHealth(pos,-formiga)

doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")

doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)

 

elseif item.itemid == 2764 then

if chance == 1 or chance == 2 or chance == 3 or chance == 4 then

doPlayerAddItem(cid, 2754, 1)

if chance == 5 then

doPlayerAddHealth(pos,-formiga)

doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")

doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)

 

elseif item.itemid == 2766 then

if chance == 1 or chance == 2 or chance == 3 or chance == 4 then

doPlayerAddItem(cid, 2745, 1)

if chance == 5 then

doPlayerAddHealth(pos,-formiga)

doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")

doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)

 

elseif item.itemid == 2781 then

if chance == 1 or chance == 2 or chance == 3 or chance == 4 then

doPlayerAddItem(cid, 2690, 1)

if chance == 5 then

doPlayerAddHealth(pos,-formiga)

doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")

doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)

 

elseif item.itemid == 4017 then

if chance == 1 or chance == 2 or chance == 3 or chance == 4 then

doPlayerAddItem(cid, 2681, 1)

if chance == 5 then

doPlayerAddHealth(pos,-formiga)

doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")

doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)

 

else

return 0

end

end

end

end

end

end

end

end

end

end

end

end

end

end

end

end

end

end

end

end

end

end

end

 

return 1

else

doSendMagicEffect(topos,2)

return 0

end

end

 

creditos : 10% me, 10% rockets, 80% tibiaa4e! VLWW

 

---edit

qual o id da terra q tem q fazer encima? o.O



Black Magician & Retalhador X



Te ajudei?Gostou de mim?Quer me matar?Use minha barra!

Sou fan de:


Eu sou:
50% Mapper
70% RPG maker
100% Spell Maker
80% Scripter
100% Monster Maker

T R I C O L O R 1000%

rockets

old times..
avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 29/02/08Posts: 180Char no Tibia: Fearnborn

Vlw foxx eu tava criando aki como eu ja tinha dito ali em cima mas vc ja postou entao ta de boa.

flws

Ei, te ajudei?

maow.gif

Rep ++

 

Acesse meu Portfólio http://www.kawek.com.br/everton e se gostou clique em 'Gostou?' ..

Mais informações entre em contato: eu_everton_94@hotmail.com

StriusxD

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/04/07Posts: 13

hauhsauhs, bem legal kra^^ hehe, ai éso colocar no mapa um lugar pro kra fazeo jardim=D

e... uma action pra q kando o kra usa uma fruta no jardim, nasce umpe dakela fruta, onde o kra pode colhe hehe,é uma boa ideia

Sou fan de:


Sou:
100% Quebra-Galho =D

--==Metas==--

[x] 1 post (grande conquista=D)
[x]5 posts (SERVO)
[x]10 posts (CAMPONÊS)
[x]25 posts (CAÇADOR)
[ ]50 posts (CAVALEIRO)
[ ]100 posts (BARONETE)
[ ]200 posts (BARÃO)
[ ]300 posts (VISCONDE)
[ ]400 posts (DUQUE)
[ ]600 posts (ARQUEDUQUE)
[ ]800 posts (ARISTOCRATA)
[ ]1000 posts (REGENTE)
[ ]1400 posts (SÁBIO)
[ ]1800 posts (SACERDOTE)
[ ]2500 posts (PRÍNCIPE)