Nightimarez
New Member
- Joined
- Jul 24, 2008
- Messages
- 287
- Reaction score
- 2
I found this script to receive a mount by clicking use on an Item, but I get an error. I have the mount added to the xml folder.
[03/04/2011 21:38:22] Lua Script Error: [Action Interface]
[03/04/2011 21:38:22] data/actions/scripts/mounts/panda.lua: onUse
[03/04/2011 21:38:22] luaDoPlayerAddMount(). There is no mount with the specified id.
[03/04/2011 21:38:22] stack traceback:
[03/04/2011 21:38:22] [C]: in function 'doPlayerAddMount'
[03/04/2011 21:38:22] data/actions/scripts/mounts/panda.lua:5: in function <data/actions/scripts/mounts/panda.lua:1>
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 6390 then
local pPos = getPlayerPosition(cid)
doSendMagicEffect(pPos, 50)
doPlayerAddMount(cid, 123)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You found the Panda Mount!")
end
return TRUE
end