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

Lua 0.4 Online Stamina

tatee

New Member
Joined
Mar 21, 2009
Messages
12
Reaction score
1
I've been looking for a script that regains stamina while online on trainers.

TFS 1.2 Trainer stamina regen.

I found this but it is for tfs 1.2, and I can't use it. I would really appreciate if someone could help me.

I also tried a globalevent with this script but it doesn't seem to be working

Lua:
function onThink(interval, lastExecution)
     for _, pid in ipairs(getPlayersOnline()) do
         if isInRange(getPlayerPosition(pid), {x = 32244, y = 32202, z = 7}, {x = 32275, y = 32237, z = 5}) then -- change to positions where Training Room..
            if isPlayer(pid) then
            doPlayerAddStamina(pid, 1)
             end
         end
     end
     return true
end

The coords are from my training monks area.
 
Back
Top