Results 1 to 5 of 5

Thread: Help with relog to other character

  1. #1
    Normal User nazzgul's Avatar
    Join Date
    Dec 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Help with relog to other character

    Why this script does not work? It just log out and go to the next wpt.
    Here is action:
    Code:
    local ACC1 = {"acc1"}
    local ACC2 = {"acc2"}
    local ACC3 = {"acc3"}
    local ACC4 = {"acc4"}
    local PASS1 = {"pass1"}
    local PASS2 = {"pass2"}
    local PASS3 = {"pass3"}
    local PASS4 = {"pass4"}
    local CHAR1 = {"xxx"}
    local CHAR2 = {"xxx"}
    local CHAR3 = {"xxx"}
    local CHAR4 = {"xxx"}
    
        
        if 
        {stamina <= 900 and name == "CHAR1" and pzone} 
        then
        setcavebot("no") wait(3500, 4500)
        logout() wait(3000, 4500)
        connect(ACC2, PASS2, CHAR2) wait(3000, 4500)
        
        elseif
        {stamina <= 900 and name == "CHAR2" and pzone} 
        then
        setcavebot("no") wait(3000, 4500)
        logout() wait(3500, 4500)
        connect(ACC3, PASS3, CHAR3) wait(3000, 4500)
        
        elseif
        {stamina <= 900 and name == "CHAR3" and pzone} 
        then
        setcavebot("no") wait(3000, 4500)
        logout() wait(3500, 4500)
        connect(ACC4, PASS4, CHAR4) wait(3000, 4500)
        
        elseif
        {stamina <= 900 and name == CHAR4 and pzone} 
        then
        setcavebot("no") wait(3500,4500)
        logout() wait(3000,4500)
        connect(ACC1, PASS1, CHAR1) wait(3000,4500)
    
    
    end
    @edit
    debug window is clean

  2. #2
    Normal User nazzgul's Avatar
    Join Date
    Dec 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    bring up my post

  3. #3
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    By Ropiderz
    PHP Code:
    local ACCPASS "account""password"
    local CHARS = {"char1","char2","char3","char4"}

    --[[ 
    ENGINE ]]--
    local INDEX_CHAR
    if (stamina <= 900 and pzonethen
        
    for INDEXCHAR_NAME in ipairs(CHARS) do
            if (
    name == CHAR_NAMEthen
                INDEX_CHAR 
    INDEX
            end
        end
        
    if (INDEX_CHAR == #CHARS) then
            
    INDEX_CHAR 0
        end
        setcavebot
    ("no"wait(30004500)
        
    logout() wait(30004500)
        
    connect(ACCPASSCHARS[INDEX_CHAR 1]) wait(30004500)
        
    gotolabel("start"wait(30004500)
        
    setcavebot("yes"wait(30004500)
    end 

  4. #4
    Normal User nazzgul's Avatar
    Join Date
    Dec 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    I know this script, but it is for single account, i need script for different accounts.
    Quote Originally Posted by soder View Post
    By Ropiderz
    PHP Code:
    local ACCPASS "account""password"
    local CHARS = {"char1","char2","char3","char4"}

    --[[ 
    ENGINE ]]--
    local INDEX_CHAR
    if (stamina <= 900 and pzonethen
        
    for INDEXCHAR_NAME in ipairs(CHARS) do
            if (
    name == CHAR_NAMEthen
                INDEX_CHAR 
    INDEX
            end
        end
        
    if (INDEX_CHAR == #CHARS) then
            
    INDEX_CHAR 0
        end
        setcavebot
    ("no"wait(30004500)
        
    logout() wait(30004500)
        
    connect(ACCPASSCHARS[INDEX_CHAR 1]) wait(30004500)
        
    gotolabel("start"wait(30004500)
        
    setcavebot("yes"wait(30004500)
    end 

  5. #5
    Normal User Quinfloow's Avatar
    Join Date
    Jul 2012
    Location
    Internet
    Posts
    169
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    Why not just mc then? Insted of making it complicated imo
    Currently Selling:
    140EK+139EK+120EK@PVP:
    http://www.tibiaibot.com/forum/showt...p-got-ur-Ms-Ed
    § I accept middleman, but you pay fee.
    § I accept Moneybookers or banktransfer only.
    § Interested? Send me a pm for more info!
    Sold Chars: (Listed by levels)
    283EK - Thoria (Mopz)
    274EK - Antica (Mopz)
    242MS - Lunara (Heffa)
    224RP - Hiberna (unknown)
    194MS - Hiberna (unknown)
    175ED - Lunara (Energy)
    100MS - Elysia (Dijay)
    95EK - Lunara (Heffa)
    90EK - Lunara (Heffa)
    81RP - Thoria (Kapi)

Posting Permissions

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