Results 1 to 5 of 5

Thread: [Problem] Convert some hotkey scripts from neo to ibot

  1. #1
    Normal User d3nnis's Avatar
    Join Date
    Jun 2012
    Location
    Germany
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5

    [Problem] Convert some hotkey scripts from neo to ibot

    Need help in converting some things.
    If I turn these scripts on I always get errors in console.

    P.s. I have to say that I was retired and I work with iBot since yesterday and it's even long time ago when I worked with Neo.

    Safe Healer

    Code:
    -- [[ INIT START ]] --
        local monstersetup = {monsterstoconsider = {'wyrm', 'energy elemental'}, minimummonsters = 6}
        local playersetup = {checkplayers = false, safelist = {'Bubble', 'Eternal Oblivion'}}
        table.lower(monstersetup.monsterstoconsider)
        table.lower(playersetup.safelist)
    -- [[ INIT END ]] --
    
    if (maround(condition,table.unpack(monstersetup.monsterstoconsider)) >= monstersetup.minimummonsters or (paround(6)) > 0) then
    		setsettings('Healer//Rules//Exura Ico//HealthRange', '70 to 90 %')
    		setsettings('Healer//Rules//Great Health Potion//HealthRange', '40 to 70 %')
    		setsettings('Healer//Rules//Ultimate Health Potion//HealthRange', '0 to 39 %')
    	else
    		setsettings('Healer//Rules//Exura Ico//HealthRange', '0 to 80 %')
    		setsettings('Healer//Rules//Great Health Potion//HealthRange', '30 to 50 %')
    		setsettings('Healer//Rules7/Ultimate Health Potion//HealthRange', '0 to 29 %')
    end
    Randomize
    Code:
    setsettings('Cavebot/Looting/OpenBodyTime', math.max(math.floor(math.random($pingaverage * 1.6, $pingaverage * 1.9)), 600))
    setsettings('Cavebot/Pathfinding/MapWalkDistance', math.random(15, 30) .. ' to ' .. math.random(40, 55))
    Anti-KS

    Code:
    CREATURES = {"Wyrm","Energy Elemental"}
    
    
    for i = 1, #CREATURES do
        if (paround(7,false) > 0) then
            if (getsettings("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\MustAttackMe") == "no") then
                setsettings("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\MustAttackMe","yes")
            end
        elseif (paround(7,false) == 0) then
            if (getsettings("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\MustAttackMe") == "yes") then
                setsettings("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\MustAttackMe","no")
            end
        end
    end
    Last edited by d3nnis; 11-12-2012 at 05:58 PM.

  2. #2
    Normal User d3nnis's Avatar
    Join Date
    Jun 2012
    Location
    Germany
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5
    Safe Healer fixed

    Code:
    -- [[ INIT START ]] --
        local monstersetup = {monsterstoconsider = {'wyrm', 'energy elemental'}, minimummonsters = 6}
        local playersetup = {checkplayers = false, safelist = {'Bubble', 'Eternal Oblivion'}}
    -- [[ INIT END ]] --
    
    if (maround(condition,unpack(monstersetup.monsterstoconsider)) >= monstersetup.minimummonsters or (paround(6)) > 0) then
    		setsettings('Settings\\Healer\\Rules\\Exura Ico\\HealthRange', '70 to 90 %')
    		setsettings('Settings\\Healer\\Rules\\Ultimate Health Potion\\HealthRange', '0 to 60 %')
    	else
    		setsettings('Settings\\Healer\\Rules\\Exura Ico\\HealthRange', '0 to 80 %')
    		setsettings('Settings\\Healer\\Rules\\Ultimate Health Potion\\HealthRange', '0 to 40 %')
    end
    Randomize fixed - pingaverage doesn't exist on iBot

    Code:
    -- [[ Cavebot/Pathfinding ]] --
    setsettings('Cavebot\\Pathfinding\\MapWalkDistance', math.random(15, 30) .. ' to ' .. math.random(40, 55))
    setsettings("Settings\\CaveBot\\Pathfinding\\MapWalkDistance", math.random(15, 30) .. " to " .. math.random(40, 55))
    
    -- [[ Input/Keyboard ]] --
    setsettings('Input\\Keyboard\\PressWaitTime', math.random(60, 90) .. ' to ' .. math.random(100, 130))
    setsettings('Input\\Keyboard\\PressWaitTime', math.random(110, 140) .. ' to ' .. math.random(150, 180))
    
    -- [[ Input/Mouse ]] --
    setsettings('Input\\Mouse\\MoveSpeed', math.random(6, 9))
    setsettings('Input\\Mouse\\ClickWaitTime', math.random(20, 35) .. ' to ' .. math.random(60, 80))
    Thanks to sirmate!!

  3. #3
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Thats nice, but i dont see why these actions are even required. they hardly do anything.

  4. #4
    Normal User d3nnis's Avatar
    Join Date
    Jun 2012
    Location
    Germany
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5
    Quote Originally Posted by pink_panther View Post
    Thats nice, but i dont see why these actions are even required. they hardly do anything.
    If other people dont need them, they where made for me cuz I need them.

  5. #5
    Normal User
    Join Date
    Oct 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Hmmm I think I cant help you

Posting Permissions

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