Signup Now
Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11
  1. #11
    Free User
    Join Date
    Nov 2014
    Posts
    21
    Reputation
    10
    Rep Power
    0
    Im pretty much noob with lua but i finaly did it and it works great.

    I run 4 settings, one "reloader" and 3 settings for each character.

    Reloader:
    PHP Code:
    local minStamina  15 60 -- In minutes
    local accountList 
    = {
        {
            
    account   'aa',
            
    password  'bb',
            
    character 'x'
        
    },
        {
            
    account   'aa',
            
    password  'bb',
            
    character 'y'
        
    },
        {
            
    account   'aa',
            
    password  'bb',
            
    character 'z'
        
    }
    }

    -- DO 
    NOT EDIT BELOW THIS LINE --
    for 
    _v in ipairs(accountList) do
        
    v.character v.character:lower()
    end

    if $stamina minStamina then
        local curAccount  
    table.find(accountList$name:lower(), 'character')
        
    local nextAccount accountList[(curAccount #accountList) + 1]

        
    waitandlogout()
        
    waitping()
        
    keyevent(VK_ESCAPE)
        
    waitping()
        
    connect (nextAccount.accountnextAccount.passwordnextAccount.character)
    end

    if $name == 'x' then
    loadsettings
    ('Knight Rotworm.xml')


    elseif 
    $name == 'y' then
    loadsettings
    ('testing ghost pal.xml')


    elseif 
    $name == 'z' then
    loadsettings
    ('Knight bz.xml')
    end 

    In every farming settiings i have check when in depo as action:
    PHP Code:
    --[XTDepositer -- 
    depotaction('mainbpdp''stackbp', {'b','raredpstackbpdp'})
    local minStamina  1460 -- In minutes

    if $stamina minStamina then
    loadsettings
    ('Reload.xml')
    end 
    In every farming settings i have persistent so cavebot starts running :
    PHP Code:
    auto(1000)
    setcavebot('on') -- sets cavebot on
    gotolabel
    ('diip''Depositing'
    Also have reconecter script i found on forum, i put as persistent and turn it on/off in cavebot action so it dont colide with Reloader:
    PHP Code:
    auto(10001500)
    --[[

        
    NameAuto Safe Reconnect Lite by BlakW 

        Version
    v5.1.0

    ]]--

    ----- 
    Safe Temple Settings -----

    --
    Temple NPCs:

    local templeNpcNames = {"Alia""Tyrias""Brewster""Rahkem""Kasmir""Amanda""Isimov""Yberius""Maealil""Quentin""Lynda""Lorietta""Prezil""Kjesse""Asralius"}

    --
    Temple Position Range (sqm):

    local templePositionRange 7

    ----- Engine [Do not edit unless you know what you are doing] -----

    if (
    $connected == false and $dead == false)

    then

            reconnect
    ()

            
    wait(6001800)

            
    pausewalking(10000)

            if ((
    $pzone == true) and (maround_ib(10falseunpack(templeNpcNames)) >= 1

    or (
    $pzone == true) and (islocationxyz_ib(32787312767templePositionRange)) 

    or (
    $pzone == true) and (islocationxyz_ib(32595327446templePositionRange)) 

    or (
    $pzone == true) and (islocationxyz_ib(33213324541templePositionRange)) 

    or (
    $pzone == true) and (islocationxyz_ib(32213311337templePositionRange)) 

    or (
    $pzone == true) and (islocationxyz_ib(330043149011templePositionRange)) 

    or (
    $pzone == true) and (islocationxyz_ib(326493192511templePositionRange)) 

    or (
    $pzone == true) and (islocationxyz_ib(33217318148templePositionRange)) 

    or (
    $pzone == true) and (islocationxyz_ib(32317328267templePositionRange)) 

    or (
    $pzone == true) and (islocationxyz_ib(33194328538templePositionRange)) 

    or (
    $pzone == true) and (islocationxyz_ib(32369322417templePositionRange)) 

    or (
    $pzone == true) and (islocationxyz_ib(32360317827templePositionRange)) 

    or (
    $pzone == true) and (islocationxyz_ib(32957320767templePositionRange)) 

    or (
    $pzone == true) and (islocationxyz_ib(32732316347templePositionRange))  

    or (
    $pzone == true) and (islocationxyz_ib(33447313239,  templePositionRange)))

            
    then

            wait
    (1500)

            
    closeclient()

            
    wait(1500)

            
    messagebox("Reconnect Message: Tibia client has been closed because character was inside a temple. This is to protect your character from being killed by other players.")

        
    end

        wait
    (1000015000)

    end 
    I have to start persistent scripts through editing files but it's ok.
    Thats it i hope it helps someone, sorry for spamming forum with requests and thx for everyone for helping me. All scripts i use are edited scripts i picked from this forum.
    Last edited by Longerion; 11-21-2014 at 03:07 PM.

 

 

Posting Permissions

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