Criando Esculturas De Gelo (updated)

Wallacy
em Actions e Talkactions
  • 1
  • 2

Wallacy

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 04/07/07Posts: 103

Um dos projetos mais legais que eu já fiz até agora (na minha opinião), é um de ot 8.0, que você pega um "ice cube" e vai clicando nele e esculpindo, até que ele vire um elefante de gelo. (finalmente os decoradores de casa ganharam alguma coisa) Atendendo a pedidos e a idéias, agora você deve usar uma dwarven pick para esculpir e é random, ou seja, é pura sorte. Agora também o ice cube pode virar uma escultura de um peixe. as chances são baixas mais tem como. Eu acho uma boa idéa colocar um npc pra comprar ela.

 

imagemgr0.png

 

CERTO, VAMOS TRABALHAR

 

1: Vá em data>actions>scripts, copie 1 arquivo e cole em qualquer lugar.

 

2: Renomei-o com o seguinte nome:

 

icesculture

 

3: Abra o documento, apague TODO seu conteúdo e bote isso:

 ---Action by Koti---
function onUse(cid, item, frompos, item2, topos)

if item2.itemid == 0 then
return 0
end


random = math.random(1,16)

if getPlayerLevel(cid) >= 8 then

if item2.itemid == 7447 and random == 1 then
doTransformItem(item2.uid,7441)

elseif item2.itemid == 7441 and random == 2 then
doTransformItem(item2.uid,7441)

elseif item2.itemid == 7441 and random == 3 then
doTransformItem(item2.uid,7442)

elseif item2.itemid == 7441 and random == 4 then
doTransformItem(item2.uid,7441)

elseif item2.itemid == 7441 and random == 5 then
doTransformItem(item2.uid,7441)

elseif item2.itemid == 7441 and random == 6 then
doTransformItem(item2.uid,7441)

elseif item2.itemid == 7441 and random == 7 then
doTransformItem(item2.uid,7441)

elseif item2.itemid == 7441 and random == 8 then
doTransformItem(item2.uid,7442)

elseif item2.itemid == 7441 and random == 9 then
doTransformItem(item2.uid,7442)

elseif item2.itemid == 7441 and random == 10 then
doTransformItem(item2.uid,7441)

elseif item2.itemid == 7441 and random == 11 then
doTransformItem(item2.uid,7442)

elseif item2.itemid == 7441 and random == 12 then
doTransformItem(item2.uid,7442)

elseif item2.itemid == 7441 and random == 13 then
doTransformItem(item2.uid,7441)

elseif item2.itemid == 7441 and random == 14 then
doTransformItem(item2.uid,7447)

elseif item2.itemid == 7441 and random == 15 then
doTransformItem(item2.uid,7441)

elseif item2.itemid == 7441 and random == 16 then
doTransformItem(item2.uid,7441)

end
end

random = math.random(1,8)

if getPlayerLevel(cid) >= 8 then

if item2.itemid == 7442 and random == 1 then
doTransformItem(item2.uid,7442)

elseif item2.itemid == 7442 and random == 2 then
doTransformItem(item2.uid,7442)

elseif item2.itemid == 7442 and random == 3 then
doTransformItem(item2.uid,7442)

elseif item2.itemid == 7442 and random == 4 then
doTransformItem(item2.uid,7444)

elseif item2.itemid == 7442 and random == 5 then
doTransformItem(item2.uid,7444)

elseif item2.itemid == 7442 and random == 6 then
doTransformItem(item2.uid,7442)

elseif item2.itemid == 7442 and random == 7 then
doTransformItem(item2.uid,7442)

elseif item2.itemid == 7442 and random == 8 then
doTransformItem(item2.uid,7442)

end
end

random = math.random(1,8)

if getPlayerLevel(cid) >= 8 then

if item2.itemid == 7444 and random == 1 then
doTransformItem(item2.uid,7444)

elseif item2.itemid == 7444 and random == 2 then
doTransformItem(item2.uid,7444)

elseif item2.itemid == 7444 and random == 3 then
doTransformItem(item2.uid,7444)

elseif item2.itemid == 7444 and random == 4 then
doTransformItem(item2.uid,7445)

elseif item2.itemid == 7444 and random == 5 then
doTransformItem(item2.uid,7445)

elseif item2.itemid == 7444 and random == 6 then
doTransformItem(item2.uid,7444)

elseif item2.itemid == 7444 and random == 7 then
doTransformItem(item2.uid,7444)

elseif item2.itemid == 7444 and random == 8 then
doTransformItem(item2.uid,7444)

end
end

random = math.random(1,8)

if getPlayerLevel(cid) >= 8 then

if item2.itemid == 7445 and random == 1 then
doTransformItem(item2.uid,7445)

elseif item2.itemid == 7445 and random == 2 then
doTransformItem(item2.uid,7445)

elseif item2.itemid == 7445 and random == 3 then
doTransformItem(item2.uid,7445)

elseif item2.itemid == 7445 and random == 4 then
doTransformItem(item2.uid,7446)

elseif item2.itemid == 7445 and random == 5 then
doTransformItem(item2.uid,7446)

elseif item2.itemid == 7445 and random == 6 then
doTransformItem(item2.uid,7445)

elseif item2.itemid == 7445 and random == 7 then
doTransformItem(item2.uid,7445)

elseif item2.itemid == 7445 and random == 8 then
doTransformItem(item2.uid,7445)


end
end
return 1
end

 

4: Salve as alterações.

 

5: Mova esse arquivo para seu local de origem (data>actions>scripts).

 

6: Agora vá em data>actions, abra o actions.xml e bote isso:

