Page 2 of 2 FirstFirst 12
Results 26 to 28 of 28

Thread: First Script Need Help

  1. #26
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    lol at all these posts saying it's not working because of the bitmaps, that might be the case, but it just might also be because of this:

    SCAR Code:
    begin
    repeat
      LoadBmps;
    until(false);
    SetupSRL;
    end.

    if you actually looked through the whole script, you'd see that.

    Since you are not autoing for runescape you do not need to call SetupSRL; including SRL gets you all the codes, calling SetupSRL; will give you some stuff like, skilllamp:= 'mining', and just other default options for you. You don't need runescape default options like those. But I guess you can leave it, then you won't need to set a mouse speed, so there might be a thing or two more actually. And, you wanna call SetupSRL; first if you do, so it'd be:

    SCAR Code:
    begin
    SetupSRL;
    repeat
      LoadBmps;
    until(false);
    end.

    next problem, why it's not doing anything. You are looping through one code, just LoadBmps; so all you are doing is loading and reloading the bmps over and over till you end the script. You only need to load the bmps once, so you should but it before the repeat, but after SetupSRL;, then what you want the script to do goes in the loop (between repeat/until). Also, you have an infinite loop, you should have the script end eventually.

    Main loop should now be:

    SCAR Code:
    begin
      SetupSRL;
      LoadBmps;
      repeat
        //codes here to do your task
      until(false);
    end.

    Then, before the script ends you wanna call your function Freebmps, I'd put it in a procedure called ScriptTerminate;, that procedure is always called when a script ends. Just copy and paste this above your main loop, and you don't need to call it:

    SCAR Code:
    procedure ScriptTerminate;
    begin
      FreeBmps;
    end;



    Well that's all I got for now to help you, if you need more help PM me or add me on MSN and just PM me telling me to get on.

  2. #27
    Join Date
    Sep 2009
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    now ive been improving it a little, still some work to do. yes i already took out srl totaly last night script loads faster and i figured out i dident need it lol. wont work at night yet, ill get to that, i wanted to take a break from all the bitmap making lol.

    made a little code to turn around so my "field of view" is in the other direction and i cant see the cows lol. when i do this the cows dissapear and i can click on the crap that i couldent before because those fat cows where in my way lol.

    thinking about whats the best way to do this? hmm before this?


    with an "else" command im not really good with them as you can see my script is a huge loop lol

  3. #28
    Join Date
    Sep 2009
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    whats this? randomly gives me the line for a bitmap and stops the script after a few mins

    [Runtime Error] : Exception: Can't create compatible DC in line 14

Page 2 of 2 FirstFirst 12

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
  •