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
The coords are from my training monks area.
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.