Bom galera, pra começo de conversa nao sei se estou na sessao certa, se nao estiver agradeço se me moverem para sessao certa.
Enfim, olhei um tutorial aki msm no xtibia em como criar a mount doll. O cara mostrou apenas ate os mountros do 8.7, entao fui adicionar os novos mounts ate o 9.8, entao o mount doll parou de funcionar ai está ele quem puder me ajudar dou +rep
function onSay(cid, words, param)
local mounts = {
["widow queen"] = {price = 0, id = 1},
["racing bird"] = {price = 0, id = 2},
["war bear"] = {price = 0, id = 3},
["black sheep"] = {price = 0, id = 4},
["midnight panther"] = {price = 0, id = 5},
["draptor"] = {price = 0, id = 6},
["titanica"] = {price = 0, id = 7},
["tin lizzard"] = {price = 0, id = 8},
["blazebringer"] = {price = 0, id = 9},
["rapid boar"] = {price = 0, id = 10},
["stampor"] = {price = 0, id = 11},
["undead cavebear"] = {price = 0, id = 12}
["donkey"] = {price = 0, id = 13}
["Tiger Slug"] = {price = 0, id = 14}
["Uniwheel"] = {price = 0, id = 15}
["Crystal Wolf"] = {price = 0, id = 16}
["War Horse"] = {price = 0, id = 17}
["Kingly Deer"] = {price = 0, id = 18}
["tamed panda"] = {price = 0, id = 19}
["Dromedary"] = {price = 0, id = 20}
["Sandstone Scorpion"] = {price = 0, id = 21}
["Rented Horse"] = {price = 0, id = 22}
["Fire War Horse"] = {price = 0, id = 23}
["Shadow Draptor"] = {price = 0, id = 24}
["Rented Horse"] = {price = 0, id = 25}
["Rented Horse"] = {price = 0, id = 26}
["Ladybug"] = {price = 0, id = 27}
["Manta"] = {price = 0, id = 28}
["Ironblight"] = {price = 0, id = 29}
["Magma Crawler"] = {price = 0, id = 30}
["Dragonling"] = {price = 0, id = 31}
["Gnarlhound"] = {price = 0, id = 32}
}
local msg = {"Você pode escolher um: widow queen,Magma Crawler,Gnarlhound,Ironblight,donkwy,Ladybug,Manta,Shadow Draptor,Kingly Deer,Fire War Horse,Sandstone Scorpion,Rented Horse,Dromedary,Tiger Slug,tamed panda,Crystal Wolf,War Horse,Uniwheel,racing bird,war bear,black sheep,midnight panther,draptor,titanica,tin lizzard,blazebringer,rapid boar,stampor,undead cavebear", "Voce nao tem Mountdoll..", "Not A Good Param..", "Mount conquistado com susseso!.","Voce ja tem este mount"}
local param = string.lower(param)
local t = mounts[param]
if(getPlayerItemCount(cid, 2112) > 0) then
if(param ~= "" and t) then
if t and not getPlayerMount(cid, t.id) then
doPlayerRemoveItem(cid, 2112, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
doPlayerAddMount(cid, t.id)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[5])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
end
vlw ai quem ajudar ganha +rep