Signup Now
Results 1 to 4 of 4
  1. #1
    Free User
    Join Date
    Jun 2016
    Posts
    14
    Reputation
    10
    Rep Power
    0

    Log in other char when reach x level

    how i can do a script for log in other account character when reach x level and load x script in this char?
    Last edited by TeukuMyama; 06-27-2017 at 10:00 PM.

  2. #2
    Free User MenelZThais's Avatar
    Join Date
    Aug 2016
    Location
    Poland
    Posts
    253
    Reputation
    10
    Rep Power
    16
    Code:
    local level = 8
    local accountList = {
    	{
    		account   = 'login',
    		password  = 'password',
    		character = 'character name'
    	}
    }
    
    for _, v in ipairs(accountList) do
    	v.character = v.character:lower()
    end
    
    local curAccount  = table.find(accountList, $name:lower(), 'character')
    local nextAccount = accountList[(curAccount % #accountList) + 1]
    
    auto(1000)
    
    if $level >= level and not $battlesigned then
    	waitandlogout()
    	waitping()
    	keyevent(VK_ESCAPE)
    	waitping()
    	connect(nextAccount.account, nextAccount.password, nextAccount.character)
    end
    I don't think it is possible to load script via LUA.

  3. #3
    Free User blakw's Avatar
    Join Date
    Dec 2013
    Posts
    2,666
    Reputation
    73
    Rep Power
    27
    You can use loadsettings ( string filexml )

    Loads your settings from a WindBot XML file (".xmlc" and ".xml" files will be loaded from your cavebotsettings folder, and ".xmls" will be loaded from your playersettings folder.


    Visit:
    (◣_◢)

  4. #4
    Free User
    Join Date
    Jun 2016
    Posts
    14
    Reputation
    10
    Rep Power
    0
    thanks!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •