• 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 Soulpoint refiller/booster

Elox

http://elox.se/
Joined
Jul 5, 2008
Messages
624
Reaction score
2
Location
Sweden, Fagersta
Howdy!

I'm in need of some sort of Soulpoint refiller.
You walk on a sqm / click on a thing and you get full soulpoints (200)

Doesn't any "doPlayerAddSoulPercent" function or such exist?

I want players to be able to refill their soul points always.
If I use "doPlayerAddSoul" then I can't make 'em able to do it all the time. Because if they could they would be able to get like 999 soul points.. And that's not good ;)
I'm using TFS 0.2

So could anyone help me? :)
Not sure but I think I saw Znote use it? (could be dreaming)
 
Last edited:
For what distro?

Would this be sufficient? If you've got less than 200 soulpoints you gain full soulpoints, but if you've already got 200 soulpoints then you won't gain anything, and it tells you why.

Code:
function onStepIn(cid,item,frompos,topos)

    if getPlayerSoul(cid) < 200 then
        doPlayerAddSoul(cid, 200 - getPlayerSoul(cid))
        doPlayerSendTextMessage(cid,22,'Your soulpoints have been restored.')
    else
        doPlayerSendTextMessage(cid,22,'You\'ve already got 200 soulpoints.')
    end
end

(For TFS)
 
Last edited:
Back
Top