Results 1 to 7 of 7

Thread: Are my SRL files corrupt?

  1. #1
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Are my SRL files corrupt?

    I am currently learning to script and it's sending me insane with all the errors that I'm getting, but I got this message in the Simba debug box.

    Warning! You passed a wrong xe to a finder function: 515. The client has a width of -4260208, thus the xe is out of bounds. Setting the value to -4260209 (w-1) for now.

    Exception: Range check error at line 110 (This is the players SRL file)

    Simba Code:
    function LoggedIn: Boolean;
    var
      cx, cy: Integer;
    begin
      Result := FindColor(cx, cy, 16777215, 439, 491, 440, 492);
    end;

    Why is Simba telling me the width of the runescape client is -4260208?

    Also, when I use the function FindColorSpiralTolerance the mouse just stayed in the top left corner and unless there was a tree there nothing would happen. It seemed to work the same as

    Simba Code:
    MMouse(x,y,0,0);
    if UpText('ree') then
      Mouse(x, y, 0, 0);
    Last edited by trojan; 01-29-2011 at 11:53 AM.

  2. #2
    Join Date
    Oct 2010
    Location
    Under a bridge
    Posts
    648
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Are you calling SetupSRL; at the start ?
    Quote Originally Posted by DD on IRC
    wanted to troll the troll

  3. #3
    Join Date
    Nov 2008
    Location
    Melbourne, Australia
    Posts
    2,240
    Mentioned
    3 Post(s)
    Quoted
    11 Post(s)

    Default

    Did you focus simba on the runescape client?
    Click here to find out how to get full screen without members! | Click here to check out my Ultimate Bitmap Tutorial! Edited to work with Simba! |

  4. #4
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Okay, now I feel like such an idiot :P, I didn't realise you had to keep selecting runescape as the client every time you changed some code, one more thing. What is the best way to tell if your character is still chopping the tree these days?
    Thanks

  5. #5
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Reflection animations. I think there's a tutorial in the Reflection section somewhere.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  6. #6
    Join Date
    Nov 2008
    Location
    Melbourne, Australia
    Posts
    2,240
    Mentioned
    3 Post(s)
    Quoted
    11 Post(s)

    Default

    Yeah you could use reflection to do something like

    Simba Code:
    While (CharacterAnimating or CharacterMoving) do
          Begin
              Wait(1000);
              R_FindRandoms;
            If InvFull Then break;
          End;

    Thats something similar I use in my power chopper. In colour you could use a TPA then get the length from the TPA (bit more advanced) or have a timer set to say 5 seconds and if it doesnt get a log in 5 seconds then it finds a tree, and when it gets a log make it reset the timer.

    Just some suggestions
    Click here to find out how to get full screen without members! | Click here to check out my Ultimate Bitmap Tutorial! Edited to work with Simba! |

  7. #7
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks alot people you have been a great help I shall credit you, I am making a draynor oak banker for my first script, at the moment it uses DDTM to walk to the oaks then chops until not(characteranimating), chops using TPA's, then when inventory is full it walks back to the bank it should be a few more days until it is finished.
    rep for you both

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
  •