Results 1 to 12 of 12

Thread: My First Script - problems

  1. #1
    Join Date
    Dec 2008
    Location
    You wish you knew, stalker :o
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default My First Script - problems

    Ok, so i've been mailing back and forth for help and thought i'd see if any1 can help me solve this. The code for it is below (Any idea's on helping it Find the fishing spot/Invo would be appreciated, Its a crayfisher). ever since i added SMART (using and following the tutorial) It has been giving me errors.

    Parts that are giving me errors are in BOLD

    (It doesn't like the := Part, I tried getting rid of the : but then it doesn't like something else)


    Code:
    program CrayFisherPro;
    {.include SRL/SRL/Misc/SMART.scar}
    {.include/SRL/SRL.scar}
    
    //please Login before starting the script
    //please remember to click the crosshair to select the window of your-
    //-Runescape client.
    //please put crayfish Cage in the first slot of your inventory.
    
    
    var
    i,x,y: Integer;
    
    
    const
    FishSpot3 := 10590612;
    SmartWorld := 15; // Which World/Server do you want to use?
    SmartMembers := False; // Is it a Members World?
    SmartSigned := True; // Signed/UnSigned Client?
    SmartSuperDetail := False; // Use Super Detail?
    
    begin
    Smart_Server := SmartWorld;
      Smart_Members := SmartMembers;
      Smart_Signed := SmartSigned;
      Smart_SuperDetail := SmartSuperDetail;
       SetupSRL;
    
    i:= 0;
    
    repeat
    If(FindColor(x,y,FishSpot3,0,0,600,600))then
    begin
    Writeln('Found Fishing spot #3');
    
    
    MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
    wait(100+random(10));
    ClickMouse(x,y,false);
    end else
    Writeln('unable to find fishing spot #3');
    
    
    
    
    i:= i + 1;
    until(i >=10);
    
    end.

  2. #2
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    FishSpot3 = 10590612;
    i believe constants should be like that. take off the :

    EDIT: also, to find a fishing spot, i would use a dynamic ATPA
    Last edited by x[Warrior]x3500; 04-27-2010 at 06:42 PM.

  3. #3
    Join Date
    Dec 2008
    Location
    You wish you knew, stalker :o
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by x[Warrior]x3500 View Post
    FishSpot3 = 10590612;
    i believe constants should be like that. take off the :

    EDIT: also, to find a fishing spot, i would use a dynamic ATPA
    (Also, whats dynamic ATPA? kinda new lol. (I used this tutorial to add SMART: (http://villavu.com/forum/showthread....791#post705791)

    Took all of them off still got this error:
    I copied and pasted His Code he has ":" and i Remove them and it still gives me errors.
    Code:
    begin
    Smart_Server = SmartWorld;//Throws Error between the "S" and the "m" of "Smart"
      Smart_Members = SmartMembers;
      Smart_Signed = SmartSigned;
      Smart_SuperDetail = SmartSuperDetail;
       SetupSRL;
    Line 23: [Error] (152:1): Unknown identifier 'Smart_Server' in script

  4. #4
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    lol no here:
    Code:
    program CrayFisherPro;
    {.include SRL/SRL/Misc/SMART.scar}
    {.include/SRL/SRL.scar}
    
    //please Login before starting the script
    //please remember to click the crosshair to select the window of your-
    //-Runescape client.
    //please put crayfish Cage in the first slot of your inventory.
    
    
    var
    i,x,y: Integer;
    
    
    const
    FishSpot3 = 10590612;
    SmartWorld = 15; // Which World/Server do you want to use?
    SmartMembers = False; // Is it a Members World?
    SmartSigned = True; // Signed/UnSigned Client?
    SmartSuperDetail = False; // Use Super Detail?
    
    begin
    Smart_Server := SmartWorld;
      Smart_Members := SmartMembers;
      Smart_Signed := SmartSigned;
      Smart_SuperDetail := SmartSuperDetail;
       SetupSRL;
    
    i:= 0;
    
    repeat
    If(FindColor(x,y,FishSpot3,0,0,600,600))then
    begin
    Writeln('Found Fishing spot #3');
    
    
    MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
    wait(100+random(10));
    ClickMouse(x,y,false);
    end else
    Writeln('unable to find fishing spot #3');
    
    
    
    
    i:= i + 1;
    until(i >=10);
    
    end.

    does that work

    dynamic ATPA. well a DDTM is a dynamic dtm. the only difference that makes something dynamic is if it can change its primary color (aka autocolor). so a dynamic ATPA is a Array of TPointArray with an autocolor as the primary color. feel free to find tuts on TPAs. they are very usefull

  5. #5
    Join Date
    Dec 2008
    Location
    You wish you knew, stalker :o
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by x[Warrior]x3500 View Post
    lol no here:
    Code:
    program CrayFisherPro;
    {.include SRL/SRL/Misc/SMART.scar}
    {.include/SRL/SRL.scar}
    
    //please Login before starting the script
    //please remember to click the crosshair to select the window of your-
    //-Runescape client.
    //please put crayfish Cage in the first slot of your inventory.
    
    
    var
    i,x,y: Integer;
    
    
    const
    FishSpot3 = 10590612;
    SmartWorld = 15; // Which World/Server do you want to use?
    SmartMembers = False; // Is it a Members World?
    SmartSigned = True; // Signed/UnSigned Client?
    SmartSuperDetail = False; // Use Super Detail?
    
    begin
    Smart_Server := SmartWorld;
      Smart_Members := SmartMembers;
      Smart_Signed := SmartSigned;
      Smart_SuperDetail := SmartSuperDetail;
       SetupSRL;
    
    i:= 0;
    
    repeat
    If(FindColor(x,y,FishSpot3,0,0,600,600))then
    begin
    Writeln('Found Fishing spot #3');
    
    
    MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
    wait(100+random(10));
    ClickMouse(x,y,false);
    end else
    Writeln('unable to find fishing spot #3');
    
    
    
    
    i:= i + 1;
    until(i >=10);
    
    end.

    does that work

    dynamic ATPA. well a DDTM is a dynamic dtm. the only difference that makes something dynamic is if it can change its primary color (aka autocolor). so a dynamic ATPA is a Array of TPointArray with an autocolor as the primary color. feel free to find tuts on TPAs. they are very usefull
    That doesn't work throws the same exact error as above. Also, tut link? or i'll just go searching for one idk ur explanation made my head hurt XD

  6. #6
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    SCAR Code:
    program CrayFisherPro;
    {.include SRL/SRL/Misc/SMART.scar}
    {.include SRL/SRL.scar}

    //please Login before starting the script
    //please remember to click the crosshair to select the window of your-
    //-Runescape client.
    //please put crayfish Cage in the first slot of your inventory.


    var
    i,x,y: Integer;


    const
    FishSpot3 = 10590612;
    SmartWorld = 15; // Which World/Server do you want to use?
    SmartMembers = False; // Is it a Members World?
    SmartSigned = True; // Signed/UnSigned Client?
    SmartSuperDetail = False; // Use Super Detail?

    begin
      Smart_Server := SmartWorld;
      Smart_Members := SmartMembers;
      Smart_Signed := SmartSigned;
      Smart_SuperDetail := SmartSuperDetail;
      SetupSRL;
      repeat
        If(FindColor(x,y,FishSpot3,0,0,600,600))then
        begin
          Writeln('Found Fishing spot #3');
          Mouse(x, y, 2, 2, True);
          Inc(I);
        end else
          Writeln('unable to find fishing spot #3');
      until(i >=10);
    end.

  7. #7
    Join Date
    Dec 2008
    Location
    You wish you knew, stalker :o
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by MylesMadness View Post
    SCAR Code:
    program CrayFisherPro;
    {.include SRL/SRL/Misc/SMART.scar}
    {.include SRL/SRL.scar}

    //please Login before starting the script
    //please remember to click the crosshair to select the window of your-
    //-Runescape client.
    //please put crayfish Cage in the first slot of your inventory.


    var
    i,x,y: Integer;


    const
    FishSpot3 = 10590612;
    SmartWorld = 15; // Which World/Server do you want to use?
    SmartMembers = False; // Is it a Members World?
    SmartSigned = True; // Signed/UnSigned Client?
    SmartSuperDetail = False; // Use Super Detail?

    begin
      Smart_Server := SmartWorld;
      Smart_Members := SmartMembers;
      Smart_Signed := SmartSigned;
      Smart_SuperDetail := SmartSuperDetail;
      SetupSRL;
      repeat
        If(FindColor(x,y,FishSpot3,0,0,600,600))then
        begin
          Writeln('Found Fishing spot #3');
          Mouse(x, y, 2, 2, True);
          Inc(I);
        end else
          Writeln('unable to find fishing spot #3');
      until(i >=10);
    end.
    It Worked, I don't see what u did to make it work tho? Mind explaining 2 a newbie? xD

  8. #8
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    There the a / before srl in the include line

  9. #9
    Join Date
    Dec 2008
    Location
    You wish you knew, stalker :o
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by MylesMadness View Post
    There the a / before srl in the include line
    WOW I'm so smart T_T +rep? XD

  10. #10
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    Quote Originally Posted by MylesMadness View Post
    There the a / before srl in the include line
    wow lol didnt see that one... anyway

    here is a decent tpa tut http://villavu.com/forum/showthread....highlight=atpa

  11. #11
    Join Date
    Dec 2008
    Location
    You wish you knew, stalker :o
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by x[Warrior]x3500 View Post
    wow lol didnt see that one... anyway

    here is a decent tpa tut http://villavu.com/forum/showthread....highlight=atpa
    0.0 I'm reading through it now and its insane, I don't think im THAT advanced for a first script....Meh. I'll keep trying, I still cant beleive i missed that slash

  12. #12
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    Quote Originally Posted by deadlywario0 View Post
    0.0 I'm reading through it now and its insane, I don't think im THAT advanced for a first script....Meh. I'll keep trying, I still cant beleive i missed that slash
    if you EVER need help just pm or get a hold of me and i will gladly help

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
  •