se ta usando o item certo?cada item é pra uma mont diferente
7
1.6k
info
Grupo: Conde
Registrado: 30/10/11
Posts: 625
Reputação: +101
Gênero: Masculino

21 de junho de 2012 às 19:27
info
Grupo: Cavaleiro
Registrado: 19/06/11
Posts: 195
Reputação: +14
Char no Tibia: Desconhecido

21 de junho de 2012 às 19:31
Sim já usei em todos. Estou usando o item correto sim. O primeiro que testei foi o maxilla maximus no undead cavebear e nenhum efeito surtou.
info
Grupo: Conde
Registrado: 30/10/11
Posts: 625
Reputação: +101
Gênero: Masculino

21 de junho de 2012 às 19:43
tente assim
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 mounts = {
[13322] = { name = "wailing widow", id = 1, tame=10, run=39, broken=51},
[13313]= { name = "terror bird", id = 2, tame=10, run=39, broken=51},
[5907]= { name = "bear", id = 3, tame=7, run=39, broken=54},
[13310]={ name = "black sheep", id = 4, tame=7, run=35, broken=58},
[13308]={ name = "midnight panther", id = 5, tame=10, run=39, broken=51},
[13309]={ name = "draptor", id = 6, tame=10, run=39, broken=51},
[13320]={ name = "crustacea gigantica", id = 7, tame=10, run=39, broken=51},
[13262]={ name = "boar", id = 10, tame=10, run=39, broken=51},
[13306]={ name = "undead cavebear", id = 12, tame=10, run=39, broken=51}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isCreature(itemEx.uid) then
str = getCreatureNanem(itemEx.uid):lower()
if mounts[itemi.itemid].name == str and not getPlayerMount(cid, mounts[item.itemid].id) then
if tameMonster(cid, item, itemEx, mounts[item.itemid].tame, mounts[item.itemid].run, mounts[item.itemid].broken) then
doSendMagicEffect(fromPosition, CONST_ME_MAGIC_BLUE)
doRemoveCreature(itemEx.uid)
doPlayerAddMount(cid, mounts[item.itemid].id)
else
doSendMagicEffect(toPosition, CONST_ME_POFF)
end
end
end
return true
end
info
Grupo: Cavaleiro
Registrado: 19/06/11
Posts: 195
Reputação: +14
Char no Tibia: Desconhecido

21 de junho de 2012 às 20:21
Ae cara d deu certo rep+++ vlw
@ EDIT O PLAYER N TA RECEBEBDNO A MONTARIA!!
info
Grupo: Conde
Registrado: 30/10/11
Posts: 625
Reputação: +101
Gênero: Masculino

21 de junho de 2012 às 20:41
eu disconheço as funções de mount então n sei o que ta errado,mas tenta assim
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)
doPlayerAddMount(cid, mounts[item.itemid].id)
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 mounts = {
[13322] = { name = "wailing widow", id = 1, tame=10, run=39, broken=51},
[13313]= { name = "terror bird", id = 2, tame=10, run=39, broken=51},
[5907]= { name = "bear", id = 3, tame=7, run=39, broken=54},
[13310]={ name = "black sheep", id = 4, tame=7, run=35, broken=58},
[13308]={ name = "midnight panther", id = 5, tame=10, run=39, broken=51},
[13309]={ name = "draptor", id = 6, tame=10, run=39, broken=51},
[13320]={ name = "crustacea gigantica", id = 7, tame=10, run=39, broken=51},
[13262]={ name = "boar", id = 10, tame=10, run=39, broken=51},
[13306]={ name = "undead cavebear", id = 12, tame=10, run=39, broken=51}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isCreature(itemEx.uid) then
str = getCreatureNanem(itemEx.uid):lower()
if mounts[itemi.itemid].name == str and not getPlayerMount(cid, mounts[item.itemid].id) then
if tameMonster(cid, item, itemEx, mounts[item.itemid].tame, mounts[item.itemid].run, mounts[item.itemid].broken) then
doSendMagicEffect(fromPosition, CONST_ME_MAGIC_BLUE)
doRemoveCreature(itemEx.uid)
else
doSendMagicEffect(toPosition, CONST_ME_POFF)
end
end
end
return true
end



info
Grupo: Cavaleiro
Registrado: 19/06/11
Posts: 195
Reputação: +14
Char no Tibia: Desconhecido
O Sky fez o script que eu pedi so que não está funcionando podem olhar pra mim? Eu clico no item e clico na mount e nada funciona
Editado Junho 21 por KUNGLOW