Results 1 to 12 of 12

Thread: Lodestone teleport function

  1. #1
    Join Date
    Dec 2011
    Location
    Behind you...
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default Lodestone teleport function

    Im having trouble using the lodestone teleport in my script.

    Here is the function:

    function LodestoneTeleport(Where: String): Boolean;

    i know how to use it, but it when ive placed it into my script it doesnt click he home teleport and tele.

    If there is anyone who knows how to use this help me ?

  2. #2
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    Can you show the part of the code where that is? Also is you location string one of the proper options?
    Current Project: Retired

  3. #3
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Pretty sure lodestone teleport will only do the teleport screen, so you will have to click home tele. And you need to add Lodestoneteleport('Lumbridge'); or where ever your teleporting to.

  4. #4
    Join Date
    Dec 2011
    Location
    Behind you...
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Ollybest View Post
    Pretty sure lodestone teleport will only do the teleport screen, so you will have to click home tele. And you need to add Lodestoneteleport('Lumbridge'); or where ever your teleporting to.
    Oh my gawd, so thats why it wasnt doing it

    Do you know of any function that will click on the home teleport button?

  5. #5
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Try something like this?

    Simba Code:
    Procedure TeleHome;
    Var
     TeleDTM:  Integer;
    Begin
     GameTab(Tab_Magic);
     If FindDTM(TeleDTM, x, y, MIX1, MIY1, MIX2, MIY2) Then
      Begin
       MMouse(x, y, 0, 0);
       Wait(500);
       if IsUpText('Cast') then
        begin
         Mouse(X, Y, 0, 0, false);
         Wait(500);
    End;

    Make your own DTM and read tuts on how to and how to put them in your script.

  6. #6
    Join Date
    Dec 2011
    Location
    Behind you...
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Thanks for you helps guys, ive progressed quite a bit but im still having problems with actually clicking the lumbridge teleport sign after the lodestone screen has opened.

    Heres my script so far :


    program new;
    {$DEFINE SMART}
    {$i srl/srl.simba}
    {$i sps/sps.simba}
    {$i ObjectDTM\ObjDTMInclude.simba}

    var
    x, y, Home:Integer;
    begin
    Smart_Server := 10;
    Smart_Members := True;
    Smart_Signed := True;
    ClearDebug;
    SetupSRL;

    Home := DTMFromString('mwQAAAHic42RgYLBjYmBwZoLQllDaBcq2Am JHIH7KAMGvoPR9IH4BxC+B+CEQPwDifUc+Mfho1jM4KCWD6UKv IobiosMMWZEHGIIDQsGYH6iOEGYkAsMBAIEUFk0=');

    GameTab(Tab_Magic);

    If FindDTM(Home, x, y, MIX1, MIY1, MIX2, MIY2) Then
    Begin
    MMouse(x, y, 0, 0);
    Wait(500);
    end;
    FreeDTM(Home);
    if IsUpText('Cast') then
    begin
    Mouse(X, Y, 0, 0, false);
    Wait(500);
    WaitOption ('Cast', 3000)
    end;

    Lodestoneteleport('Lumbridge')

    end.

  7. #7
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    What is it doing? What is it not doing?

  8. #8
    Join Date
    Aug 2008
    Location
    London, UK
    Posts
    456
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Simba Code:
    function EdgevilleHomeTele: Boolean; // Xtrapsp and ReadySteadyGo
    var
      HomeTele, x, y: Integer;
    begin
      Result := False;
      if not GameTab(tab_Magic) then
        Exit;
      HomeTele := DTMFromString('mggAAAHicY2NgYNjGxMCwiQlBrwbinUD8Gyj3H4pB7L8w/Pcvw74jn8AYxG6bc4PBR7OeQRIohw0z4sAQAADcGhiV');
      if FindDTM(HomeTele, x, y, MIX1, MIY1, MIX2, MIY2) then
      begin
        MMouse(x, y, 3, 3);
        if WaitUptext('ome', 1000) then
        begin
          ClickMouse2(mouse_Left);
          if WaitFunc(@LodestoneScreen, 250, 4000) then
            Result := LodestoneTeleport('Edgeville');
          Wait(RandomRange(1200, 1500));
          if LodestoneScreen then
          begin
            ClickMouse2(mouse_Left);
            Wait(RandomRange(600, 900));
            Result := not LodestoneScreen;
          end;
        end;
      end;
      FreeDTM(HomeTele);
    end;

    I had issues with it too, there are problems with the function itself due to wait times. I will make a fix to the actual function at some point but I was in a rush to get it working.

    Code above should be fine, just change to lumbridge.

  9. #9
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    I'm not sure if Jagex changed something after I made that function. If no fix have been made by tomorrow. I will give it a shot


    ~Home

  10. #10
    Join Date
    Dec 2011
    Location
    Behind you...
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    I just noticed something. If you have a script that only needs to go to one destination, instead of opening up the lodestone screen and clicking on the lumbridge sign it's much easier if you right click the home teleport sign and choose previous destination ;]

    Saves alot of time and space in the script, was kinda amazed when i found it ;]

    Last edited by ssshhhaaa; 04-20-2012 at 06:24 PM.

  11. #11
    Join Date
    Aug 2008
    Location
    London, UK
    Posts
    456
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by ssshhhaaa View Post
    I just noticed something. If you have a script that only needs to go to one destination, instead of opening up the lodestone screen and clicking on the lumbridge sign it's much easier if you right click the home teleport sign and choose previous destination ;]

    Saves alot of time and space in the script, was kinda amazed when i found it ;]

    This is awesome, can't believe I didn't notice it. Thanks!

  12. #12
    Join Date
    Dec 2011
    Location
    Behind you...
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by ReadySteadyGo View Post
    This is awesome, can't believe I didn't notice it. Thanks!
    No problem

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
  •