WA

Criando Esculturas De Gelo (updated)

Por Wallacy, 27 de jul. de 2007 em Actions e Talkactions

tibia
script
25
6.1k
WallacyW
27 de julho de 2007 às 14:24

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.

Editado Agosto 9 por Koti

Monter KillM
27 de julho de 2007 às 14:27

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

 

Muito Obrigado,

//NitroX

NostradamusN
27 de julho de 2007 às 14:38

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

tibiaa4eT
27 de julho de 2007 às 19:07

Boa action

+ tipo não é de prima q vai

è random =D

 

Arruma ai

 

flws

Gabriel95G
27 de julho de 2007 às 21:33

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

AtlanticA
27 de julho de 2007 às 22:17
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

Editado Julho 27 por Destroylher of Earth

Thunder SandexT
28 de julho de 2007 às 14:15

Legal!

1 mês depois...
capeta7C
04 de agosto de 2007 às 14:38
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

machinesM
04 de agosto de 2007 às 15:06

pra escutura que arma presisa??

05 de agosto de 2007 às 14:33

Tem como colocar

pra tpw

vc pega uma knife e usa nele pra pdr virar

nao clikar soh entendeu?

 

Se conseguir posta awe :D

soulblasterS
07 de agosto de 2007 às 12:20

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 ^__^'

WallacyW
07 de agosto de 2007 às 15:56

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

NostradamusN
07 de agosto de 2007 às 20:06

@Koti

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

upkingU
07 de agosto de 2007 às 20:53

putz cara ta mt manero

 

mt bom isso ae

3 semanas depois...
28 de agosto de 2007 às 15:49

Sinceramente, na teoria é um belo e ótimo code.

 

Não testei ainda, mais vou testar e jaja edito!

Cya!