Results 1 to 13 of 13

Thread: World changer problems

  1. #1
    Join Date
    May 2007
    Location
    Everywhere
    Posts
    1,428
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default World changer problems

    Hi there,

    I've been trying to get WorldChanger.scar to work for me. So far it works flawlessly in finding a world ONLY if it doesn't have to scroll.
    When it has to scroll down to lets say world 60 (or w/e)... it won't find it. Instead it just logs back into the same world. Is there any actual way to fix this?

    Also, I tried making my own 'scroller' but I can't use changeworld because it just logs back in.

    My current trouble is I can't logout to the lobby without basically scripting everything from scratch. Do I have to script everything from scratch? If it needs to be done, so be it.
    Thanks

  2. #2
    Join Date
    Nov 2009
    Location
    Seattle, WA
    Posts
    589
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by cstrike View Post
    Hi there,

    I've been trying to get WorldChanger.scar to work for me. So far it works flawlessly in finding a world ONLY if it doesn't have to scroll.
    When it has to scroll down to lets say world 60 (or w/e)... it won't find it. Instead it just logs back into the same world. Is there any actual way to fix this?

    Also, I tried making my own 'scroller' but I can't use changeworld because it just logs back in.

    My current trouble is I can't logout to the lobby without basically scripting everything from scratch. Do I have to script everything from scratch? If it needs to be done, so be it.
    Thanks
    Thanks for posting =], I forgot to mention this as well. The scroll seems to not work anymore [and i think it stopped working for a good time now]. You can logout to the lobby still though. Just use ExitToLobby;
    Don't Troll, Don't Fight, Just keep the Respect
    Status : Offline

    Feel free to re-make my scripts ;D
    Community Member

  3. #3
    Join Date
    May 2007
    Location
    Everywhere
    Posts
    1,428
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Ah thats the code I'm looking for

    Do you (or anyone else!) think holdmouse would work? Or is that a dangerous function to use?

  4. #4
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by cstrike View Post
    Ah thats the code I'm looking for

    Do you (or anyone else!) think holdmouse would work? Or is that a dangerous function to use?
    HoldMouse to scroll? We tried that before and it was really slow so then I believe Narcle made it click the scroll bar in approximately the right distance down and hoped to find it. Obviously that doesn't work anymore. But using HoldMouse would work.

  5. #5
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  6. #6
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    edit your WorldSwitcher.scar with this please
    SCAR Code:
    {*******************************************************************************
    function FindWorld(W: integer): Boolean;
    by: Narcle
    Description: Scrolls to area and returns true if world was found
    *******************************************************************************}

    function FindWorld(W: integer): Boolean;
    Var
      WPos, SPos, i, x, y, H, CurW: integer;
      BarPos: TPoint;
    begin
      if not WorldScreen then
       Exit;
      WS_CurrentWorld(CurW);
      if (W = CurW) then
      begin
        Result := True;
        WriteLn('Already on world ' + IntToStr(W));
        Exit;
      end;
      if Length(WorldArray) < 1 then
       LoadWorldArrays;
      H := High(WorldArray);
      for i := 0 to H do
       if (WorldArray[i].Number = W) then
       begin
         WPos := i+1;
         Break;
       end;
      SPos := Round(WPos/(H+1)*100);
      if not WorldsOrdered then
      begin
        Mouse(116, 125, 4, 4, true);//makes them drop down
        WorldsOrdered := true;
        wait(500+random(500));
      end;
      case W of
        1..15: BarPos:= Point(700, 162);
        16..30: BarPos:= Point(700, 192);
        31..44: BarPos:= Point(700, 217);
        45..57: BarPos:= Point(700, 241);
        58..73: BarPos:= Point(700, 267);
        74..87: BarPos:= Point(700, 292);
        88..102: BarPos:= Point(700, 315);
        103..115: BarPos:= Point(700, 338);
        116..135: BarPos:= Point(700, 362);
        136..153: BarPos:= Point(700, 385);
        154..169: BarPos:= Point(700, 409);
      end;
      Mouse(BarPos.x, BarPos.y, 0, 0, true);
      wait(300+Random(100));
      Result := IsTextInAreaEx(84, 134, 134, 440, X, Y, IntToStr(W) + ' ', 0, StatChars, False, False, -1, 2, 16579836) or
                IsTextInAreaEx(84, 134, 134, 440, X, Y, IntToStr(W) + ' ', 0, StatChars, False, False, -1, 2, 6618364);
    end;
    and let me know how it goes

    ~shut

  7. #7
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Should probably make it this:

    SCAR Code:
    case W of
        1..15: BarPos:= Point(700, 162);
        16..30: BarPos:= Point(700, 192);
        31..44: BarPos:= Point(700, 217);
        45..57: BarPos:= Point(700, 241);
        58..73: BarPos:= Point(700, 267);
        74..87: BarPos:= Point(700, 292);
        88..102: BarPos:= Point(700, 315);
        103..115: BarPos:= Point(700, 338);
        116..135: BarPos:= Point(700, 362);
        136..153: BarPos:= Point(700, 385);
      else   BarPos:= Point(700, 409); //edit here
      end;

    so that if they Jagex adds new worlds, theres a chance the function might work still.

    For the person who adds this also add a check for W (world number) equaling zero and exit accordingly.

  8. #8
    Join Date
    May 2007
    Location
    Everywhere
    Posts
    1,428
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    The code works really well. Thank you to both above... I've been testing it rigorously with various worlds [only p2p] and it works awesome. Thanks once again!

  9. #9
    Join Date
    Nov 2009
    Location
    Seattle, WA
    Posts
    589
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Wow thanks for fixing it, great job. Please do commit =].
    Don't Troll, Don't Fight, Just keep the Respect
    Status : Offline

    Feel free to re-make my scripts ;D
    Community Member

  10. #10
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    I think that could be done with some maths, removing the ugly case and would allow the function to adapt to changes.

    E: Not to mention you are clicking an exact co-ord each time.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  11. #11
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Nava2 View Post
    I think that could be done with some maths, removing the ugly case and would allow the function to adapt to changes.

    E: Not to mention you are clicking an exact co-ord each time.
    He at least uses randomness, but a MouseBox would be more "human-like".

  12. #12
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by Nava2 View Post
    I think that could be done with some maths, removing the ugly case and would allow the function to adapt to changes.

    E: Not to mention you are clicking an exact co-ord each time.
    well you could easily add a bit of randomness cant you...?

    ~shut

  13. #13
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Added Shuttleu's fix for FindWorld. Cheers Shuttleu

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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