• 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 Adding a storage on first login!

calveron

Bravemansworld
Joined
Feb 5, 2008
Messages
165
Reaction score
13
Location
Sweden
So, basicly I need help!
I have a skillpoint system on my server, each level gives you 1 point.
However, I removed rook and now I want players who create their character to get 10 skill points on their first login! Anyone who wants to help me out? :)
using TFS 1.1!
 
It doesn't matter in which login script you add it, if you can't login it's unable to load one of the login scripts you have (probable the one you just posted before in this thread, since it closed the function to early).
You can indeed also add it to this one.
Code:
function onLogin(player)
     if player:getLastLoginSaved() <= 0 then  
         player:setStorageValue(62490, 10)
     end
     player:registerEvent("skillPoints_advance")
     player:registerEvent("skillPoints_modal")
     return true
end
 
It doesn't matter in which login script you add it, if you can't login it's unable to load one of the login scripts you have (probable the one you just posted before in this thread, since it closed the function to early).
You can indeed also add it to this one.
Code:
function onLogin(player)
     if player:getLastLoginSaved() <= 0 then 
         player:setStorageValue(62490, 10)
     end
     player:registerEvent("skillPoints_advance")
     player:registerEvent("skillPoints_modal")
     return true
end
Allright! Well, this one did it! Thanks a bunch for the help! Works perfectly!
 

Similar threads

Back
Top