Ir para conteúdo
Entre para seguir isso  
bananinhao

[N:Fácil]Lumberjacking (edited 18/07/07)

Recommended Posts

Rules Violations    0
Rules Violations

Pra que faser um script desse tamanho sendo que simplesmente podemos faser isso:

 

--Action 95% by Bananinhao--

-- 5% by Isabela --

 

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

 

if item2.itemid == 2700 or

if item2.itemid == 2706 or

if item2.itemid == 2705 or

if item2.itemid == 2704 or

if item2.itemid == 2703 or

if item2.itemid == 2702 or

if item2.itemid == 2701 then

 

rand = math.random(1,15)

 

if rand == 1 then

doPlayerAddItem(cid,5901,1)

doSendMagicEffect(topos,12)

doPlayerSendTextMessage(cid,22,"Você achou uma madeira!")

 

elseif rand == 2 then

doPlayerAddItem(cid,5901,2)

doSendMagicEffect(topos,12)

doPlayerSendTextMessage(cid,22,"Você achou duas madeiras!")

 

elseif rand == 3 then

doPlayerAddItem(cid,5901,3)

doSendMagicEffect(topos,12)

doPlayerSendTextMessage(cid,22,"Você achou tres madeiras!")

 

elseif rand == 4 then

doSummonCreature("Bat", topos)

doSendMagicEffect(topos,12)

doPlayerSendTextMessage(cid,22,"Um morcego o atacou!")

 

elseif rand == 5 then

doSummonCreature("Snake", topos)

doSendMagicEffect(topos,12)

doPlayerSendTextMessage(cid,22,"Uma cobra estava na arvore.")

 

elseif rand == 6 then

doSummonCreature("Rabbit", topos)

doSendMagicEffect(topos,12)

doPlayerSendTextMessage(cid,22,"Você achou um coelho.")

 

elseif rand == 7 then

doRemoveItem(item.uid,1)

doPlayerSendTextMessage(cid,22,"Seu axe quebrou.")

 

elseif rand >= 8 or 11 then

doTransformItem(item2.uid,5901)

doPlayerSendTextMessage(cid,22,"A árvore se esgotou.")

 

elseif rand >= 12 or 15 then

doPlayerSendTextMessage(cid,22,"Nada aconteceu.")

 

end

end

return 1

end

 

Créditos By Dananinhao

Compartilhar este post


Link para o post
Compartilhar em outros sites
Tyzinhow    0
Tyzinhow

Muito 10, vou colocar no meu ot. xD

Compartilhar este post


Link para o post
Compartilhar em outros sites
Fighters    3
Fighters

Bem, legal acho que vou colocar esse aqui no Meu OT

 

Aprovado :)

Compartilhar este post


Link para o post
Compartilhar em outros sites
bananinhao    0
bananinhao

Da pra resumir Tudo isso =)

 

pq em Ots antigos que eu usei para fazer minha script bugava todos tiles quando eu resumia :/

Compartilhar este post


Link para o post
Compartilhar em outros sites

Faça login para comentar

Você vai ser capaz de deixar um comentário após fazer o login



Entrar Agora
Entre para seguir isso  

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×