Otimo script, conto com mais contribuições suas. Xtibia agradesce.
- Fórum
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- Tammed System - Sistema de Domar Montarias!
LU
action
Tammed System - Sistema de Domar Montarias!
Por Luga03, 15 de abr. de 2015 em Actions e Talkactions
mount
tibia
otserv
2
1.2k


info
Grupo: Conde
Registrado: 14/04/15
Posts: 956
Reputação: +333
Gênero: Masculino
Eai Pessoal! Td Okay??
Estou aqui com uns scripts de domar Algumas montarias!
Eu Postei o Script de Domar a Uniwheel e a Tinlizzard!
Eu testei este script no alissow 5.0 e funcionou direitinho! acredito que funcione em outras versões!
Funciona em Versões de tibia 8.70+
Pronto Vamos Parar de Besterou e Começar!
Em Data/Actions/Scripts Crie um Arquivo Chamado mounts.lua e Adicione Isto Dentro:
local function tameMonster(cid, item, itemEx, tame, run, broken) n = math.random(100) if n <= broken then doCreatureSay(cid, "Vish! O item quebrou!", TALKTYPE_ORANGE_1) doRemoveItem(item.uid) elseif n > broken and n <= (tame+broken) then doRemoveItem(item.uid) doCreatureSay(cid, "Voce Domou a Criatura!", TALKTYPE_ORANGE_1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Voce Domou o "..getCreatureName(itemEx.uid).."!") return true elseif n > (tame+broken) and n <= (tame+broken+run) then doCreatureSay(cid, "A Criatura Fugio!", TALKTYPE_ORANGE_1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "O "..getCreatureName(itemEx.uid).." Fugio!") doRemoveCreature(itemEx.uid) else doCreatureSay(cid, "A Criatura Esta Muito Longe!", TALKTYPE_ORANGE_1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "O "..getCreatureName(itemEx.uid).." Esta Muito Longe!") 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 = 13307, name = "wailing widow", id = 1, tame=60, run=20, broken=20}, {item = 13298, name = "terror bird", id = 2, tame=40, run=20, broken=40}, {item = 5907, name = "bear", id = 3, tame=90, run=5, broken=5}, {item = 13295, name = "black sheep", id = 4, tame=40, run=30, broken=30}, {item = 13293, name = "midnight panther", id = 5, tame=60, run=20, broken=20}, {item = 13538, name = "panda", id = 19, tame=50, run=25, broken=25}, {item = 13539, name = "white deer", id = 18, tame=70, run=15, broken=15}, {item = 13294, name = "draptor", id = 6, tame=60, run=20, broken=20}, {item = 13537, name = "donkey", id =13, tame=5, run=90, broken=5}, {item = 13305, name = "crustacea gigantica", id = 7, tame=80, run=10, broken=10}, {item = 13536, name = "crystal wolf", id = 16, tame=60, run=20, broken=20}, {item = 13247, name = "boar", id = 10, tame=80, run=10, broken=10}, {item = 13498, name = "sandstone scorpion", id = 21, tame=70, run=10, broken=20}, {item = 13508, name = "slug", id = 14, tame=60, run=20, broken=20}, {item = 13535, name = "dromedary", id = 20, tame=60, run=20, broken=20}, {item = 13291, name = "undead cavebear", id = 12, tame=70, run=10, broken=20}, {item = 13939, name = "wild horse", id = 17, tame=60, run=20, broken=20}, {item = 15546, name = "lady bug", id = 27, tame=70, run=10, broken=20}, {item = 15545, name = "manta ray", id = 28, tame=60, run=20, broken=20}, {item = 13938, name = "uniwheel", id = 15, tame=70, run=15, broken=15}, {item = 13292, name = "tin lizzard", id = 8, tame=70, run=15, broken=15}, } 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[i].item and not getPlayerMount(cid, mounts[i].id) then if tameMonster(cid, item, itemEx, mounts[i].tame, mounts[i].run, mounts[i].broken) then doSendMagicEffect(fromPosition, CONST_ME_MAGIC_BLUE) doRemoveCreature(itemEx.uid) doPlayerAddMount(cid, mounts[i].id) else doSendMagicEffect(toPosition, CONST_ME_POFF) end end end end return true endE em Actions.xml Adicione Isto :
Pronto!
Creditos
Zet0N0Murmurou - Por Editar Muito o Script e Fazer o Tópico
Unknown - Autor Disconhecido mas os creditos vão a "ele" por ter criado o script!