<action itemid="4874" script="icesculture.lua" />

 

Pronto! O id do bloco de gelo inicial é: 7441.

E o id da Dwarven Pick é: 4874.

Divirta-se.

 

AGRADECIMENTOS:

DragonBoster e tibiaa4e (pelas idéias)

 

Atenciosamente, Koti.

unled4g.gif

Monter Kill

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 08/04/07Posts: 68Char no Tibia: Tibia? Que isso!

Oloco, ficou bem legal isso, valeu mesmo Koti exelente trabalho, ja foi testado, e deu certim.

 

Muito Obrigado,

//NitroX

"Olha o Monster Kill aiii velho!!!!"
"... Monster Quem???"

Nostradamus

Serviços Prestados ao XTibia.com
avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 10/06/06Posts: 338Char no Tibia: Setyte Berseker

Vou lhe dar uma dica cara, em vez de você ficar criando 4 arquivos, ponha tudo em um apenas. Vou lhe dar um exemplo fazendo isso com seu script:

 

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

 if item.itemid == 7441 then
doTransformItem(item.uid,7442)

 elseif item.itemid == 7442 then
doTransformItem(item.uid,7444)

 elseif item.itemid == 7444 then
doTransformItem(item.uid,7445)

 elseif item.itemid == 7445 then
doTransformItem(item.uid,7446)
 else
return 0
 end

 return 1 
end

[twitter]ThomazYuji[/twitter]

tibiaa4e

Ex amante de Tibia
avatar
Conde
Conde

INFOS

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

Boa action

+ tipo não é de prima q vai

è random =D

 

Arruma ai

 

flws

Aposentado de OTserver e Tibia

Meus melhores tutoriais
Enciclopédia Pasta Data
Tutorial de quest

Gabriel95

Banido
avatar
Banidos
Banidos

INFOS

Grupo: BanidosRegistrado: 18/04/07Posts: 96

Nossa, muito boa a action! Conserteza vai ter no meu server.

[Banido por Ripping]

Atlantic

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 21/07/07Posts: 21
Nossa, muito boa a action! Conserteza vai ter no meu server.

 

Não sei não =/ , vou pensar! Se tiver vamos fazer a nossa propria!!!

 

----------

Post

 

Bem legal a action mais isso ja eziste não é ?

Se não :

Você inventou ?

Ou te fizerão o pedido ?

 

Ps: Me mande resposta via MPs com seu email!!

 

=D

//Sem Mais Destroylher of Earth

 

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

 

mgnki9.png

4p1ptah.jpg

I'love Xtibia =D !!! Sou mais EU =]

Não dou suporte via MPs!! Dou suporte apenas via email

 

E meu fan? Usse :

5zmhwsm.gif

 

Minhas Entrevistas:

Kami-Kaze

 

Meus Tutoriais:

Aprendendo a mecher com o Config.lua

Tutorial de lux completa

 

Presents:

Grabite

 

Meu email: atlantic342@hotmail.com

Minha equipe: Black Storm

Eu sou: Server Admin, Monster Maker

Thunder Sandex

Why so serious?
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 17/04/07Posts: 54

Legal!

                            - Denn
                    XContato: kheni_x@hotmail.com

Sign:


capeta7

avatar
Barão
Barão

INFOS

Grupo: BarãoRegistrado: 22/04/06Posts: 238
Boa action

+ tipo não é de prima q vai

è random =D

 

Arruma ai

 

flws

 

ficaria mais lgl msmo mas de qualquer jeito jah tah muito lgl essa action...

vou usar no meu ot concerteza...

e como eu jah pedi na MP vc quer entrar na minha equipe ? =X

QUOTE
21:51 Gabriel Stoll [12]: aki é thais?
21:51 Gabriel Stoll [12]: ?
21:51 Gabriel Stoll [12]: ?
21:52 Djinn Middow [20]: n.. eh northport ^.-

-----------------
mithi_9@hotmail.com
-----------------
----> Bars <----

machines

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 28/04/07Posts: 2

pra escutura que arma presisa??

DragonBoster

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 03/09/06Posts: 127

Tem como colocar

pra tpw

vc pega uma knife e usa nele pra pdr virar

nao clikar soh entendeu?

 

Se conseguir posta awe :D



Mapping since 2005

soulblaster

avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 22/10/05Posts: 196

Hiho!

 

1º ~~> porque usou 4 scripts O_O' colocava tudo em 1.

2º ~~> voce não clica e transforma, tem que usar a obsidian knife. (no tibia)

3º ~~> existe uma chance para transformar. (no tibia)

 

cya ^__^'

Assinatura feita por Kilerzinhow:
untitled3mg3.jpg
| Wey.Ctba | Wey.Ctba | Rafix | UnderNight | Xedegux |

Wallacy

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 04/07/07Posts: 103

Queria pedir educadamente para que se acalmem, eu estou trabalhando em todas as sujestões, usando knife, colocando random.. O problema é que em dias de semana eu quase não tenho tempo, peço que tenham paciência.

 

Atenciosamente, Koti

unled4g.gif

Nostradamus

Serviços Prestados ao XTibia.com
avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 10/06/06Posts: 338Char no Tibia: Setyte Berseker

@Koti

Eu melhorei seu script, se quiser, acesse meu site (assinatura)

[twitter]ThomazYuji[/twitter]

upking

Phoenix, sempre ressurgindo das cinzas
avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 24/10/06Posts: 1026Char no Tibia: Lord Night Rider

putz cara ta mt manero

 

mt bom isso ae

Visite meu canal no youtube: http://youtube.com/gabriel_rodriguez_tech

 

  • 1
  • 2