Results 1 to 7 of 7

Thread: help please

  1. #1
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default help please

    SCAR Code:
    procedure SetRockColor;
    begin
      Case Rock of
        'Clay'      : RockColor := ClayColor;
        'Tin'       : RockColor := TinColor;
        'Copper'    : RockColor := CopperColor;
        'Iron'      : RockColor := IronColor;
        'Gold'      : RockColor := GoldColor;
        'Mithril'   : RockColor := MithrilColor;
        'AddyColor' : RockColor := AddyColor;
        'RuneColor' : RockColor := RuneColor;
        else
        begin
          WriteLn('Invalid RockType.');
          TerminateScript;
        end;
      end;
    end;


    ok so above is the procedure that im using in my mining script!!!

    but what do i put in the script below, to find the rock color because im kinda finding it a bit weird


    SCAR Code:
    if FindColorSpiralTolerance(x, y, RockColor, 1, 1, 515, 338, 5) then

    p.s

    the mouse just goes to the top left of the rs screen and stays there!!


    **EDIT**

    please people its not working at all, i would be thankful for all help!

  2. #2
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    PHP Code:
    if FindColorSpiralTolerance(xyRockColor115153385then 

    First of all, is there an error? Or is it just not finding the colour?

    why not instead of using a case try this:

    PHP Code:
    If (rockcolour=MithrilThen
    Rockcolour
    := Mithrilcolour 
    and do that for all of them? Just a thought not even sure it works.


    Second, PHP PHP PHP PHP PHP PHP PHP PHP tags roxers code tagss!!!!!!1one111!!!one!

    PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP

  3. #3
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Your SetRockColor is written correctly, but how about trying to use SRL's FindObj for finding objects? That is good and easy way.
    And you said:
    the mouse just goes to the top left of the rs screen and stays there!!
    I bet there's something wrong with your rockcolors, maybe try picking colors again?

  4. #4
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default

    could you help me out and show me how it would work and how i would go about using FindObj, because if i try it out i would probaly end up screwing it up and getting nowhere!

    thanks

  5. #5
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey, i can try it out if you PM me the script, i can also try to work out any kinks i find.

  6. #6
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default

    dude you really dont wanna try it out, i only just learning, and it dont work at all :P

    but ill pm it to you, just so you can take a look at it :P

    p.s you have been Warned :P

  7. #7
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default

    can somone please try and help me out with this findobj thing??

    my script is moving the mouse up to the top left of the rs screen and it stays there!!!

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
  •