Results 1 to 19 of 19

Thread: [07] Troll Cow Troller

  1. #1
    Join Date
    Feb 2013
    Posts
    465
    Mentioned
    6 Post(s)
    Quoted
    221 Post(s)

    Default [07] Troll Cow Troller

    This script trolls cows anywhere just start the script up next to cows

    NB: there is super awesome hidden ANTI_LEACH, yes the script will basically run as it is. but with changes to less than 8 lines of code the script will run for 5+hours. Hope you enjoy.

    Code:
    program TrollFighter;
    {$DEFINE SMART8}
    {$i Srl/Srl.simba}
    
    {$I P07Include.Simba}
    
    var
    foodSlot,x,y:integer;
    
    Procedure P07_DeclarePlayer;
    Begin
    P07_PlayerName:='';
    P07_PlayerPass:='';
    End;
    
    Function getHp:double;
    Var
      green,red:TpointArray;
      x,y:Integer;
    
    Begin
     FindColorsTolerance(green,65280,240,70,275,170,0);
     FindColorsTolerance(red,255,240,70,275,170,0);
     If (length(red)>0) And (length(green)>0) Then
    Tesult:=100*length(green)/(length(green)+length(red))
    Else Result:=100;
    //writeln(result);
    End;
    
    
    Function inCombat:Boolean;
    Var x,y:integer;
    Begin
    Result:=findColorTolerance(x,y,65280,240,70,275,170,5);
    End;
    
    Procedure eatFood;
    Var i:integer;
    Begin
      Repeat
      Inc(foodslot);
      Writeln('trying to eat foods troll style');
      Wait(300);
      Until P07_UseInvItem(foodslot,'Eat') Or (foodslot>28);
      //NB this procedure ^^ is an easily modified version of P07_UseInvItem()
    end;
    
    procedure fightcow;
    var x,y:integer;
    begin
      If P07_FindObjCustom(x, y, ['Attack', 'Cow,Monkey'], [4343892,4740971,5397094], 5) Then
        Begin
       // wait(50);
        ClickMouse2(MOUSE_LEFT);
        Writeln('waiting for hp bar');
        WaitFunc(@incombat ,50,2000)
        Writeln('waiting for hp bar to-go, we''re fighting now');
        Repeat
          If getHP<20 Then eatFood;
          Wait(200);
        Until NOT inCombat;
      end;
    end;
    
    begin
      SRL_SixHourFix := True;
      SMART_FixSpeed := True;
    
      foodSlot:=0;
      SetUpSRL;
      P07_DeclarePlayer;
      SetupP07Include;
      //P07_LoginPlayer;
    
      Writeln('starting script');
      P07_MakeCameraAngleHigh;
    
      Repeat
        fightCow;
        //mysteryfunctionwashere?iwonderwhatitdid.
        Wait(1000000);
      until false;
    end.

    Um, also I'll probably release an actual non troll version of this in a few days, probably adding the other half of the code that handles more monsters, stops it attacking other peoples monsters etc oh and also the combat random detection+avoidance. stay tuned.

  2. #2
    Join Date
    Oct 2008
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    [Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
    Compiling failed.

    helppp

  3. #3
    Join Date
    Nov 2011
    Posts
    171
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    err i dont know eat food maybe lol gratz on release
    Last edited by ajg0001991; 02-28-2013 at 03:43 AM.

  4. #4
    Join Date
    Oct 2010
    Posts
    180
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    more errors and errors!

  5. #5
    Join Date
    Feb 2013
    Posts
    465
    Mentioned
    6 Post(s)
    Quoted
    221 Post(s)

    Default

    @iautoi your error is caused by smart errors. All the other errors are part of the anti leach.

  6. #6
    Join Date
    Feb 2013
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    [Error] D:\Simba\Includes\SRL\SRL\misc\SmartParams.Simba(7 8:8): Unknown identifier 'RSReady' at line 77
    wutt?

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

    Default

    Your standards are slightly off, at work so I haven't tried it but good job on the release

  8. #8
    Join Date
    Feb 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What does it do?

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

    Default

    I'm getting the "Unkown identifier 'RSReady' at line 77" error. Can't figure out what this is, as it's a SmartParams error.

  10. #10
    Join Date
    Mar 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Anti-Leech is no longer allowed.

  11. #11
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Fade Out View Post
    Anti-Leech is no longer allowed.
    No he said it is a hidden bonus and it is REALLY EASY to fix it

  12. #12
    Join Date
    Apr 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by hoodz View Post
    No he said it is a hidden bonus and it is REALLY EASY to fix it
    i'm not quite new but my account is...you're correct when you say its an easy fix hahaha

  13. #13
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Quote Originally Posted by wthomas View Post
    This script trolls cows anywhere just start the script up next to cows

    NB: there is super awesome hidden ANTI_LEACH, yes the script will basically run as it is. but with changes to less than 8 lines of code the script will run for 5+hours. Hope you enjoy.
    A)I honestly expected the... bonus script edit to involve using CTRL+F on "ANTI_LEACH". Slightly disappointed it doesn't
    2)I like your cow monkey.
    III)I hate lists.

    Good luck un-trolling this up lol

  14. #14
    Join Date
    Jan 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    nice

  15. #15
    Join Date
    Jul 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    [Error] (26:1): Unknown identifier 'Tesult' at line 25
    Compiling failed.


    help me please i dont understand :[

  16. #16
    Join Date
    Jul 2012
    Posts
    437
    Mentioned
    10 Post(s)
    Quoted
    165 Post(s)

    Default

    Quote Originally Posted by foofer1 View Post
    [Error] (26:1): Unknown identifier 'Tesult' at line 25
    Compiling failed.


    help me please i dont understand :[
    It looks like that error is the 'Result' of a misspelling

  17. #17
    Join Date
    Jul 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by tealc View Post
    It looks like that error is the 'Result' of a misspelling

    whats about this? //NB this procedure ^^ is an easily modified version of P07_UseInvItem()


    [Error] (45:9): Unknown identifier 'P07_UseInvItem' at line 44
    Compiling failed.
    Last edited by foofer1; 07-22-2013 at 12:04 AM.

  18. #18
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

    Default

    I'm on my phone, but it sounds like this still has anti leach? Can anyone confirm? If so ill move it when I get to comp.

  19. #19
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Ashaman88 View Post
    I'm on my phone, but it sounds like this still has anti leach? Can anyone confirm? If so ill move it when I get to comp.
    I can confirm.

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
  •