• 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!

Question about mounts!

Write this is the Login.lua file

Lua:
registerCreatureEvent(cid, "mounts on start")

in ur creaturescripts folder add this as a lua file named mounts on start

Lua:
function onLogin(cid)
    if getPlayerStorageValue(cid, 1232) < 1 then
        if 	getPlayerLevel(cid) == 8 then -- put the starting level here.
			doPlayerAddMount(cid, 1) -- add mount ID here! at the second slot after cid, cause am not sure of the ids
			doPlayerAddMount(cid, 2)
			doPlayerAddMount(cid, 3)
			doPlayerAddMount(cid, 4)
			doPlayerAddMount(cid, 5)
			doPlayerAddMount(cid, 6)
			doPlayerAddMount(cid, 7)
			doPlayerAddMount(cid, 8)
			doPlayerAddMount(cid, 9)
			doPlayerAddMount(cid, 10)
			doPlayerAddMount(cid, 11)
			doPlayerAddMount(cid, 12)
			doPlayerAddMount(cid, 13)
			doPlayerAddMount(cid, 14)
			doPlayerAddMount(cid, 15)
			doPlayerAddMount(cid, 16)
			doPlayerSendTextMessage(cid,21,""..getPlayerName(cid).." You currently have all the mounts available for you.")
        end
            setPlayerStorageValue(cid, 1232, 1)
    end
     return true
end

add this line to ur creaturescripts.xml

XML:
<event type="login" name="mounts on start" event="script" value="mounts on start.lua"/>
 
Last edited:
Back
Top