Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2.   _____            _   _ _      _____     __   __
  3.  |  __ \          | | (_) |    |  __ \    \ \ / /
  4.  | |__) |___ _ __ | |_ _| | ___| |__) |___ \ V /
  5.  |  _  // _ \ '_ \| __| | |/ _ \  _  // _ \ > <  
  6.  | | \ \  __/ |_) | |_| | |  __/ | \ \  __// . \
  7.  |_|  \_\___| .__/ \__|_|_|\___|_|  \_\___/_/ \_\
  8.             | |                                  
  9.             |_|
  10.            
  11.  Name: Relog To The Next Character
  12.  Author: ReptileReX
  13.  Version: 1.0.0
  14. --]]
  15.  
  16. -- Your account name, its needed to use connect() function
  17. local accountName = "account1"
  18.  
  19. -- Your account password, its needed to use connect() function
  20. local accountPass = "password123"
  21.  
  22. -- List of your characters to login as lua table
  23. -- Make sure that actual character name is also included below
  24. local characters = {"Character One", "Character Two", "Character Three"}
  25.  
  26. -- Actual character name
  27. local actualCharacter = name
  28.  
  29. -- Next character name to login
  30. local nextCharacter = nil
  31.  
  32. -- Logout your character until you are not connected
  33. while (connected == true) do
  34.     if (battlesigned == false) then
  35.         logout()
  36.     end
  37.     updateworld()
  38.     wait(1500, 2000)
  39. end
  40.  
  41. -- Getting a name of your next character and store it in variable
  42. -- When there isn't next character then store "nil" value
  43. for i, nextName in pairs(characters) do
  44.     if (nextName == actualCharacter) then
  45.         nextCharacter = characters[i + 1] or nil
  46.         break
  47.     end
  48. end
  49.  
  50. -- Login to your next character until you are connected
  51. -- Only when nextCharacter is not equal to nil value
  52. if (nextCharacter ~= nil) then
  53.     while (connected == false) do
  54.         connect(accountName, accountPass, nextCharacter)
  55.         updateworld()
  56.         wait(1500, 2000)
  57.     end
  58. end
  59.  
  60. -- We are updating all bot variables (i.e name, connected)
  61. updateworld()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement