Results 1 to 5 of 5

Thread: Freeing DtM oldschool 07 help

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

    Default Freeing DtM oldschool 07 help

    hey i m almost finished with a little script ive been working on but i m not sure about free dtm i would love some help


    Code:
    program Cow_Killer;
    
    {$I SRL/SRL.Simba}
    {$I SRL/SRL/Misc/Debug.Simba}
    {$I P07Include.Simba}
    
    
    
    var
      x, y: Integer;
      Test: Tstringarray;
    
    
    procedure DeclarePlayers;
      Begin
         HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
    
      Players[0].Name :='';
      Players[0].Pass :='';
      Players[0].Nick :='';
      Players[0].Active:=True;
    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;
      DeclarePlayers;
      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

    The script doesn't have DTM's, no need for it

    What you see is within the SRL Include, just ignore that.

    Creds to DannyRS for this wonderful sig!

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

    Default

    when i compile it works but then says Error: Exception: The bitmap[0] does not exist at line 664
    The following DTMs were not freed: [0, 1, 2, 3]

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

    Default

    Quote Originally Posted by pcap View Post
    when i compile it works but then says Error: Exception: The bitmap[0] does not exist at line 664
    The following DTMs were not freed: [0, 1, 2, 3]
    Your error is the first line.

    The second line is just a message.

    Don't know why u got the bitmap error though.

    Creds to DannyRS for this wonderful sig!

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

    Default

    o what could possibly make a bit map problem occur?

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
  •