• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Stamina Regen! Lua code?

tommy91

Member
Joined
Oct 27, 2010
Messages
269
Solutions
1
Reaction score
21
Location
Sweden
Heya! I am looking for a Stamina regen script with like an item!

Is there anyone who has this? I am using the latest TFS and Znote!
 
Posted in wrong section, should be in requests.

Code:
function onUse(player, item, fromPosition, itemEx, toPosition)
  if player:getStamina() >= 2520 then
  player:sendCancelMessage("Your stamina is already full.")
  elseif player:getPremiumDays() < 1 then
  player:sendCancelMessage("You must have a premium account.")
  else
  player:setStamina(2520)
  player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Your stamina has been refilled.")
  Item(item.uid):remove(1)
  end
  return true
end
Posted by @Ninja:
https://otland.net/threads/tfs-1-0-stamina-doll.207265/#post-2007613
 
Oh really? .. I am sorry, keep messing this up all the time

Do i change the Item.uid to an item or?
 
Last edited by a moderator:

Similar threads

Replies
2
Views
250
Back
Top