TI

Script De Jardineiro

Por tibiaa4e, 21 de nov. de 2006 em Actions e Talkactions

tibia
script
14
3.6k
tibiaa4eT
21 de novembro de 2006 às 12:24

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:

22 de novembro de 2006 às 10:33

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?

3 meses depois...
TemplarrT
20 de fevereiro de 2007 às 23:00

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

 

Abraço,

Templarr.

11 meses depois...
LoginoobL
13 de janeiro de 2008 às 14:03

show

 

sem comentes

:D

gp1998G
13 de janeiro de 2008 às 15:14

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

MecFlayM
13 de janeiro de 2008 às 15:20

RoooooOOOX!

Aprovadissimo by me

:D

elder720E
14 de janeiro de 2008 às 15:58

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

 

¬¬

 

explica certo ae né krl.

narrogN
14 de janeiro de 2008 às 17:48

n entendi nada explica melhor ai como usa?

RusttyR
15 de janeiro de 2008 às 14:45

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

AvoiscA
15 de janeiro de 2008 às 18:41

n entendi >.< q q isso faz?

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

3 meses depois...
rocketsR
14 de abril de 2008 às 00:30

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

bepokemon1B
14 de abril de 2008 às 21:15

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

Editado Abril 14 por FoxXs

rocketsR
14 de abril de 2008 às 22:04

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

flws

Editado Abril 14 por Rockets

StriusxDS
16 de abril de 2008 às 19:05

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