Mount System 8.70

renato95souza
em Actions e Talkactions

renato95souza

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/11/10Posts: 3Char no Tibia: Dimmy Newtron

Bom Esse é meu primeiro Tópico de Script...Então vamos lá mão na Massa ou melhor no Script rsrs'

 

Bom, Primeiramente vá na pasta Data/scripts e copie qualquer outra pasta .lua e renomeie para Mounts e adicione

este script.

--mount system by: BiBi xTibia

local function tameMonster(cid, item, itemEx, tame, run, broken)

n = math.random(100)

if n <= broken then

doCreatureSay(cid, "Lost item", TALKTYPE_ORANGE_1)

doRemoveItem(item.uid)

elseif n > broken and n <= (tame+broken) then

doRemoveItem(item.uid)

doCreatureSay(cid, "You tamed", TALKTYPE_ORANGE_1)

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You tamed "..getCreatureName(itemEx.uid)..".")

return true

elseif n > (tame+broken) and n <= (tame+broken+run) then

doCreatureSay(cid, "Fled", TALKTYPE_ORANGE_1)

doRemoveCreature(itemEx.uid)

else

doCreatureSay(cid, "Try again", TALKTYPE_ORANGE_1)

end

return false

end

 

local function inArray(table, value)

for i,v in pairs(table) do

if (v.name == string.lower(value)) then

return i

end

end

return 0

end

 

local mounts = {

{item = 13322, name = "wailing widow", id = 1, tame=10, run=39, broken=51},

{item = 13313, name = "terror bird", id = 2, tame=10, run=39, broken=51},

{item = 5907, name = "bear", id = 3, tame=7, run=39, broken=54},

{item = 13310, name = "black sheep", id = 4, tame=7, run=35, broken=58},

{item = 13308, name = "midnight panther", id = 5, tame=10, run=39, broken=51},

{item = 13309, name = "draptor", id = 6, tame=10, run=39, broken=51},

{item = 13320, name = "crustacea gigantica", id = 7, tame=10, run=39, broken=51},

{item = 13262, name = "boar", id = 10, tame=10, run=39, broken=51},

{item = 13306, name = "undead cavebear", id = 12, tame=10, run=39, broken=51}

}

 

function onUse(cid, item, fromPosition, itemEx, toPosition)

if isCreature(itemEx.uid) then

if inArray(mounts, getCreatureName(itemEx.uid)) > 0 then

i = inArray(mounts, getCreatureName(itemEx.uid))

if item.itemid == mounts.item and not getPlayerMount(cid, mounts.id) then

if tameMonster(cid, item, itemEx, mounts.tame, mounts.run, mounts.broken) then

doSendMagicEffect(fromPosition, CONST_ME_MAGIC_BLUE)

doRemoveCreature(itemEx.uid)

doPlayerAddMount(cid, mounts.id)

else

doSendMagicEffect(toPosition, CONST_ME_POFF)

end

end

end

end

return true

end

 

E depois salve a pasta mounts.lua com o Script e vá em data/actions/actions.xml

e Adicione essa Tag.

 

<!--Mounts-->

<action itemid="13310" script="mounts.lua"/> --reins

<action itemid="13309" script="mounts.lua"/> --harness

<action itemid="13308" script="mounts.lua"/> --leather whip

<action itemid="13313" script="mounts.lua"/> --carrot on a stick

<action itemid="13262" script="mounts.lua"/> --hunting horn

<action itemid="13320" script="mounts.lua"/> --Giant Shrimp

<action itemid="13306" script="mounts.lua"/> --Maxilla Maximus

<action itemid="5907" script="mounts.lua"/> --Slingshot

<action itemid="13322" script="mounts.lua"/> --Sweet Smelling Bait

Bom se você não tem os items de domar em sua pasta Items vá até ela Data/Items/items.xml

e Adicione isso.

</item>

<item id="13307" name="tin key" article="a">

