Results 1 to 21 of 21

Thread: radialwalk help plz xmod and ymod

  1. #1
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default radialwalk help plz xmod and ymod

    i think the xmod and ymod are messing my script up look at this procedure help plz

    SCAR Code:
    Procedure Walkback;
    Begin
    If (inchat('You Are Dead')) Or (FindSymbol(x,y,'Water')) Then
     begin
     RadialRoadWalk(RoadColor, 339, 706, 55 {Xmod}, {Ymod})
     Status('At Bridge')
      RadialRoadWalk(RoadColor, 329, 695, 71, {Xmod}, {Ymod});
        Status('Across Bridge')
         RadialRoadWalk(RoadColor, 293, 664, 68, {Xmod}, {Ymod});
          Status('Near Cow Gate')
           RadialRoadWalk(RoadColor, 235, 607, 65, {Xmod}, {Ymod});
            Status('At Cow Gate')
             RadialRoadWalk(RoadColor, 250, 623, 65, {Xmod}, {Ymod});
            Status('Near Chicken Farm')
           RadialRoadWalk(RoadColor, 224, 593, 57, {Xmod}, {Ymod});
          Status('1 More Step To Chickens')
         RadialRoadWalk(RoadColor, 236, 604, 65, {Xmod}, {Ymod});
        Status('Farm Is Visible')
       RadialRoadWalk(RoadColor, 172, 552, 24, {Xmod}, {Ymod}) Or
      (FindSymbol(x, y, 'churn'));
      Status('At Farm')
     Writeln('Made It To The Farm Probbaly died from a random')
     end;
    End;

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rudeboialex View Post
    i think the xmod and ymod are messing my script up look at this procedure help plz

    SCAR Code:
    Procedure Walkback;
    Begin
    If (inchat('You Are Dead')) Or (FindSymbol(x,y,'Water')) Then
     begin
     RadialRoadWalk(RoadColor, 339, 706, 55 {Xmod}, {Ymod})
     Status('At Bridge')
      RadialRoadWalk(RoadColor, 329, 695, 71, {Xmod}, {Ymod});
        Status('Across Bridge')
         RadialRoadWalk(RoadColor, 293, 664, 68, {Xmod}, {Ymod});
          Status('Near Cow Gate')
           RadialRoadWalk(RoadColor, 235, 607, 65, {Xmod}, {Ymod});
            Status('At Cow Gate')
             RadialRoadWalk(RoadColor, 250, 623, 65, {Xmod}, {Ymod});
            Status('Near Chicken Farm')
           RadialRoadWalk(RoadColor, 224, 593, 57, {Xmod}, {Ymod});
          Status('1 More Step To Chickens')
         RadialRoadWalk(RoadColor, 236, 604, 65, {Xmod}, {Ymod});
        Status('Farm Is Visible')
       RadialRoadWalk(RoadColor, 172, 552, 24, {Xmod}, {Ymod}) Or
      (FindSymbol(x, y, 'churn'));
      Status('At Farm')
     Writeln('Made It To The Farm Probbaly died from a random')
     end;
    End;
    You need to fill in the x mod and y mod with random parameters exactly like you do with Mouse. 2 is a good number for each.

  3. #3
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    TY JADDDDDDDD i got anotehr question please :P i want to find isuptext BUT i want it to find the orange bit help plz

  4. #4
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rudeboialex View Post
    TY JADDDDDDDD i got anotehr question please :P i want to find isuptext BUT i want it to find the orange bit help plz
    umm.. maybe check out Wizzup?'s IsUpTextBlue and see if you could make your own IsUpTextOrange thing?

    And np

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

    Default

    Quote Originally Posted by JAD View Post
    You need to fill in the x mod and y mod with random parameters exactly like you do with Mouse. 2 is a good number for each.
    Wrong! Haha!
    It's not same thing as in Mouse function... It's not randomness, it will clcik +Xmod and +Ymod pixels mouse everytime when flag is not found.

  6. #6
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Pentti View Post
    Wrong! Haha!
    It's not same thing as in Mouse function... It's not randomness, it will clcik +Xmod and +Ymod pixels mouse everytime when flag is not found.
    Pretty sure your wrong! Haha!

    I looked at the radial walk function, and after looking for the color, when it mouses, its like Mouse(ax,ay,XMod,YMod,true);. so I think that it mouses random pixels from what you put in the x and y mod

    I think you might be thinking of WaterWalk? Because that walks alongside .

    I still could be wrong, but I don't think I am pentti

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

    Default

    Ehem... In function RadialRoadWalk:
    SCAR Code:
    for i := StartRadial to EndRadial do
          begin
            x1 := Round(Radius * Sine(i)) + 646;
            y1 := Round(-Radius * Cose(i)) + 84;
            if (FindColor(x, y, TheColor, X1, Y1, X1 + 1, Y1 + 1)) then
            begin
              MouseFindNoFlag(x, y, Xmod, Ymod);
              Result := True;
              CountFlag(10);
              Exit;
            end;
          end;

    Let's see what kind of MouseFindNoFlag is hmm...
    SCAR Code:
    {*******************************************************************************
    procedure MouseFindNoFlag(ax, ay, xmod, ymod: Integer);
    By: PPLSUQBAWLZ / WT-Fakawi
    Description: Clicks mouse in minimap until flag is found
    *******************************************************************************}
    "Clicks mouse in minimap until flag is found" Oh....
    SCAR Code:
    procedure MouseFindNoFlag(ax, ay, xmod, ymod: Integer);
    var
      xx, yy: Integer;
    begin
      xx := ax;
      yy := ay;
      repeat
        xx := xx + xmod;
        yy := yy + ymod;
        Mouse(xx, yy, 0, 0, True);
      until (FlagPresent) or (xx < 570) or (xx > 725) or (yy < 5) or (yy > 160);
    end;
    See
    " xx := xx + xmod;
    yy := yy + ymod;"
    and
    "Mouse(xx, yy, 0, 0, True);"

    it keeps doing that until Flag is found, so...
    Think it again, JAD!

  8. #8
    Join Date
    Jan 2007
    Location
    Not here
    Posts
    1,604
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    or you could just ask Fakawi :P

    Xmod/Ymod
    The deviation from MouseFindFlag. RadialWalk uses MouseFindFlag to place the flag on the minimap. MouseFindFlag will click as long as it takes on the minimap until the flag appears. It will add Xmod and Ymod to each click. Fill in 1,1 for Xmod and Ymod, and the mouse will gradually move to the lower right corner of the minimap one pixel each click. See the table below.
    rudeboi go here http://www.villavu.com/forum/showthread.php?t=372
    and look at the picture Fakawi did. He has like a square with different xmod,ymod stuff around it. use that as a guide of ur numbers.....

    O btw Pentti wins the script off
    Sleeping...

  9. #9
    Join Date
    Apr 2007
    Posts
    186
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, Pentti is right the Xmod and Ymod are different than Mouse
    i draw a picture because the one fakawis radialwalking tut was isnt there anymore.
    USE IT LIKE THIS:

    Examples:
    when you go North i would recommend the following:
    RadialRoadWalk(RoadColor, -10, 10, 70, 0, 2)
    because the Flag disappears from the MiniMap for a moment, but you can also fix this by setting a Wait time when it should appear back to MiniMap!

    So when the function doesnt find the flag it moves the mouse 1 pixel at time to direction selected by Xmod and Ymod. so 1,1 for ES direction. I hope this helped.

  10. #10
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    True. You need to pay cloose attention to these params, since they influence the succesive clicking. Going North, I would always use YMod +1, going South use YMod -1 They are in fact the offsets from MouseFindNoFlag.
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  11. #11
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Pentti View Post
    Ehem... In function RadialRoadWalk:
    SCAR Code:
    for i := StartRadial to EndRadial do
          begin
            x1 := Round(Radius * Sine(i)) + 646;
            y1 := Round(-Radius * Cose(i)) + 84;
            if (FindColor(x, y, TheColor, X1, Y1, X1 + 1, Y1 + 1)) then
            begin
              MouseFindNoFlag(x, y, Xmod, Ymod);
              Result := True;
              CountFlag(10);
              Exit;
            end;
          end;

    Let's see what kind of MouseFindNoFlag is hmm...
    SCAR Code:
    {*******************************************************************************
    procedure MouseFindNoFlag(ax, ay, xmod, ymod: Integer);
    By: PPLSUQBAWLZ / WT-Fakawi
    Description: Clicks mouse in minimap until flag is found
    *******************************************************************************}
    "Clicks mouse in minimap until flag is found" Oh....
    SCAR Code:
    procedure MouseFindNoFlag(ax, ay, xmod, ymod: Integer);
    var
      xx, yy: Integer;
    begin
      xx := ax;
      yy := ay;
      repeat
        xx := xx + xmod;
        yy := yy + ymod;
        Mouse(xx, yy, 0, 0, True);
      until (FlagPresent) or (xx < 570) or (xx > 725) or (yy < 5) or (yy > 160);
    end;
    See
    " xx := xx + xmod;
    yy := yy + ymod;"
    and
    "Mouse(xx, yy, 0, 0, True);"

    it keeps doing that until Flag is found, so...
    Think it again, JAD!
    Go jump off a cliff! lol, j/k

    I didn't check it before posting that, I just thought that from a quick glance over it a long time ago

    Thanks for embarrassing me in front of millions of people pentti lol

  12. #12
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    Quote Originally Posted by inSane View Post
    USE IT LIKE THIS:

    .
    erm.... your picture doesnt display it correctly

    EDIT: I was referring to the numbers!
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  13. #13
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by WT-Fakawi View Post
    erm.... your picture doesnt display it correctly
    I see it

    Or do you mean there something wrong with the actual numbers on the image?

  14. #14
    Join Date
    Jan 2007
    Location
    Not here
    Posts
    1,604
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    err inSane the picture's still there for me.....
    Sleeping...

  15. #15
    Join Date
    Apr 2007
    Posts
    186
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by WT-Fakawi View Post
    erm.... your picture doesnt display it correctly

    EDIT: I was referring to the numbers!
    I meant the picture that if your going to those ways where the box is use those numbers it should be correct.

  16. #16
    Join Date
    Oct 2006
    Posts
    161
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    sorry for off topic, but when is text up orange?? , i have seen a couple of posts on this, but i have never noticed it in game.

  17. #17
    Join Date
    Apr 2007
    Posts
    186
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by geerhedd View Post
    sorry for off topic, but when is text up orange?? , i have seen a couple of posts on this, but i have never noticed it in game.
    Hmmmhh, ive seen it in game somewhere too. Just cant now remember where. Or im not sure if it was orange

  18. #18
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    Quote Originally Posted by geerhedd View Post
    sorry for off topic, but when is text up orange?? , i have seen a couple of posts on this, but i have never noticed it in game.
    Static Items are all colored Orange in their UpText. Attackable NPC's all have Yellow UpText. Objects on the MainScreen all have Blue Uptext. The reason we need this is simple: Processing IsUpText('Atack Cow') or even IsUpText('tt') takes a considerable amount of time. Better first check for the existence of a colored region in the Uptext Area before checking for the Uptext itself! This speeds up operation considerably.
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  19. #19
    Join Date
    Apr 2007
    Posts
    186
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by WT-Fakawi View Post
    Static Items are all colored Orange in their UpText. Attackable NPC's all have Yellow UpText. Objects on the MainScreen all have Blue Uptext. The reason we need this is simple: Processing IsUpText('Atack Cow') or even IsUpText('tt') takes a considerable amount of time. Better first check for the existence of a colored region in the Uptext Area before checking for the Uptext itself! This speeds up operation considerably.
    Ohh, yeah lol stupid me

  20. #20
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    haha JAD got somethink wrong nah im jking and ty pentti for the explaining

  21. #21
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rudeboialex View Post
    haha JAD got somethink wrong nah im jking and ty pentti for the explaining
    Over a 15 day bump.. And I didn't 100% get it wrong, like think that it writeln'd those numbers, I was pretty close I didn't look at the function anyways, just what I always thought it was.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. RadialWalk?
    By StrikerX in forum OSR Help
    Replies: 2
    Last Post: 04-19-2008, 09:25 AM
  2. RadialWalk Help
    By Esteban in forum OSR Help
    Replies: 12
    Last Post: 06-13-2007, 02:33 AM
  3. Replies: 3
    Last Post: 06-11-2007, 08:40 PM
  4. Help W/ RadialWalk
    By IEatJ00erBaybees in forum OSR Help
    Replies: 6
    Last Post: 05-29-2007, 01:51 AM

Posting Permissions

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