Results 1 to 3 of 3

Thread: Redwood tree chopper

  1. #1
    Join Date
    Jul 2016
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Redwood tree chopper

    Just made my first script and i'd like to share it with you all. It has no antiban but I only made it to work and thats what it does(most of the time).

    "Features"
    *Banks
    *Cuts the tree

    Wanted to post a youtube link how it works but i dont have enough posts made.
    youtube.com/watch?v=2wARnJ_veSk&feature=youtu.be


    RedwoodChopper.simbaRedwoodChopper.simba
    Last edited by My Original Nickname; 03-08-2017 at 08:20 PM.

  2. #2
    Join Date
    Dec 2011
    Posts
    193
    Mentioned
    5 Post(s)
    Quoted
    51 Post(s)

    Default

    Congrats on your first script

    Looking at the video, the script will benefit greatly from a quick uptext check before clicking to cut the tree. I'm not familiar with the reflection include but an uptext function is undoubtedly in there, I've used the AeroLib one below which is color but works flawlessly.

    Simba Code:
    Procedure CutTree;
    begin
      CoolNumber += 1;
      Writeln(CoolNumber);

      if SomeObject.Find(objGame, 29668, 7) then
      begin
        Reflect.Mouse.Move(SomeObject.GetMSPoint, 2, 2);
        if waitUpTextMulti(['Cut','Red','wood'], 800); then
          Reflect.Mouse.Click(Mouse_Left);
      end else
      begin
        SomeObject.Find(objGame, 29670, 7);
        Reflect.Mouse.Move(SomeObject.GetMSPoint, 2, 2);
        if waitUpTextMulti(['Cut','Red','wood'], 800); then
          Reflect.Mouse.Click(Mouse_Left);
      end;

      While not ThePlayer.IsAnimating do
        if CheckInv=True then GoBank;
        Wait(3500);

      if CoolNumber > 2 then RotateScreen;
        CutTree;
    end;

    If you have any plans to continue this script, two easy additions that can reduce the bot-like behaviour a lot would be:
    - Change some procedures to functions that return a boolean of whether it was successful (such as WalkToTrees) then only execute the next bit if the previous was true. ex: if WalkToTrees then CutTree;
    - Change the static wait timers to instead wait for a condition to be true (with a time out) and avoid using waits without randomness.

    It's always nice when someones first post is a script, it's someone who can find their own answers haha

    OSRS Color Scripts: Borland_Salamanders | Borland_Iron_Ores
    Utilities & Snippets: [Color] OSBuddy Item Looting

  3. #3
    Join Date
    Jul 2016
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Borland View Post
    Congrats on your first script
    It's always nice when someones first post is a script, it's someone who can find their own answers haha
    Thanks a lot for the super advice! I've only been learning for about 3 days now and the first few were an insane struggle. I'll be sure to use your advice when making new scripts or if I decide to edit this one.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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