Advertisement
martintokio

Untitled

Jan 14th, 2024
932
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. -- Stamina and Character Swap
  2. local playerName = player:getName()
  3.  
  4. local hour = 19
  5. local characterList = {
  6.     ["Trampekk"] = "Trampek",
  7.     ["Trampek"] = "Trampek Maker",
  8.     ["Trampek Maker"] = "Trampek Maker Two",
  9.     ["Trampek Maker Two"] = "Trampekk",
  10. }
  11.  
  12. if stamina() < hour*60 then
  13.     if characterList[playerName] then
  14.         local newCharacterName = characterList[playerName]
  15.         relogOnCharacter(newCharacterName)
  16.         print("Switching to " .. newCharacterName)
  17.     end
  18. end
  19. return true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement