• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Mount on Mystic Spirit

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
 
Code:
[03/04/2011 21:38:22] Lua Script Error: [Action Interface]
[03/04/2011 21:38:22] data/actions/scripts/mounts/panda.lua: onUse
[COLOR="red"][B][SIZE="7"][03/04/2011 21:38:22] luaDoPlayerAddMount(). There is no mount with the specified id.[/SIZE][/B][/COLOR]
[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>

Why people don't read? you did something wrong on the xml file
 
Back
Top