Results 1 to 5 of 5

Thread: Home Teleport?

  1. #1
    Join Date
    Dec 2011
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Home Teleport?

    I tried using this:

    Code:
    procedure Tele;
    begin
      Writeln('Teleporting!');
      GameTab(tab_Magic);
      Wait(200 + Random(50));
      if FindDTM(Home, x, y, MIX1, MIY1, MIX2, MIY2) then
        Mouse(x, y, 3, 3, True);
      Wait(1900 + Random(25));
    end;
    It clicks the magic tab, but doesn't teleport.. Any ideas?

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Probaly made DTM improperly.
    I think magic.Simba has spell casting procedure in it Anywyas, and you can just use a coordinate click (assuming eveyones spells are in the same spot).

    Anywyas, try using a bitmap instead of a DTM for this, and use findbitmaptolerance to search for it this will be easier and more successful!

  3. #3
    Join Date
    Dec 2011
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Probaly made DTM improperly.
    I think magic.Simba has spell casting procedure in it Anywyas, and you can just use a coordinate click (assuming eveyones spells are in the same spot).

    Anywyas, try using a bitmap instead of a DTM for this, and use findbitmaptolerance to search for it this will be easier and more successful!
    Thank you I'll give it another shot :P

  4. #4
    Join Date
    Dec 2011
    Location
    Texas
    Posts
    348
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yea I used a bitmap it works for me 99% of the time

  5. #5
    Join Date
    Sep 2007
    Location
    Australia, NSW
    Posts
    934
    Mentioned
    6 Post(s)
    Quoted
    145 Post(s)

    Default

    Although it is unlikely, you might not be waiting enough time for the magic tab to appear. So you might want to call something like this:
    Simba Code:
    procedure Tele;
    var
      t: Integer;
    begin
      Writeln('Teleporting!');
      GameTab(tab_Magic);
      MarkTime(t);
      Repeat
        Wait(200 + Random(50));
        if FindDTM(Home, x, y, MIX1, MIY1, MIX2, MIY2) then
          Mouse(x, y, 3, 3, True);
      Until(TimeFromMark(t) > 3000)
      Wait(1900 + Random(25));
    end;
    In this procedure now, it will keep trying to find the DTM for 3 seconds. If it can't find it, then it will stop.

    MarkTime(t) get the time at that position,
    TimeFromMark(t) shows how much time has passed since then in milliseconds.

    INACTIVE
    How-to: Make S.M.A.R.T. less laggy

    Sell me your Maple Shieldbows (u)! Up to 95gp ea!

    My Scripts:
    Ivy Chopper Ultra [RS3] | Fantastic Fletcher [RS3]
    99 x78 | 99 x10 | 99 x2 | 99 x12


    Use the REPORT tags when posting progress reports to make life easier (:
    [REPORT]Put progress report in here![/REPORT]

    Super Savvy Smither V1.06Cool Classy Cooker V1.02 [EoC]

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
  •