Results 1 to 3 of 3

Thread: Uptext problem Cball Maker

  1. #1
    Join Date
    May 2013
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Uptext problem Cball Maker

    Alright, so I'm working on a 07scape Port Phastmatys Cball maker and I'm having problems using a steel bar with the furnace. When I go to click on the furnace normally without the steel bar clicked the furnace is found just fine, and it clicks smelt. Now as soon as I add the part where the steel bar is clicked it can never find the furnace, I think this is because of uptext, but i'm not positive. Portion of script I'm having issues with is below(sorry if everything is a bit sloppy this is my first script and I still have to clean it up some):


    Simba Code:
    Procedure FurnaceAndSmelt;
    var
      x, y, H, I : integer;
    begin
      wait(2000 + Random(1000));
      SteelBarDTM := DTMFromString('mFQEAAHiclc3LCoAwDETRqIWq0IIvRAR/t1s/2Vs6G5cZOFkkIUlmlnEh4MSCAzc2RAzWMiGpN2u3x6o7UXv11qhene14S6F2Lg/Vy/eh+eUD0vEEjA==');
          if (FindDTM(SteelBarDTM, X, Y, MIX1, MIY1, MIX2, MIY2)) Then
        begin
          MMouse(X, Y, 7, 7);
          If (WaitUpText('bar',300)) Then
          ClickMouse2(true);
          end;
      writeln('searching');
      FindColorsSpiralTolerance(MSCX, MSCY, TPA, FurnaceColor, MSX1, MSY1, MSX2, MSY2, 20);
      ATPA := TPAtoATPA(TPA, 25);
      If Length(ATPA) = 0 Then
        Exit;
      H := High(ATPA);
      For I := 0 To H Do
      Begin
        MiddleTPAEx(ATPA[I], X, Y);
        MMouse(X, Y, 3, 3);
        Wait(50 + Random(50));
        If WaitUpText('urnace', 400) Then
        Begin
        writeln('Furnace Found');
        Mouse(X, Y, 5, 5, true);
        wait(50 + Random(50));
        FreeDTM(SteelBarDTM);
        break;
        end;
      end;
    end;

  2. #2
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Is the uptext different when the steel bar is selected compared to when it's not?
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  3. #3
    Join Date
    May 2013
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Yeah, once the steel bar is selected your uptext becomes "Use steel bar --->". Out of curiosity I had it write the uptext to the debug box while only the steel bar was selected like that and I got a ton of random characters like this "Hap ^bpp| &p[ ^ ^ ^p[p p^b|p&a".

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
  •