Results 1 to 10 of 10

Thread: need help, script compiles right but work?

  1. #1
    Join Date
    Feb 2008
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default need help, script compiles right but work?

    i added some features to a basic script i wrote, and it compiled right but doesnt actualy start mining(its a mining script).

    heres the link to find the script.
    http://www.villavu.com/forum/showthread.php?t=25752

    if someone could tell me what i did wrong when i added the features?

    if any one has any idea's just post them.

    Thank You.
    - Shadowrec0n

  2. #2
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    Have you tried removing the FindFastRandoms function as that is no longer needed in scripts.

    DR

    EDIT: you also don't have a main loop, try compiling it with these edits

    SCAR Code:
    {///.-Shady-Shadows Power Miner-. //
    By-
    ShadowRecon
    Edited By-
    Matlott, Rasta Magician
    Credits-
    Thanks To Malott For Help
    TuT Iland

    What it does
    * power mines any ore you set to mine

    What it needs work on
    * Anti-Ban isnt the greatest, but its better than none.
    * Anti-Random isnt the greatest either, but better than none.

    My First Script!

    INSTRUCTIONS:
    Use the eye droper to pick color of rock, then if pick is weilded change
    line 127 to (1 to 28) or the autoer will drop pick-axe. HAVE FUN!

    }


    program ShadowPwrMnr;
    {.include SRL/SRL.scar}

    var
    i,k,x,y,m: Integer;

    const
    RockColor = 000000;//Change to the Color of the Rock



    //////////////////////////////DONT NOT EDIT BELOW!/////////////////////////////
    procedure AntiBan;
    begin
      if(not(LoggedIn))then
      Exit;
      case Random(6) of
        0: begin
             HoverSkill('Mining', false);
             wait(2000+random(1000));
             GameTab(4);
           end;

        1: begin
             HoverSkill('Cooking', false);
             wait(2000+random(1000));
             GameTab(4);
           end;

        2: PickUpMouse;

        3: begin
             GameTab(1 + Random(12));
             wait(1000+random(1000));
             GameTab(4);
           end;

        4: begin
             case random(4) of
               0: TypeSend('mining lvls?');

               1: TypeSend('combat levels');

               2: TypeSend('Cooking lvls');

               3: TypeSend('range levels');
             end;
           end;

        5: MouseBox(MSX1,MMY1,MMX2,MMY2,3);
      end;
    end;



    ///////////////////////////////////////////////////////////////////////////

    procedure FindRandoms;
    begin
      FindNormalRandoms;
    end;


    ///////////////////////////////////////////////////////////////////////////

    procedure AutoMining;
     begin
     if (not(LoggedIn)) then Exit;
     setupsrl;
     k:= 0;
     repeat
      if invfull then
        begin
         for m := 2 to 28 do  //if axe is weilded
         DropItem(m);           //change to (1 to 28)
        end;
      if (FindColor(x,y,RockColor,4,4,514,337)) then
        begin
         mmouse(x,y,1,1)
          Wait(100);
           if IsUpTextMulti('ine rock', 'Mine', 'rock') then
            mouse(x,y,1,1,true);
             wait(3000+random(500))
      end else
       wait(2000);
    until(k=28);
    end;

     begin
       if (not(LoggedIn)) then
       Exit;
       repeat
         AutoMining;
         Antiban;
         FindRandoms;
      end.

  3. #3
    Join Date
    Jan 2008
    Location
    Alberta
    Posts
    727
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try adding a main loop like dude_richard said. Also when looking for text don't look for capitals.

    so change from this:
    SCAR Code:
    if IsUpTextMulti('ine rock', 'Mine', 'rock') then

    To:
    SCAR Code:
    if IsUpTextMulti('ine rock', 'ine', 'rock') then


    I'm not sure if the "rock" in "Mine rocks" is capital or not, if it is then change the rock's to "ock".

    Also, dude_richard, don't forget to call DeclarePlayers; in the main loop at the end before the repeat so with dude_richard's main loop go like this:

    SCAR Code:
    begin
       if (not(LoggedIn)) then
       Exit;
       DeclarePlayers;
       repeat
         AutoMining;
         Antiban;
         FindRandoms;
      end.

  4. #4
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    Oh yeah, because without the declare players SCAR doesn't know what the players nick is and therefore can't actually find any randoms

  5. #5
    Join Date
    Feb 2008
    Posts
    0
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I have the same problem:/

  6. #6
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    Quote Originally Posted by metalmax View Post
    I have the same problem:/
    Then take this in

  7. #7
    Join Date
    Feb 2007
    Location
    EST (US East Coast)
    Posts
    250
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by dude_richard View Post
    Oh yeah, because without the declare players SCAR doesn't know what the players nick is and therefore can't actually find any randoms
    Actually if you try to call any procedure that uses the nick or player names without declaring your players, it will give you an out of range error
    Temporarily inactive.

  8. #8
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by ducels View Post
    Actually if you try to call any procedure that uses the nick or player names without declaring your players, it will give you an out of range error
    That's correct.
    [OffTopic]You live in EST, Est is actully Estonia. ( i know u don't mean that, but made me confused by looking at it. )
    Eerik.

  9. #9
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    Quote Originally Posted by ducels View Post
    Actually if you try to call any procedure that uses the nick or player names without declaring your players, it will give you an out of range error
    This is what i love about being new to stuff, you are always learning new stuff

    Thanks for pointing this out to me

  10. #10
    Join Date
    Dec 2007
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    And as a suggestion you should check if there is actually any people around you (white dots on MM) before asking for their levels. Talking to Jagex while autoing is not always a good idea.
    This sentence is false.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Function compiles, But nothing happens?
    By Macrosoft in forum OSR Help
    Replies: 19
    Last Post: 08-14-2008, 12:35 AM
  2. TPA Trouble [Compiles but does nothing]
    By Claymore in forum OSR Help
    Replies: 4
    Last Post: 07-08-2008, 06:00 PM
  3. Function Compiles and then...nothing?
    By Macrosoft in forum OSR Help
    Replies: 12
    Last Post: 06-07-2008, 10:40 PM
  4. it compiles but does nothing my script not working
    By ShowerThoughts in forum OSR Help
    Replies: 3
    Last Post: 08-23-2007, 09:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •