Results 1 to 5 of 5

Thread: Help me with my first script -- Simple fisher

  1. #1
    Join Date
    Dec 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Help me with my first script -- Simple fisher

    Code:
    program LazyFlyFisherman;
    
    {$I SRL/SRL.Simba}
    {$I SRL/SRL/Misc/Debug.Simba}
    {$I P07Include.Simba}
    
    
    var
    x,y: Integer;
    Text: TStringArray;
    
    procedure FindFish;
    begin
     repeat
    If P07_FindObjCustom(x, y, ['spot', 'Fishing'], [14597535, 14597268, 15123625, 14398100, 15058085], 5) Then
          ClickMouse2(mouse_left);
    Wait(RandomRange(8000,10000))
     until(P07_InvFull)
    end;
    
    procedure DropFish;
    begin
     If P07_InvFull Then
      P07_DropAllExcept([1,2]);
     Wait(200 + Random(100))
    end;
    
    begin
    SetupP07Include
     repeat
     FindFish;
     DropFish;
     until(false);
    end.



    still getting error when i try to run script (it moves mouse to fishing spot then 07include pops up)

    Error: Exception: Font [P07UpChars] not found. at line 108
    The following DTMs were not freed: [0, 1]


    line 108

    WhiteT:=GetTextAtExWrap(8, 8, 80, 21, 0, 5, 1, 14541281, 55, 'P07UpChars');


    I've got 07include extracted at fonts & includes

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

    Default

    Quote Originally Posted by Falmar View Post
    Code:
    program LazyFlyFisherman;
    
    {$I SRL/SRL.Simba}
    {$I SRL/SRL/Misc/Debug.Simba}
    {$I P07Include.Simba}
    
    
    var
    x,y: Integer;
    Text: TStringArray;
    
    procedure FindFish;
    begin
     repeat
    If P07_FindObjCustom(x, y, ['spot', 'Fishing'], [14597535, 14597268, 15123625, 14398100, 15058085], 5) Then
          ClickMouse2(mouse_left);
    Wait(RandomRange(8000,10000))
     until(P07_InvFull)
    end;
    
    procedure DropFish;
    begin
     If P07_InvFull Then
      P07_DropAllExcept([1,2]);
     Wait(200 + Random(100))
    end;
    
    begin
    SetupP07Include
     repeat
     FindFish;
     DropFish;
     until(false);
    end.



    still getting error when i try to run script (it moves mouse to fishing spot then 07include pops up)

    Error: Exception: Font [P07UpChars] not found. at line 108
    The following DTMs were not freed: [0, 1]


    line 108

    WhiteT:=GetTextAtExWrap(8, 8, 80, 21, 0, 5, 1, 14541281, 55, 'P07UpChars');


    I've got 07include extracted at fonts & includes
    Did you make sure to restart simba after you extracted the fonts and are you sure you extracted the folder to the fonts folder?

  3. #3
    Join Date
    Dec 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    I think yes, doing it right now again just in case. will edit in 2mins
    @edit
    still same problem

    I'll paste a screen of my simba/fonts folder in a min

    by the way, where to place P07include? Just in Simba/Includes OR includes/srl\plugins etc

    Last edited by Falmar; 02-26-2013 at 05:33 PM.

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

    Default

    Quote Originally Posted by Falmar View Post
    I think yes, doing it right now again just in case. will edit in 2mins
    @edit
    still same problem

    I'll paste a screen of my simba/fonts folder in a min

    by the way, where to place P07include? Just in Simba/Includes OR includes/srl\plugins etc

    I think it's just simba/includes. Did you make sure to restart simba after you put the fonts there? Also are there actual files within the p07fonts folder?

  5. #5
    Join Date
    Dec 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Yes. Restarted twice. Everything is actual, got everything updated.

    @edit

    Dany just updated his 07include. It's working now
    Last edited by Falmar; 02-26-2013 at 06:06 PM.

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
  •