<attribute key="description" value="A hermit near Carlin might be able to tell you more about it." />

<attribute key="weight" value="200" />

</item>

<item id="13308" name="leather whip" article="a">

<attribute key="description" value="A hermit near Carlin might be able to tell you more about it." />

<attribute key="weight" value="200" />

</item>

<item id="13309" name="harness" article="a">

<attribute key="description" value="A hermit near Carlin might be able to tell you more about it." />

<attribute key="weight" value="200" />

</item>

<item id="13310" name="reins" article="a">

<attribute key="description" value="A hermit near Carlin might be able to tell you more about it." />

<attribute key="weight" value="200" />

</item>

<item id="13313" name="carrot on a stick" article="a">

<attribute key="description" value="A hermit near Carlin might be able to tell you more about it." />

<attribute key="weight" value="200" />

</item>

<item id="13320" name="giant shrimp" article="a">

<attribute key="description" value="A hermit near Carlin might be able to tell you more about it." />

<attribute key="weight" value="200" />

</item>

<item id="13322" name="sweet smelling bait" article="a">

<attribute key="description" value="A hermit near Carlin might be able to tell you more about it." />

<attribute key="weight" value="200" />

</item>

<item id="13262" name="hunting horn" article="a">

<attribute key="description" value="A hermit near Carlin might be able to tell you more about it." />

<attribute key="weight" value="200" />

com cuidado para não apagar outras tags e coloca no meio delas.

Ahh! já ia me esquecendo Em sua Pasta do ot 8.70 já deve ter Slingshot.

Quem gostou Da Rep + Aê! =)

MSN: renato-souza-95@hotmail.com

leozinhoac

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 27/01/11Posts: 22

renato pode me dizer se da muito trabalho por esses system em ot 8.6?

Vodkart

Sumus Validus
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 21/05/10Posts: 3406Gênero: Masculino

eu já tinha um script quase igual a esse há algum tempo,onde tinha chance de capturar o "mount monster" ai o monstro é removido e é dada ao montaria ao jogador,e ele não poderia mais tentar mount monster pois dizia que já tinha tinha ela

alias o script é bem menor que esse o.O

bossisg.png

renato95souza

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/11/10Posts: 3Char no Tibia: Dimmy Newtron

renato pode me dizer se da muito trabalho por esses system em ot 8.6?

O Tibia Cliente 8.60 não tem As features ( imagens e tals ) do 8.70 então não tem como fazer um client 8.60 com montaria

Essa Montaria é akela do Visual que escolhe os Animais que você Capturou.

 

Fui dar um Test novamente aki no meu Server e bugo, tipo não tem os items agr to procurando corrigir

Quem tiver os items bugados tipo reins vai vira um boar morto quem tiver bugado ae só fala que ja ta arrumando aki!

Trypox

avatar
Banidos
Banidos

INFOS

Grupo: BanidosRegistrado: 07/10/10Posts: 9

como usar ?

asleepingdragon.gif

Copyright © 2010 - 2011

greyarrow.png Todos os direitos reservados Otlandbr.com

 

world2x.png Meus Trabalhos world2x.png

Atualização a cada 5 Segundo

 

anigifxaw.gif

Dudu08267

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 05/09/10Posts: 305

Ue mas os ots 8.70+ ja n tem o mount system? ou esse e um melhorado?

felipaoo

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 01/11/10Posts: 18Char no Tibia: nikoshima caos

cara aki os itens n aparece sera que tem que ser um ot diferente responde aew

mapper desempregado!
se presisar de ajuda me add luizinho.felipe@hotmail.com

renato95loko

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 19/05/11Posts: 4Char no Tibia: Ghanic Stor

Renato aqui novamente, meu usuário fui hackiado o.O

Bom vocês pegam um ot 8.70 atualizado, com items.otb ultima versão

Esse script é para conseguir mounts, o client 8.70 já tem as mounts, mas não o sistema para conseguir elas.