Results 1 to 9 of 9

Thread: DOs and DONT's for a Better Scripting

  1. #1
    Normal User
    Join Date
    Jan 2013
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    4

    DOs and DONT's for a Better Scripting

    Hello everyone!
    I've seen many people concerned about botting and as i dont have much time to script myself i downloaded some free scripts. In the past month i've been using this iBot i saw many common mistakes that can be avoided to have both a better botting experience and that could help you be a better scripter/programmer.

    In this thread i'll share some of my thoughts, i hope they come handy!.

  2. #2
    Normal User
    Join Date
    Jan 2013
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    4

    [Common Mistakes]

    Common Mistakes

    1)Waypoints: Dont use Stand waypoints for everything! Stand waypoints force the character to step exactly the square you made the waypoint. If you're going to the hunting spot or inside of it, use Walk/Nodes. This waypoints are more "randomizable" and if another character steps right in the place where you made the waypoint it will skip to the next one (contrary to the stand waypoint in which your character will wait untill he can reach that exact position).

    2)Refill Nuthing: This is a common error from unexperienced scripters and often seen in low level scripts. Withdrawing 0 gold or buying 0 potions. Use if statements to check if you have to refill or not.
    Example:
    PHP Code:
    say("hi")
    wait(900,1500)
    npcsay("deposit all")
    wait(800,1200)
    npcsay("yes")
    //Do i have to withdraw money?
    if cash 0 then
        
    //yes i Do
        
    npcsay("withdraw "..cash)
        
    wait(800,1200)
        
    gotolabel("refillPotions")
    else
        
    //Nah! Let's just go back to hunt
        
    gotolabel("backToHunt")
    end 
    By doing this kind of easy questions you will make your script more efficient and less detectable (no one will ever withdraw 0 gold).

    3) Extremely complicated Setups: Setups should be clear and straight forward. So this are some things you should avoid doing.
    a) creating an action to change the destination of the loot for the name of the backpack. It's always better to use numbers in case inside one backpack you have another of a different color.
    b) using complicated variable notation. avoid things like
    PHP Code:
    thenameofthepotion 'mana potion' 
    NAMEYOUR_POT "mana Potion" 
    use short names that best describe the variable and write using camel case!
    PHP Code:
    manaPotion "Strong Mana Potion"
    healthPotion "Ultimate Healing Potion" 
    are more readable. even separating with "_" like Mana_Potion.

  3. #3
    Normal User
    Join Date
    Jan 2013
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    4
    Reserved

  4. #4
    Normal User
    Join Date
    Jan 2013
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    4
    Reserved x2

  5. #5
    Normal User
    Join Date
    Jan 2013
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    4
    Reserved x3

  6. #6
    Premium User seabraz's Avatar
    Join Date
    Jan 2013
    Location
    CWB
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    4
    good idea brother, hope this helps the Ibot community.

  7. #7
    Normal User
    Join Date
    Aug 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Good idea for the comunity, just gave u rep. For your initiative. ^^ Keep up

  8. #8
    Focus Group bofing's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    664
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    52 Post(s)
    Reputation
    95
    Rep Power
    6
    Quote Originally Posted by Wismil View Post
    [SIZE=5]

    1)Waypoints: Dont use Stand waypoints for everything! Stand waypoints force the character to step exactly the square you made the waypoint. If you're going to the hunting spot or inside of it, use Walk/Nodes. This waypoints are more "randomizable" and if another character steps right in the place where you made the waypoint it will skip to the next one (contrary to the stand waypoint in which your character will wait untill he can reach that exact position).
    About this part you are a little bit wrong. With new randomize feature you can radomize your stands wpt so the character will not stand on the same exact point each time. If another character steps right in the place where you made the waypoint it will skip your stand wpt, your character will not wait untill the possition is free. Using stands inside the hunting area is a same good way of scripts as using nodes/walks, you just need to know how to use your stands waypoints to make the bot walk more like a humman, for example when you drop wpt, drop it after the monster respawn to avoid getting your char moving back and forward. I prefer to use stands instead of nodes, a lot ppl try to convice me it's a wrong way, I'm sure my scripts walks much better and more human than most of these with nodes/walks.
    Last edited by bofing; 03-25-2013 at 12:59 PM.

  9. #9
    Normal User Matfly's Avatar
    Join Date
    May 2012
    Location
    Brazil
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Great idea dude. Loved it.
    Last edited by Matfly; 03-25-2013 at 09:35 PM.
    Mat.

Tags for this Thread

Posting Permissions

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