Page 2 of 3 FirstFirst 123 LastLast
Results 26 to 50 of 57

Thread: Function/Script WorldMAPWalk<--Uses the World Map to walk from anywhere!

  1. #26
    Join Date
    Mar 2007
    Location
    <3
    Posts
    2,683
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well im about to test it!
    Btw, Ive had to respond to our little contest so im soon releasing a script that makes oak planks xD
    You still win :/

  2. #27
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    FIXED
    NOW UP AND RUNNING

    Im such a dooshbag. Look at this function:

    SCAR Code:
    procedure AngleWalk(Degrees, Radius: Integer);
    var
      x1, y1, Quad, Angle, x, y: Integer;
    begin
      Angle:=Round(rs_GetCompassAngleDegrees+Degrees);
      if(Angle>=360)then Angle:=Angle-360;
      if(Angle<0)then Angle:=Angle+360;
      case Angle of
        0..90: Quad:=1;
        91..179: Quad:=2;
        180..270: Quad:=3;
        271..359: Quad:=4;
      end;
      y:= Round((cos(Radians(Angle))) * Radius);
      x:= Round((sin(Radians(Angle))) * Radius);
      case Quad of
        1:
        begin
          y1:=MMCY-y
          x1:=MMCX+x
        end;
     
        2:
        begin
          y1:=MMCY+x
          x1:=MMCX+y
        end;
     
        3:
        begin
          y1:=MMCY+y
          x1:=MMCX-x
        end;
     
        4:
        begin
          y1:=MMCY-x
          x1:=MMCX-y
        end;
      end;
      MouseFlag(x, y, 0, 0);
    end;

    Originally (version 1) the x1s and the y1s in the case statement were x and y. I saw the problem in this and changed them to x1 and y1. BUT being the dumbass that i am i didnt change the x and y on MouseFlag.


    EDIT: Fixed a bunch of DTM problems. Should be almost flawless besides double click problem.

  3. #28
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    Nice job, the regular version works a lot better now

  4. #29
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks Any idea why it is clicking the overview button twice?

    i noticed a lot of people viewing this thread but not posting

  5. #30
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I tested, and gave you the results on IRC. Just treat this as a minor bump.
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  6. #31
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think i missed the results on IRC... Can you post them?

  7. #32
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I think you got them. I thought I was TheVoiceInYourHead?

    I did'nt save them though. All I remembered was It managed to go to the south of the varrock east bank, then went randomly around.

    But that was before you fixed your dtm problem, so..
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  8. #33
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah thats fixed now. I thought you were voice cuz it said voice was viewing the thread...

  9. #34
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Lol. It's funny how when I do a search for my ID, it comes up in threads like this =].

  10. #35
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol, yeah because of a previous post.

    Did you ever end up testing this?? I saw you were viewing the thread a few days ago...

  11. #36
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, I've tested it multiple times. It loads the map and then nothing happens.

    It also lags the entire time..

  12. #37
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thats odd.... Ill have to check because it worked fine for freddy and I

    You really should have posted that because I cant fix a problem if I don't know it exists.

    The lag is probably causing a problem in the waiting loop for the open map function. How long does it load the map for?? If its more than like 20 seconds thats probably why...

    Edit: I think I fixed it now...

    Update: Should be more compatible with slower computers

  13. #38
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks mate. I'll try it out.

    I also suggest creating a DeclarePlayers; and LoginPlayer; into it...lol..makes it a lot easier to test! =]

  14. #39
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You honestly think i would do that??? Lol im too lazy...

  15. #40
    Join Date
    Apr 2008
    Location
    Northwest england
    Posts
    1,179
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Instead of using angle why not use gradient then you can give it randomness more easily
    Blank!

  16. #41
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what is gradient??

  17. #42
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh, and MacroHard. This time it just lagged throughout the entire script, and even more during the map opening.

  18. #43
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry dude my DTMs had too much areasize to each point so it made it super laggy.

    Better DTMs now used so symbol will never cover them and so there will be less lag!

  19. #44
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Massive Update: All problems except for Flag problem fixed!

    WorldMAPWalk should now be almost fully functional. All DTM and lag problems have been fixed or improved. The double click problem has also been fixed so the function will now move the World Map.

  20. #45
    Join Date
    Jul 2008
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    umm i dont understand what this is for....is it like a talisman when u click locate or somthing??? a talisman for anything????
    - basic_i

    "Doing it once a month makes it a bill, doing it twice a month makes it a paycheck"
    "Death by snu-snu!"

  21. #46
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, it uses the world map to walk to a DTM (like a bitmap) from anywhere!

    So I could start the script in falador or in lumbridge and it should still walk to the inputted DTM (in this case the Varrock East Bank).

    The only known problem is that if the flag goes off the minimap (while walking around a wall or something) then Flag will screw up and possibly screw up the function (not a problem for the reflection version).

  22. #47
    Join Date
    Jul 2008
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh, like when walking around a wall and the flag disapeares for a few seconds but scar thinks it messed up so the whole thing caves in???......i going to make my first script (i even came up with name (PTA-pro travel agent[i dunno lol]) a walker...use reflection pathwalking from any f2p bank to any f2p bank....starting with draynor-fally...cuz i duno how to get downstairs in lumby...waiit...can u click the large map and it will take u there?!?!?!?!?!
    - basic_i

    "Doing it once a month makes it a bill, doing it twice a month makes it a paycheck"
    "Death by snu-snu!"

  23. #48
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No. My script USES the world map to find the angle and distance at which it must travel to get to a dtm from its current location.

    CheckMovement almost done! So the flag problem will be fixed!

  24. #49
    Join Date
    Jul 2008
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    dream crusher!!! lol jk...ok....guess ill make somthing else..
    - basic_i

    "Doing it once a month makes it a bill, doing it twice a month makes it a paycheck"
    "Death by snu-snu!"

  25. #50
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Ok, this is what happens to me:

    I log in, and it does the search for destination dtm 6 times, its enough with 1 time!


    After that it finds varrock east bank on the world map, and begins to walk. It clicks 1 time and waits until my character stops (Flag; ), then it opens the worldmap, and wait like 10 secs, closes it, opens, Wait(10000);, closes, and repeat.

    I am using the normal verision.

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to walk for my first script?
    By iambowling247 in forum OSR Help
    Replies: 3
    Last Post: 11-21-2007, 10:31 AM
  2. My script doesn't walk..
    By Zeta in forum OSR Help
    Replies: 3
    Last Post: 08-06-2007, 08:19 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
  •