Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.01 KB | None | 0 0
  1.     Acc_Names = {"11111","11111","11111","11111"}
  2.     Char_Names = {"2222","2222","2222","2222"}
  3.     Password = "pass"
  4.  
  5. -- get next char name
  6. local maxindex = #Acc_Names
  7. local index
  8. if index == nil then
  9.     index = 1
  10. end
  11. while Char_Names[index] ~= $name do
  12.     index = index + 1
  13.     if index > maxindex then
  14.         index = 1
  15.     end
  16. end
  17. index = index + 1
  18. if index > maxindex then
  19.     index = 1
  20. end
  21. --disable regular reconnect
  22. setsetting("Cavebot/Scripts/rec/Enabled","yes") -- change the regular reconnect name
  23. -- use statue if connected
  24. while  $connected do
  25.     useitem(0, ground($wptx, $wpty, $wptz))
  26.     wait(1000,2000)
  27. end
  28. -- connect using next char if not connected
  29. while not  $connected do
  30.     setpriority(99,1,6000,5000 ,0)
  31.     connect(Acc_Names[index],Password,Char_Names[index])
  32. end
  33. -- enable regular reconnect if character fir if it doesnt fit, go back 1 wpt
  34. if $connected and $self.name == Char_Names[index] then
  35.     setsetting("Cavebot/Scripts/rec/Enabled","yes") -- change the regular reconnect name
  36. else
  37.     gotolabel($wptid-1)
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement