Results 1 to 2 of 2

Thread: please help with cow killer script

  1. #1
    Join Date
    Feb 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default please help with cow killer script

    It compiles then attacks first cow but now its saying Error: Out Of Range at line 2138
    The following DTMs were not freed: [0, 1, 2, 3] and before it was saying something about a bit map error.

    Code:
    program Cow_Killer;
    
    {$I SRL/SRL.Simba}
    {$I SRL/SRL/Misc/Debug.Simba}
    {$I P07Include.Simba}
    
    
    
    var
      x, y: Integer;
      Test: Tstringarray;
    
    
    Procedure P07_DeclarePlayer;
    Begin
      P07_PlayerName:='username';
      P07_PlayerPass:='password';
    End;
    
    procedure Kill_Cow;
    Begin
      repeat
        If P07_FindObjCustom (x,y, ['ow'], [1848381, 11975615],3) then
          ClickMouse2(Mouse_left);
            Wait(4500)
             until(HPPercent <10);
    End;
    
    Procedure Eat_Food;
    Begin
      Repeat
        If (HPPercent <10) then
             if P07_FindObjcustom(x,y, ['rout'], [7238283], 2) then
            Clickmouse2(mouse_left);
      until(HPPercent > 50)
    End;
    
    begin
      ClearDebug;
      SetupP07Include;
      P07_DeclarePlayer;
      P07_LoginPlayer;
      Repeat
        Kill_Cow;
        Eat_Food;
      Until(false);
    
    end.

  2. #2
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    You're not solving your anti-leeches correctly.

    Simba Code:
    Procedure Eat_Food;
    Begin
      Repeat
        If (HPPercent <10) then
             if P07_FindObjcustom(x,y, ['rout'], [7238283], 2) then
            Clickmouse2(mouse_left);
      until(HPPercent > 50)
    End;

    Check this loop eg.

    Creds to DannyRS for this wonderful sig!

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
  •