Page 1 of 2 12 LastLast
Results 1 to 25 of 30

Thread: BooIvy

  1. #1
    Join Date
    Mar 2012
    Location
    MW3
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default BooIvy



    Current features:
    -Falador only currently*
    -Antiban
    -uses all hatchets (will not equip sc hatchets)
    -currently does not get bird nests

    *MUST use falador unless you want to add camera angle changing yourself
    (script doesn't know to turn camera to face ivy)


    Setup:
    1)Put user and pass in the script
    2)Go to falador ivy
    3)Make sure your camera is facing north

    Upcoming features:
    -birds nests
    -proggy


    Very special thanks to m34tcode and Sockz for teaching me about pixelshift and adding it to the script <3


    Please leave feedback and PLEASE help me improve this script.
    This is my very first script and all help will be greatly appreciated!

    Note: v1.1 and 1.2 are the same except for the fact that 1.2 is... more stable
    Last edited by Bobby Boo; 04-14-2012 at 03:59 PM.

  2. #2
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    A script. I will read this and post some feed back =]

    great first script. does it work? im not in the area to test lol.


    A good feature to add, is detection on whether you are cutting or not. In the future, my PixelShiftOT function will be in the srl include, which will be perfect. For now, call isanimating =]

    to use it, make a box around your char, and wait while is animating returns true ;]
    Last edited by m34tcode; 04-14-2012 at 05:31 AM.
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  3. #3
    Join Date
    Mar 2012
    Location
    MW3
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It does work...

    the procedure to chop the ivy cuts until the uptext is not chop ivy, but.... the antiban occurs too frequently which moves the mouse off of the ivy and causes a constant looping of right click > chop ivy > antiban > repeat

    So, how do I reduce the frequency that my antiban occurs?

  4. #4
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    add a wait. Wait while cutting would be best

    Got to use pixelshift for that, since you get xp too slowly
    pixelshift tut ;]
    http://villavu.com/vb/showthread.php?t=74090
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  5. #5
    Join Date
    Mar 2012
    Location
    MW3
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you're gonna have to go more in depth with this pixelshift stuff <3

  6. #6
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    Added the tut. Im too tired to explain fully lol. 1:55 am here
    Last edited by m34tcode; 04-14-2012 at 05:59 AM.
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  7. #7
    Join Date
    Mar 2012
    Location
    MW3
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Late here too...
    I'll check into it thanks a bunch
    Will credit if I end up using pixelshift
    Script(s) by me:

  8. #8
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    Dont worry about credits. I didnt write any code ;]. Just learn all you can =]
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  9. #9
    Join Date
    Feb 2012
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you can try this instead

    Simba Code:
    repeat
          wait(400+random(250));
          AntiBan;
          Until not IsMoving
            FindNormalRandoms;

    It is still the pixelshift thing, just somebody has made the box around the player for you

    also for your antiban to occur less often try changing the integer in this line of code

    Simba Code:
    case Random(8) of

    Putting in a number higher than 8 will make it occur less frequently.

    Basically atm it generates a number from 0 to 8, if it generates 0 your hoverskill event thing will occur, if it generates 1 your pickupmouse event will occur and for 2 it changes the compass in your script. If it generates 3, 4 , 5, 6, 7 or 8 nothing will occur. So increasing the max number it can generate, in your case 8 atm, it will be less likely to pick 0, 1 or 2 and therefor less antiban.

    Hope you understand
    Previously known as sockz
    - Dwarven Stout buyer (F2P MONEYMAKER) http://villavu.com/forum/showthread....45#post1001045
    - G-Altar script, tons of failsafes. (Flawless for me) http://villavu.com/forum/showthread.php?t=79454

  10. #10
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    You didnt include the rest of the func so he wont understand;]

    What he is saying is this:

    case random(8) of
    0: DoSomthing;
    1: DoSomethingElse;
    2: DoAnotherThing
    3: DoThingsUnseen
    4: PerformSomeAntibanz

    etc. if random 8 in that case statement returns 3, then dothingsunseen will execute. if random reutrns 0 then do something will execute. It will executes whatever random returns. ;]

    also that has nothing to do with pixelshift so idk what you meant about that sockz o.O
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  11. #11
    Join Date
    Feb 2012
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by m34tcode View Post
    You didnt include the rest of the func so he wont understand;]

    What he is saying is this:

    case random(8) of
    0: DoSomthing;
    1: DoSomethingElse;
    2: DoAnotherThing
    3: DoThingsUnseen
    4: PerformSomeAntibanz

    etc. if random 8 in that case statement returns 3, then dothingsunseen will execute. if random reutrns 0 then do something will execute. It will executes whatever random returns. ;]

    also that has nothing to do with pixelshift so idk what you meant about that sockz o.O

    I'm bad at explaining stuff. Long story short, increase 8 :P

    And i dont know what your talking about

    Simba Code:
    function IsMoving: Boolean;
    begin
      Result := PixelShift(IntToBox(MMCX-30, MMCY-30, MMCX+30, MMCY+30), 500) > 200;
    end;
    Previously known as sockz
    - Dwarven Stout buyer (F2P MONEYMAKER) http://villavu.com/forum/showthread....45#post1001045
    - G-Altar script, tons of failsafes. (Flawless for me) http://villavu.com/forum/showthread.php?t=79454

  12. #12
    Join Date
    Mar 2012
    Location
    MW3
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sockz View Post
    you can try this instead

    Simba Code:
    repeat
          wait(400+random(250));
          AntiBan;
          Until not IsMoving
            FindNormalRandoms;

    It is still the pixelshift thing, just somebody has made the box around the player for you

    also for your antiban to occur less often try changing the integer in this line of code

    Simba Code:
    case Random(8) of

    Putting in a number higher than 8 will make it occur less frequently.

    Basically atm it generates a number from 0 to 8, if it generates 0 your hoverskill event thing will occur, if it generates 1 your pickupmouse event will occur and for 2 it changes the compass in your script. If it generates 3, 4 , 5, 6, 7 or 8 nothing will occur. So increasing the max number it can generate, in your case 8 atm, it will be less likely to pick 0, 1 or 2 and therefor less antiban.

    Hope you understand
    You actually explained it perfectly the first time <3

    And that first bit you gave me... I can use IsMoving rather than setting up some pixelshift crap?
    Script(s) by me:

  13. #13
    Join Date
    Feb 2012
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Bobby Boo View Post
    You actually explained it perfectly the first time <3

    And that first bit you gave me... I can use IsMoving rather than setting up some pixelshift crap?
    Haha pixelshift is a very useful function but yeah, I reckon isMoving would do. It creates a box around the player and detects if its moving for you. I think it will detect woodcutting movements but your gonna have to test it
    Previously known as sockz
    - Dwarven Stout buyer (F2P MONEYMAKER) http://villavu.com/forum/showthread....45#post1001045
    - G-Altar script, tons of failsafes. (Flawless for me) http://villavu.com/forum/showthread.php?t=79454

  14. #14
    Join Date
    Mar 2012
    Location
    MW3
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    function IsMoving: Boolean;
    begin
      Result := PixelShift(IntToBox(MMCX-30, MMCY-30, MMCX+30, MMCY+30), 500) > 200;
    end;
    I guess I have to add this in.. but can it go anywhere or do I need to plug it into what I have

    And also.. what do I put in the main loop for this?
    Script(s) by me:

  15. #15
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Goodluck with this If you need any help hit me up

  16. #16
    Join Date
    Feb 2012
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Bobby Boo View Post
    Code:
    function IsMoving: Boolean;
    begin
      Result := PixelShift(IntToBox(MMCX-30, MMCY-30, MMCX+30, MMCY+30), 500) > 200;
    end;
    I guess I have to add this in.. but can it go anywhere or do I need to plug it into what I have

    And also.. what do I put in the main loop for this?
    Thats straight out of the simba include, I was just showing that it does use pixelshift.

    If you use IsMoving how i said in my first post it should be right
    Previously known as sockz
    - Dwarven Stout buyer (F2P MONEYMAKER) http://villavu.com/forum/showthread....45#post1001045
    - G-Altar script, tons of failsafes. (Flawless for me) http://villavu.com/forum/showthread.php?t=79454

  17. #17
    Join Date
    Mar 2012
    Location
    MW3
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by m34tcode View Post



    also that has nothing to do with pixelshift so idk what you meant about that sockz o.O
    Quote Originally Posted by Sockz View Post

    And i dont know what your talking about
    Makes me weary about using the first way
    Script(s) by me:

  18. #18
    Join Date
    Feb 2012
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Bobby Boo View Post
    Makes me weary about using the first way
    I posted the function to show it does use pixelshift :P

    Anyway, their is nothing better than testing yourself, hows the script going?
    Previously known as sockz
    - Dwarven Stout buyer (F2P MONEYMAKER) http://villavu.com/forum/showthread....45#post1001045
    - G-Altar script, tons of failsafes. (Flawless for me) http://villavu.com/forum/showthread.php?t=79454

  19. #19
    Join Date
    Mar 2012
    Location
    MW3
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I put in the IsMoving thing and it still checks for the uptext...?

    E: but antiban works much better now

    E2: definitely looks suspicious the way it moves around all the time... idk what to do <3
    Last edited by Bobby Boo; 04-14-2012 at 01:54 PM.
    Script(s) by me:

  20. #20
    Join Date
    Feb 2012
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Post the new code, I'll take a look
    Previously known as sockz
    - Dwarven Stout buyer (F2P MONEYMAKER) http://villavu.com/forum/showthread....45#post1001045
    - G-Altar script, tons of failsafes. (Flawless for me) http://villavu.com/forum/showthread.php?t=79454

  21. #21
    Join Date
    Mar 2012
    Location
    MW3
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'll post the new and if you fix it i'll credit <3

    Code:
           /////////////////////////////////////
            /////////////~~~~Boo~~~~/////////////
            ////////////~~~~Ivy~~~~//////////////
            /////////////////////////////////////
    program BooIvy;
    {$DEFINE SMART}
    {$i srl/srl.simba}
    
    Procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
    
      Players[0].Name :='';  //username here
      Players[0].Pass :='';  //password here
      Players[0].Active:=True;
    end;
    
    procedure AntiBan;
    begin
      if(not(LoggedIn))then
      Exit;
      FindNormalRandoms;
      case Random(50) of
       0:
       begin
         HoverSkill('Woodcutting', false);
         wait(2001+Random(999));
       end;
       1: PickUpMouse;
       2:
       begin
         MakeCompass('N');
         wait(100+random(150));
         FindNormalRandoms;
       end;
      end;
    end;
    
    procedure ChopIvy;
    var x, y: integer;
    begin
        if FindObj(x, y, 'hop Iv', 3629644, 20) then
        begin
          Mouse(x, y, 2, 2, false);
          ChooseOption('hop Iv');
        end;
          repeat
          wait(400+random(250));
          AntiBan;
          Until not IsMoving;
            FindNormalRandoms;
    end;
    
    begin
      SetUpSRL;
      ActivateClient;
      DeclarePlayers;
      LoginPlayer;
      Repeat
        ChopIvy;
        Until (False);
    end.
    Script(s) by me:

  22. #22
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by Sockz View Post
    you can try this instead

    Simba Code:
    repeat
    wait(400+random(250));
    AntiBan;
    Until not IsMoving
    FindNormalRandoms;


    It is still the pixelshift thing, just somebody has made the box around the player for you

    also for your antiban to occur less often try changing the integer in this line of code

    Simba Code:
    case Random(8) of


    Putting in a number higher than 8 will make it occur less frequently.

    Basically atm it generates a number from 0 to 8, if it generates 0 your hoverskill event thing will occur, if it generates 1 your pickupmouse event will occur and for 2 it changes the compass in your script. If it generates 3, 4 , 5, 6, 7 or 8 nothing will occur. So increasing the max number it can generate, in your case 8 atm, it will be less likely to pick 0, 1 or 2 and therefor less antiban.

    Hope you understand
    I didnt realize you were referring to ismoving. Ismoving does not detect player movement. It detects if you are walking or not. It uses pixelshift on the minimap, not the main screen. You must create a box around your char, and calc the pixelshift in that ;]
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  23. #23
    Join Date
    Feb 2012
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by m34tcode View Post
    I didnt realize you were referring to ismoving. Ismoving does not detect player movement. It detects if you are walking or not. It uses pixelshift on the minimap, not the main screen. You must create a box around your char, and calc the pixelshift in that ;]

    Ohh :P that clears so much up. Thats why it didn't work, I guess i learnt something out of this too

    here is an example of what m34tcode suggested

    Simba Code:
    procedure ChopIvy;
    var x, y: integer;
    begin
        if FindObj(x, y, 'hop Iv', 3629644, 20) then
        begin
          Mouse(x, y, 2, 2, false);
          ChooseOption('hop Iv');
        end;
          repeat
          wait(400+random(250));
          AntiBan;
          Until (PixelShift(IntToBox(237, 150, 293, 208), 1000) < 600)    ;
          FindNormalRandoms;
    end;

    This is my understanding of this pixelshift function anyways -
    you declare a box i.e. (237, 150, 293, 208) 237,150 being the top left x and y co-ords and 293, 208 being the bottom right. Use the colour picking tool to make this box.

    Basically it checks how much the pixels change in the box you made over a period of time, in this case i set it to 1000(ms).

    You can play around with that line until it works for you.
    Previously known as sockz
    - Dwarven Stout buyer (F2P MONEYMAKER) http://villavu.com/forum/showthread....45#post1001045
    - G-Altar script, tons of failsafes. (Flawless for me) http://villavu.com/forum/showthread.php?t=79454

  24. #24
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    600 may be right. Sockz function is exactly what i meant.unindent the repeat and until, and place find normal randoms in that loop ;]
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  25. #25
    Join Date
    Mar 2012
    Location
    MW3
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    600 works great... i'll give credits to both of you
    Thank you very very much for your help
    Script(s) by me:

Page 1 of 2 12 LastLast

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
  •