Results 1 to 9 of 9

Thread: Help with a simple procedure please!

  1. #1
    Join Date
    Apr 2008
    Location
    Minnesota, USA
    Posts
    279
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help with a simple procedure please!

    Does anyone know how to make it so my character does nothing if its in the process of home teleporting rather than having a hard wait time such as in my script?

    I basically need it to click home tele once and do nothing until its home. having a wait time makes it really slow :/

    procedure TellyHome;
    var
    x, y, LunarHome: integer;
    begin
    LunarHome := DTMFromString('mbQAAAHicY2VgYOBggABeIBYAYmYgZgdibi DmA2IWqPy+I58Y2ubcQMFuDJiAEQsGAwBv+wr5');
    begin
    repeat
    if GameTab(tab_Magic) then
    if FindDTM(LunarHome, X, Y, MIX1, MIY1, MIX2, MIY2) then
    MMouse(x, y, 2, 2);
    Wait( randomrange (100, 300));
    until IsUpText('Cast');
    if IsUpText('Cast') then
    begin
    ClickMouse2(true);
    Wait( randomrange (10000, 14000));
    end;
    if FindObjCustom(X, Y, ['Altar'], [8354429], 5) then
    begin
    TellyHome;
    end;
    end;
    end;
    Currently Working on: Runite Miner W/ World Hop (Fally) 80% complete

    Next: Advanced Gnome Agility Course!

  2. #2
    Join Date
    Oct 2011
    Posts
    422
    Mentioned
    15 Post(s)
    Quoted
    116 Post(s)

    Default

    I believe you can use pixalshift there are obvious animation changes with your character during the teleportation process

  3. #3
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

    Default

    You could just identify a dtm or unique color where it teleports to and just have it repeat wait until it finds that dtm/color

  4. #4
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Simba Code:
    procedure WaitUntilTeleported;
    begin
      while (CountColor(clBlack, MSX1, MSY1, MSX2, MSY2) > ((MSX2 - MSX1) * (MSY2 - MSY1) - 150)) do
        Sleep(100);
    end;

    I hope you get the general idea Of course you would have to add some fail-safes in case you aren't actually teleporting, and change the colour if it is different to black. (NOTE: This will only work if RuneScape goes to the black loading screen after you teleport, which I think it does [unless it's changed]).
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  5. #5
    Join Date
    Oct 2011
    Location
    Australia, Vic
    Posts
    1,517
    Mentioned
    2 Post(s)
    Quoted
    120 Post(s)

    Default

    Quote Originally Posted by wazzzup View Post
    Does anyone know how to make it so my character does nothing if its in the process of home teleporting rather than having a hard wait time such as in my script?

    I basically need it to click home tele once and do nothing until its home. having a wait time makes it really slow :/
    have it in [/Simba] tags

  6. #6
    Join Date
    Apr 2008
    Location
    Minnesota, USA
    Posts
    279
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks guys It does help a bit, I will continue to do some testing, seems like the best bet would be to use a DTM of the blue aura around the character to recognize that I am doing a home teleport.
    Currently Working on: Runite Miner W/ World Hop (Fally) 80% complete

    Next: Advanced Gnome Agility Course!

  7. #7
    Join Date
    Nov 2011
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by wazzzup View Post
    Thanks guys It does help a bit, I will continue to do some testing, seems like the best bet would be to use a DTM of the blue aura around the character to recognize that I am doing a home teleport.
    doesnt the aura move constantly though?

  8. #8
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    I would just do something like make it wait until the bank symbol is found on the MM.

    Just think of how you could determine it normally. When you've teleported your surrounding has changed completely, yes? You know what the destination area will look like before you arrive, so when you do you know the teleport was successful. MM symbols, building colors, things like that.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  9. #9
    Join Date
    Apr 2008
    Location
    Minnesota, USA
    Posts
    279
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I got the right idea but its not compiling
    How do I wait an indefinite amount of time until FindObjCustom returns true? does anyone know what the code would look like?
    Simba Code:
    begin
         ClickMouse2(true);
                Wait( randomrange (9000, 14000));
    until
     FindObjCustom(X, Y, ['Door'], [8354429], 5, true)
      end;
    Currently Working on: Runite Miner W/ World Hop (Fally) 80% complete

    Next: Advanced Gnome Agility Course!

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
  •