God Mythera
Veteran OT User
Hello, when i try to use mount doll on a new mount like "Floating Kashmir" it says "Retype, something is wrong!" can anyone maybe tell me what the problem is? Much appreciated!
Code:
local config =
{
--["mount"] = {id = x},
["widow queen"] = {id = 1},
["racing bird"] = {id = 2},
["war bear"] = {id = 3},
["black Sheep"] = {id = 4},
["midnight panther"] = {id = 5},
["draptor"] = {id = 6},
["titanica"] = {id = 7},
["tin lizzard"] = {id = 8},
["blazebringer"] = {id = 9},
["rapid boar"] = {id = 10},
["Stampor"] = {id = 11},
["undead cavebear"] = {id = 12},
["donkey"] = {id = 13},
["tiger slug"] = {id = 14},
["Uniwheel"] = {id = 15},
["crystal wolf"] = {id = 16},
["brown war horse"] = {id = 17},
["kingly deer"] = {id = 18},
["tamed panda"] = {id = 19},
["dromedary"] = {id = 20},
["king scorpion"] = {id = 21},
["rented horse a"] = {id = 22},
["armoured war horse"] = {id = 23},
["shadow draptor"] = {id = 24},
["rented horse b"] = {id = 25},
["rented horse c"] = {id = 26},
["ladybug"] = {id = 27},
["manta"] = {id = 28},
["ironblight"] = {id = 29},
["magma Crawler"] = {id = 30},
["dragonling"] = {id = 31},
["gnarlhound"] = {id = 32},
["crimson ray"] = {id = 33},
["Steelbeak"] = {id = 34},
["water buffalo"] = {id = 35},
["armoured scorpion"] = {id = 36},
["armoured dragonling"] = {id = 37},
["armoured cavebear"] = {id = 38},
["lion"] = {id = 40},
["Golden Lion"] = {id = 41},
["Shock Head"] = {id = 42},
["Walker"] = {id = 43},
["Azudocus"] = {id = 44},
["Carpacosaurus"] = {id = 45},
["Death Crawler"] = {id = 46},
["Flamesteed"] = {id = 47},
["Jade Lion"] = {id = 48},
["Jade Pincer"] = {id = 49},
["Nethersteed"] = {id = 50},
["Tempest"] = {id = 51},
["Winter King"] = {id = 52},
["Doombringer"] = {id = 53},
["Woodland Prince"] = {id = 54},
["Hailtorm Fury"] = {id = 55},
["Siegebreaker"] = {id = 56},
["Poisonbane"] = {id = 57},
["Blackpelt"] = {id = 58},
["Golden Dragonfly"] = {id = 59},
["Steel Bee"] = {id = 60},
["Copper Fly"] = {id = 61},
["Tundra Rambler"] = {id = 62},
["Highland Yak"] = {id = 63},
["Glacier Vagabond"] = {id = 64},
["Glooth Glider"] = {id = 65},
["Shadow Hart"] = {id = 66},
["Black Stag"] = {id = 67},
["Emperor Deer"] = {id = 68},
["Flying Divan"] = {id = 69},
["Magic Carpet"] = {id = 70},
["Floating Kashmir"] = {id = 71},
["Ringtail Waccoon"] = {id = 72},
["Night Waccoon"] = {id = 73},
["Emerald Waccoon"] = {id = 74},
["Flitterkatzen"] = {id = 75},
["Venompaw"] = {id = 76},
["Batcat"] = {id = 77},
["Sea Devil"] = {id = 78},
["Coralripper"] = {id = 79},
["Plumfish"] = {id = 80},
["Gorongra"] = {id = 81},
["Noctungra"] = {id = 82},
["Silverneck"] = {id = 83},
["Slagsnare"] = {id = 84},
["Nightstinger"] = {id = 85},
["Razorcreep"] = {id = 86}
}
function onSay(cid, words, param)
local player, t, mountdoll_id = Player(cid), config[string.lower(param)], 13030 -- id do mount doll
if (player:getItemCount(mountdoll_id) > 0) then
if (param ~= "" and t) then
if(t and not player:hasMount(t.id)) then
player:removeItem(mountdoll_id, 1)
player:sendTextMessage(MESSAGE_INFO_DESCR, "Mount was added!")
player:getPosition():sendMagicEffect(CONST_ME_GIFT_WRAPS)
player:addMount(t.id)
else
player:sendCancelMessage("You already have this mount.")
end
else
player:sendCancelMessage("Retype, something is wrong!")
end
else
player:sendCancelMessage("You do not have a mount doll!")
end
return true
end