Welcome.
It needs to mount quest.
Simply put quests Box and entered such ActionID or UniqueID.
When you press the Chosen Mount get.
Thanks in advance and please help me.
local mount =
{
[2161] = 1,
[2162] = 2,
[2163] = 3,
[2164] = 4,
[2165] = 5,
[2166] = 6,
[2167] = 7,
[2168] = 8,
[2169] = 9,
[2170] = 10,
[2171] = 11,
[2172] = 12
}
function onUse(cid, item, frompos, item2, topos)
queststatus = getPlayerMount(cid, mount[item.uid])
if queststatus <= 0 then
doPlayerSendTextMessage(cid, 19, "Now you can mount id " .. mount[item.uid] .. ".")
doPlayerAddMount(cid, mount[item.uid])
else
doPlayerSendTextMessage(cid,19,"You already have this mount!")
end
return true
end
[2/11/2012 21:7:54] [Error - Action Interface]
[2/11/2012 21:7:54] data/actions/scripts/mounts/mount.luanUse
[2/11/2012 21:7:54] Description:
[2/11/2012 21:7:54] data/actions/scripts/mounts/mount.lua:23: attempt to compare boolean with number
[2/11/2012 21:7:54] stack traceback:
[2/11/2012 21:7:54] data/actions/scripts/mounts/mount.lua:23: in function <data/actions/scripts/mounts/mount.lua:21>
You mean that when you click on a chest it gives you a mount? thats what you are looking for?