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

Solved [TFS 1.2] Free mount at start

petardako

New Member
Joined
Feb 12, 2013
Messages
53
Reaction score
3
Hello,

Does anyone know how to do for give some mounts to all players at start? I mean, start the server with some mounts free... Its possible? I have trying adding this at login.lua:

f not getPlayerMount(cid, 4) then
doPlayerAddMount(cid, 4)
end

but its not working. Can someone help me please? +REP!
 
above it in your login.lua
Code:
player:sendTutorial(1)
add:
Code:
player:addMount(MOUNTID)

or post your login to I put in somewhere :p
 
If you prefer, you can also reach the level, or add to level 1 (ALL)

Code:
function onAdvance(cid, skill, oldlevel, newlevel)

               if getPlayerLevel(cid) >= 250 and getPlayerStorageValue(cid, 13139) ~= 1 then
                            doPlayerAddMount(cid, 19)
                            setPlayerStorageValue(cid, 13139, 1)
                            doPlayerSendTextMessage(cid, 19, "You have received X Mount.")
                            end
            return TRUE
end
 
If you want multiple mounts to be added, you can short that function for this.
Code:
for k = 1, 74 do
        player:addMount(k)
 
Back
Top