Results 1 to 4 of 4

Thread: How to make the bot move or do anything?

  1. #1
    Normal User
    Join Date
    Mar 2013
    Location
    SWE!
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    How to make the bot move or do anything?

    I have a bunch of nodes, actions etc cavebot -> waypoints but it doesn't do anything.

    First waypoint is this action:
    Nothing happens with this waypoint because ALL healer rules are still disabled after i start bot.

    if vocation != 1 then -- If char is not a knight
    setsettings("Settings\\Healer\\Rules\\Exura\\Enabled","yes")
    setsettings("Settings\\Healer\\Rules\\Mana Waste\\Enabled","yes")
    else
    setsettings("Settings\\Healer\\Rules\\Exura\\Enabled","yes")
    setsettings("Settings\\Healer\\Rules\\Mana Waste for Knight\\Enabled","yes")
    end

    After this waypoint i have a node outside the depot but the bot never goes to this node or any other nodes after that node.

    What's wrong?
    I have cavebot enabled.

  2. #2
    Normal User Onehit's Avatar
    Join Date
    Mar 2012
    Location
    Cwb
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    117
    Rep Power
    7
    Ok friend, first of all lets make this action clear. It's not "Enabl ed" it's "Enabled" in the second and fifth line.

    Second, in the part of vocation check it depends on what it's on your setup.

    Make it like this

    PHP Code:
    if vocation then -- If char is not a knight
    setsettings
    ("Settings\\Healer\\Rules\\Exura\\Enabled","yes")
    setsettings("Settings\\Healer\\Rules\\Mana Waste\\Enabled","yes")
    else 
    setsettings("Settings\\Healer\\Rules\\Exura\\Enabled","yes")
    setsettings("Settings\\Healer\\Rules\\Mana Waste for Knight\\Enabled","yes")
    end 

    And on the setup check if it's

    PHP Code:
    vocation true -- True if the char is not a knight 

    NÃO RESPONDO DUVIDAS POR PM
    Brasil, aqui você é o palhaço.

  3. #3
    Normal User
    Join Date
    Mar 2013
    Location
    SWE!
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Thanks man! that setup think made it work!
    And the typo on enabled was just something that happened when i copy pasted.. formatting or something.

    Bot works now!

  4. #4
    Normal User Onehit's Avatar
    Join Date
    Mar 2012
    Location
    Cwb
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    117
    Rep Power
    7
    You welcome.

    NÃO RESPONDO DUVIDAS POR PM
    Brasil, aqui você é o palhaço.

Posting Permissions

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