Page 12 of 16 FirstFirst ... 21011121314 ... LastLast
Results 276 to 300 of 393

Thread: PoH Firemaker | Butler | No Randoms | Flawless

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

    Default

    Decided to take a break from runespan and mess around with it a little more. Great script again! So far with current tweeks:

    Progress Report:
    ============S1NFiremaker===========
    Time Running: 29 Minutes and 16 Seconds
    XP Earned: 78627
    XP Per Hour: 161286
    Logs Burned: 576
    Burned Per Hour: 1181
    ===================================
    ===================================


    Simba Code:
    program new;
    {$include srl/srl/misc/smart.simba}
    {$I SRL/SRL.simba}
    {$I srl/srl/misc/debug.simba}
    var
      StartTime,XPBurn,Burned:Integer;
      //Cases
      UseProggys,NextLight:Boolean;
      TypeOfLogs:String;
    procedure DeclarePlayers;
    begin

      UseProggys := False; //Yes or No * True or False

      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name := ''; // Username
      Players[0].Pass := ''; // Password
      Players[0].Active := True;
      Players[0].Pin := '';
      Players[0].BoxRewards := ['Xp', 'mote', 'ostume', 'oins', 'aphire', 'ssence'];
    end;// declare players
    procedure SetupLogin;
    begin
      ClearDebug;
      Smart_Server := 10;
      Smart_Members := True;
      Smart_Signed := True;
      Smart_SuperDetail := False;
      SetupSRL;
    end;
    Procedure HumanMMouse(eX, eY, ranX, ranY: Integer);
      var
        randSpeed: extended;
        X,Y,X2,Y2,A,Dist,MP: integer;
      begin
        A := MouseSpeed;
        GetMousePos(X, Y);
        Dist := Distance(X, Y, eX, eY);
        MP := Round(Dist/150);
        if MP < 0 then
          MP := 1;

        randSpeed := (random(MouseSpeed) / 2.0 + MouseSpeed) / 10.0;
        X2 := RandomRange(eX-(A*MP), eX+(A*MP));
        Y2 := RandomRange(eY-(A*MP), eY+(A*MP));
        WindMouse(X, Y, X2, Y2, 11, 8, 10.0 / randSpeed, 12.0 / randSpeed, 10.0 * randSpeed, 10.0 * randSpeed);
        GetMousePos(X, Y);
        MMouse(eX, eY, ranX, ranY);
        MouseSpeed := A;
      end;
    Procedure HumanMouse(eX, eY, ranX, ranY: Integer);
      var
        randSpeed: extended;
        X,Y,X2,Y2,A,Dist,MP: integer;
      begin
        A := MouseSpeed;
        GetMousePos(X, Y);
        Dist := Distance(X, Y, eX, eY);
        MP := Round(Dist/150);
        if MP < 0 then
          MP := 1;

        randSpeed := (random(MouseSpeed) / 2.0 + MouseSpeed) / 10.0;
        X2 := RandomRange(eX-(A*MP), eX+(A*MP));
        Y2 := RandomRange(eY-(A*MP), eY+(A*MP));
        WindMouse(X, Y, X2, Y2, 11, 8, 10.0 / randSpeed, 12.0 / randSpeed, 10.0 * randSpeed, 10.0 * randSpeed);
        GetMousePos(X, Y);
        MMouse(eX, eY, ranX, ranY);
        MouseSpeed := A;
        ClickMouse2(True);
      end;
    function FindButler(var fx, fy: Integer): Boolean;
    var
      arP, arAP: TPointArray;
      arC, arUC: TIntegerArray;
      ararP: T2DPointArray;
      tmpCTS, i, j, arL, arL2: Integer;
      P: TPoint;
      X, Y, Z: Extended;
    begin
      tmpCTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(0.39, 1.37);

      if not(FindColorsTolerance(arP, 2174030, 196,79,349,222, 9)) then
      begin
        ColorToleranceSpeed(tmpCTS);
        SetColorSpeed2Modifiers(0.2, 0.2);
        Exit;
      end;

      arC := GetColors(arP);
      arUC := arC;
      ClearSameIntegers(arUC);
      arL := High(arUC);
      arL2 := High(arC);

      for i := 0 to arL do
      begin
        ColorToXYZ(arC[i], X, Y, Z);

        if (X >= 1.53) and (X <= 7.94) and (Y >= 1.28) and (Y <= 6.22) and (Z >= 0.91) and (Z <= 3.49) then
        begin
          for j := 0 to arL2 do
          begin
            if (arUC[i] = arC[j]) then
            begin
              SetLength(arAP, Length(arAP) + 1);
              arAP[High(arAP)] := arP[j];
            end;
          end;
        end;
      end;

      SortTPAFrom(arAP, Point(MSCX, MSCY));
      ararP := SplitTPAEx(arAP, 10, 10);
      arL := High(ararP);

      for i := 0 to arL do
      begin
        if (Length(ararP[i]) < 10) then Continue;
        P := MiddleTPA(ararP[i]);
        HumanMMouse(p.x,p.y,5,5);
        Wait(100 + Random(100));
        if (IsUpText('emon')) then
        begin;
          Result := True;
          Break;
        end;
      end;

      ColorToleranceSpeed(tmpCTS);
      SetColorSpeed2Modifiers(0.2, 0.2);

      if (i = arL + 1) then
      begin
        Exit;
      end;

      GetMousePos(fx, fy);
    end;
    function FireColor: Integer;
    var
      arP: TPointArray;
      arC: TIntegerArray;
      tmpCTS, i, arL: Integer;
      X, Y, Z: Extended;
    begin
      tmpCTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(0.13, 0.49);

      FindColorsSpiralTolerance(MSCX, MSCY, arP, 1738208, MSX1, MSY1, MSX2, MSY2, 17);
      if (Length(arP) = 0) then
      begin
        ColorToleranceSpeed(tmpCTS);
        SetColorSpeed2Modifiers(0.2, 0.2);
        Exit;
      end;

      arC := GetColors(arP);
      ClearSameIntegers(arC);
      arL := High(arC);

      for i := 0 to arL do
      begin
        ColorToXYZ(arC[i], X, Y, Z);

        if (X >= 13.94) and (X <= 58.29) and (Y >= 10.60) and (Y <= 58.15) and (Z >= 2.00) and (Z <= 18.07) then
        begin
          Result := arC[i];
          Break;
        end;
      end;

      ColorToleranceSpeed(tmpCTS);
      SetColorSpeed2Modifiers(0.2, 0.2);
    end;

    function WaitNPCChatText(Text:String; Time:Integer):Boolean;
    var
      t:Integer;
    begin
      MarkTime(t);
      repeat
        wait(10);
        if TimeFromMark(t) > Time then
        begin
          Result := False;
          Exit;
        end;
      until(FindNPCChatText(Text,Nothing));
      Result := True;
    end;
    procedure StoreUptext;
    begin
      if ExistsItem(1) then
      begin
        Mouseitem(1,3);
        if IsUpText('ew') then
          TypeOfLogs := 'Yew';
        if IsUptext('agic') then
          TypeofLogs := 'Magic';
        if IsUpText('aple') then
          TypeOfLogs := 'Maple';
        if IsUpText('Oak') then
          TypeOfLogs := 'Oak';
        if IsUpText('llow') then
          TypeOfLogs := 'Willow';
      end;
      if TypeOfLogs = '' then
        writeLn('Failed uptext checking');
      writeLn('We are burning: ' + TypeOfLogs);
    end;
    function WaitInvCountInc(Time:Integer):Boolean;
    var
      Inv1,Inv2,t:Integer;
    begin
      MarkTime(t);
      Inv1 := InvCount;
      repeat
        wait(10);
        Inv2 := InvCount;
        if TimeFromMark(t) > Time then
        begin
          Result := False;
          Exit;
        end;
      until(Inv2 > Inv1);
      Result := True;
    end;
    procedure Randoms;
    begin
      if FindNormalRandoms then
        if not LoggedIn then
          TerminateScript;
    end;
    function WaitInvCountDec(Time:Integer):Boolean;
    var
      Inv1,Inv2,t:Integer;
    begin
      MarkTime(t);
      Inv1 := InvCount;
      repeat
        wait(10);
        Inv2 := InvCount;
        if TimeFromMark(t) > Time then
        begin
          Result := False;
          Exit;
        end;
      until(Inv2 < Inv1);
      Result := True;
    end;
    procedure Proggy;
    var
        //progress variables
      XP,XPH,Sec,BPH:Integer;
    begin
    ClearDebug;
    XP := GetXPBarTotal - Players[CurrentPlayer].Integers[0];
    Sec:= (1+((Getsystemtime-StartTime)/1000));
    XPH := (3600 * XP) / (SeC);
    BPH := (3600 * Burned) / (SeC);

    writeLn('=============v1.7==================');
    writeLn('============S1NFiremaker===========');
    writeLn('Time Running: ' + TimeRunning);
    writeLn('XP Earned: ' + IntToStr(XP));
    writeLn('XP Per Hour: ' + IntToStr(XPH));
    writeLn('Logs Burned: ' + IntToStr(Burned));
    writeLn('Burned Per Hour: ' + IntToStr(BPH));
    writelN('===================================');
    writeLn('===================================');
    end;
    function WaitXPIncrease(Time:Integer):Boolean;
    var
      First,Second,t:Integer;
    begin
      First := GetXPBarTotal;
      MarkTime(T);
      repeat
        wait(10);
        Second := GetXPBarTotal;
        if TimeFromMark(t) > Time then
        begin
          Result := False;
          Exit;
        end;
      until(Second > First);
      Result := True;
    end;
    function IsFireUnder:Boolean;
    var
      x,y:Integer;
    begin
      Result := FindColorSpiralTolerance(x,y,FireColor,242,172,263,181,3);
    end;
    function GetLogs(Amount:Integer; DoWait:Boolean):Boolean;
    var
      x,y,t:Integer;
    begin
    Result := False;
      if ExistsItem(1) then
        MouseItem(1,1);
      if FindButler(x,y) then
      begin
        ClickMouse2(True);
        If WaitNPCChatText('coins',1250) Then
        Begin
          ClickContinue(True, True);
          TypeSendEx('1',False);
          Wait(RandomRange(800,1000));
          MouseItem(1,1);
          if FindButler(x,y) then
            ClickMouse2(True);
        end;
        if WaitNPCChatText('cert',4000) then
        begin
          TypeSendEx('1',False);
          //wait(RandomRange(1500,1700));
          If WaitFindColor(X,Y,0,266,397,281,407,1,5000) Then
          //if FindColorSpiralTolerance(x,y,9877449,MCX1,MCY1,MCX2,MCY2,38) then
          begin
            TypeSend('26');
            if DoWait then
              if WaitInvCountInc(10000) then
                Result := True;
          end;
        end;
      end;
    end;
    function Light(Slot:Integer):Boolean;
    begin
      If Not NextLight Then
      Begin
        If Not OptionsExist(['a','g','h'],Nothing) Then
        Begin
         // Writeln('nooptionfound');
          MouseItem(Slot,0);
        End;
        if WaitOptionMulti(['ight','Lig'],750) then
        Begin
        //  Writeln('foundoptionfound');
          Result := True;
        End;
        Inc(Burned);
      End Else
      Begin
      //  Writeln('clicking next spot');
        MouseItem(Slot+1,0);
        NextLight:=False;
      End;
    end;
    function Relocate:Boolean;
    var
      x,y,ti:Integer;
    begin
      MakeCompass(0);
      case random(2) of
        0:
        begin
          HumanMouse(688,75,4,4);
          FFlag(1);
          Wait(RandomRange(650,750));
          HumanMouse(671,80,2,2);
          Wait(RandomRange(1000,1750));
          Repeat
            Wait(100);
          Until Not IsMoving;
          If FlagPresent Then
          Begin
            HumanMouse(671,80,2,2);
            FFlag(1);
            Wait(RandomRange(650,750));
          End;
        end;
        1:
        begin
          HumanMouse(688,95,5,5);
          FFlag(1);
          Wait(RandomRange(650,750));
          HumanMouse(688,80,2,2);
          Wait(RandomRange(1000,1750));
          Repeat
            Wait(100);
          Until Not IsMoving;
          If FlagPresent Then
          Begin
            HumanMouse(688,80,2,2);
            FFlag(1);
            Wait(RandomRange(650,750));
          End;
        end;
      end;
      MarkTime(TI);
      Repeat
        Wait(100);
        If TimeFromMark(TI)>6000 Then
          Break;
      Until InvCount>4;

      if InvCount = 1 then
      Begin
        repeat
          wait(10);
        until(FindButler(x,y));
        GetLogs(26,True);
        Exit;
      End;
      Randoms;
    end;
    procedure BurnLogs;
    var
      i,x,y:Integer;
    begin
      for i := 2 to 28 do
      begin
        if FindColorSpiralTolerance(x,y,11059400,173,234,201,253,0) Then
        Begin
          HumanMouse(627,79,5,5);
          FFlag(1);
          Wait(RandomRange(650,750));
        End;
        if FindColorSpiralTolerance(x,y,11059400,173,101,201,120,0) Then
        Begin
          HumanMouse(628,91,5,5);
          FFlag(1);
          Wait(RandomRange(650,750));
        End;
        if ExistsItem(i) then
        begin
          if FIndBlackChatMessage('here') then
          begin
            case Random(2) of
              0:
              begin
                HumanMouse(627,79,5,5);
                FFlag(1);
                Wait(RandomRange(650,750));
              end;
              1:
              begin
                HumanMouse(628,91,5,5);
                FFlag(1);
                Wait(RandomRange(650,750));
              end;
            end;
            ExamineInv;
            Wait(RandomRange(650,750));
            Exit;
          end;
          Light(i);
          Proggy;
          NextLight:=True;
          Light(i);
          WaitXPIncrease(RandomRange(3000,3200));
          if (InvCount = 1) And (Not OptionsExist(['a','g','h'],Nothing)) then
          begin
            GetLogs(26,False);
            Relocate;
            Randoms;
            Exit;
          end;
          Randoms;
        end else
          If OptionsExist(['a','g','h'],Nothing) Then
          Begin
            NextLight:=False;
            Light(i);
            WaitXPIncrease(RandomRange(3000,3200));
            if (InvCount = 1) And (Not OptionsExist(['a','g','h'],Nothing)) then
            begin
              GetLogs(26,False);
              Relocate;
            end;
            Randoms;
          End;
      end;
      Randoms;
    end;
    procedure ScriptStart;
    var
      StartInv,NTW:Integer;
    begin
      //start with 13 logs + noted,  total of 14 items
      //StartInv is equal to 14, ntw = 28 - startinv, 14
      //Above is just me spouting out the equation, dont bother with it
      StartInv := InvCount;
      NTW := 28 - StartInv;
      if StartInv < 2 then
        GetLogs(NTW,True);
    end;
    begin
      ClearDebug;
      SetupLogin;
      DeclarePlayers;
      LoginPlayer;
      MouseSpeed := RandomRange(18,20);
      writeLn('Changes in 1.7: ');
      writeln('Will no longer light the whole row');
      writeLn('Wont be a retard anymore. Hopefully.');

      NextLight:=False;

      Wait(1500);
      StartTime:=GetSystemTime;
        if (Players[CurrentPlayer].Integers[1] = 0) then
        begin
          if not IsXPBarOpen then ToggleXPBar(true);
          Players[CurrentPlayer].Integers[0] := GetXPBarTotal;
          Players[CurrentPlayer].Integers[1] := (Players[CurrentPlayer].Integers[1] + 1);
        end;
      StoreUptext;
      ScriptStart;
      repeat
        BurnLogs;
      until not loggedin;
    end.

  2. #277
    Join Date
    May 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ashaman88 View Post
    Decided to take a break from runespan and mess around with it a little more. Great script again! So far with current tweeks:

    Progress Report:
    ============S1NFiremaker===========
    Time Running: 29 Minutes and 16 Seconds
    XP Earned: 78627
    XP Per Hour: 161286
    Logs Burned: 576
    Burned Per Hour: 1181
    ===================================
    ===================================


    Simba Code:
    program new;
    {$include srl/srl/misc/smart.simba}
    {$I SRL/SRL.simba}
    {$I srl/srl/misc/debug.simba}
    var
      StartTime,XPBurn,Burned:Integer;
      //Cases
      UseProggys,NextLight:Boolean;
      TypeOfLogs:String;
    procedure DeclarePlayers;
    begin

      UseProggys := False; //Yes or No * True or False

      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name := ''; // Username
      Players[0].Pass := ''; // Password
      Players[0].Active := True;
      Players[0].Pin := '';
      Players[0].BoxRewards := ['Xp', 'mote', 'ostume', 'oins', 'aphire', 'ssence'];
    end;// declare players
    procedure SetupLogin;
    begin
      ClearDebug;
      Smart_Server := 10;
      Smart_Members := True;
      Smart_Signed := True;
      Smart_SuperDetail := False;
      SetupSRL;
    end;
    Procedure HumanMMouse(eX, eY, ranX, ranY: Integer);
      var
        randSpeed: extended;
        X,Y,X2,Y2,A,Dist,MP: integer;
      begin
        A := MouseSpeed;
        GetMousePos(X, Y);
        Dist := Distance(X, Y, eX, eY);
        MP := Round(Dist/150);
        if MP < 0 then
          MP := 1;

        randSpeed := (random(MouseSpeed) / 2.0 + MouseSpeed) / 10.0;
        X2 := RandomRange(eX-(A*MP), eX+(A*MP));
        Y2 := RandomRange(eY-(A*MP), eY+(A*MP));
        WindMouse(X, Y, X2, Y2, 11, 8, 10.0 / randSpeed, 12.0 / randSpeed, 10.0 * randSpeed, 10.0 * randSpeed);
        GetMousePos(X, Y);
        MMouse(eX, eY, ranX, ranY);
        MouseSpeed := A;
      end;
    Procedure HumanMouse(eX, eY, ranX, ranY: Integer);
      var
        randSpeed: extended;
        X,Y,X2,Y2,A,Dist,MP: integer;
      begin
        A := MouseSpeed;
        GetMousePos(X, Y);
        Dist := Distance(X, Y, eX, eY);
        MP := Round(Dist/150);
        if MP < 0 then
          MP := 1;

        randSpeed := (random(MouseSpeed) / 2.0 + MouseSpeed) / 10.0;
        X2 := RandomRange(eX-(A*MP), eX+(A*MP));
        Y2 := RandomRange(eY-(A*MP), eY+(A*MP));
        WindMouse(X, Y, X2, Y2, 11, 8, 10.0 / randSpeed, 12.0 / randSpeed, 10.0 * randSpeed, 10.0 * randSpeed);
        GetMousePos(X, Y);
        MMouse(eX, eY, ranX, ranY);
        MouseSpeed := A;
        ClickMouse2(True);
      end;
    function FindButler(var fx, fy: Integer): Boolean;
    var
      arP, arAP: TPointArray;
      arC, arUC: TIntegerArray;
      ararP: T2DPointArray;
      tmpCTS, i, j, arL, arL2: Integer;
      P: TPoint;
      X, Y, Z: Extended;
    begin
      tmpCTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(0.39, 1.37);

      if not(FindColorsTolerance(arP, 2174030, 196,79,349,222, 9)) then
      begin
        ColorToleranceSpeed(tmpCTS);
        SetColorSpeed2Modifiers(0.2, 0.2);
        Exit;
      end;

      arC := GetColors(arP);
      arUC := arC;
      ClearSameIntegers(arUC);
      arL := High(arUC);
      arL2 := High(arC);

      for i := 0 to arL do
      begin
        ColorToXYZ(arC[i], X, Y, Z);

        if (X >= 1.53) and (X <= 7.94) and (Y >= 1.28) and (Y <= 6.22) and (Z >= 0.91) and (Z <= 3.49) then
        begin
          for j := 0 to arL2 do
          begin
            if (arUC[i] = arC[j]) then
            begin
              SetLength(arAP, Length(arAP) + 1);
              arAP[High(arAP)] := arP[j];
            end;
          end;
        end;
      end;

      SortTPAFrom(arAP, Point(MSCX, MSCY));
      ararP := SplitTPAEx(arAP, 10, 10);
      arL := High(ararP);

      for i := 0 to arL do
      begin
        if (Length(ararP[i]) < 10) then Continue;
        P := MiddleTPA(ararP[i]);
        HumanMMouse(p.x,p.y,5,5);
        Wait(100 + Random(100));
        if (IsUpText('emon')) then
        begin;
          Result := True;
          Break;
        end;
      end;

      ColorToleranceSpeed(tmpCTS);
      SetColorSpeed2Modifiers(0.2, 0.2);

      if (i = arL + 1) then
      begin
        Exit;
      end;

      GetMousePos(fx, fy);
    end;
    function FireColor: Integer;
    var
      arP: TPointArray;
      arC: TIntegerArray;
      tmpCTS, i, arL: Integer;
      X, Y, Z: Extended;
    begin
      tmpCTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(0.13, 0.49);

      FindColorsSpiralTolerance(MSCX, MSCY, arP, 1738208, MSX1, MSY1, MSX2, MSY2, 17);
      if (Length(arP) = 0) then
      begin
        ColorToleranceSpeed(tmpCTS);
        SetColorSpeed2Modifiers(0.2, 0.2);
        Exit;
      end;

      arC := GetColors(arP);
      ClearSameIntegers(arC);
      arL := High(arC);

      for i := 0 to arL do
      begin
        ColorToXYZ(arC[i], X, Y, Z);

        if (X >= 13.94) and (X <= 58.29) and (Y >= 10.60) and (Y <= 58.15) and (Z >= 2.00) and (Z <= 18.07) then
        begin
          Result := arC[i];
          Break;
        end;
      end;

      ColorToleranceSpeed(tmpCTS);
      SetColorSpeed2Modifiers(0.2, 0.2);
    end;

    function WaitNPCChatText(Text:String; Time:Integer):Boolean;
    var
      t:Integer;
    begin
      MarkTime(t);
      repeat
        wait(10);
        if TimeFromMark(t) > Time then
        begin
          Result := False;
          Exit;
        end;
      until(FindNPCChatText(Text,Nothing));
      Result := True;
    end;
    procedure StoreUptext;
    begin
      if ExistsItem(1) then
      begin
        Mouseitem(1,3);
        if IsUpText('ew') then
          TypeOfLogs := 'Yew';
        if IsUptext('agic') then
          TypeofLogs := 'Magic';
        if IsUpText('aple') then
          TypeOfLogs := 'Maple';
        if IsUpText('Oak') then
          TypeOfLogs := 'Oak';
        if IsUpText('llow') then
          TypeOfLogs := 'Willow';
      end;
      if TypeOfLogs = '' then
        writeLn('Failed uptext checking');
      writeLn('We are burning: ' + TypeOfLogs);
    end;
    function WaitInvCountInc(Time:Integer):Boolean;
    var
      Inv1,Inv2,t:Integer;
    begin
      MarkTime(t);
      Inv1 := InvCount;
      repeat
        wait(10);
        Inv2 := InvCount;
        if TimeFromMark(t) > Time then
        begin
          Result := False;
          Exit;
        end;
      until(Inv2 > Inv1);
      Result := True;
    end;
    procedure Randoms;
    begin
      if FindNormalRandoms then
        if not LoggedIn then
          TerminateScript;
    end;
    function WaitInvCountDec(Time:Integer):Boolean;
    var
      Inv1,Inv2,t:Integer;
    begin
      MarkTime(t);
      Inv1 := InvCount;
      repeat
        wait(10);
        Inv2 := InvCount;
        if TimeFromMark(t) > Time then
        begin
          Result := False;
          Exit;
        end;
      until(Inv2 < Inv1);
      Result := True;
    end;
    procedure Proggy;
    var
        //progress variables
      XP,XPH,Sec,BPH:Integer;
    begin
    ClearDebug;
    XP := GetXPBarTotal - Players[CurrentPlayer].Integers[0];
    Sec:= (1+((Getsystemtime-StartTime)/1000));
    XPH := (3600 * XP) / (SeC);
    BPH := (3600 * Burned) / (SeC);

    writeLn('=============v1.7==================');
    writeLn('============S1NFiremaker===========');
    writeLn('Time Running: ' + TimeRunning);
    writeLn('XP Earned: ' + IntToStr(XP));
    writeLn('XP Per Hour: ' + IntToStr(XPH));
    writeLn('Logs Burned: ' + IntToStr(Burned));
    writeLn('Burned Per Hour: ' + IntToStr(BPH));
    writelN('===================================');
    writeLn('===================================');
    end;
    function WaitXPIncrease(Time:Integer):Boolean;
    var
      First,Second,t:Integer;
    begin
      First := GetXPBarTotal;
      MarkTime(T);
      repeat
        wait(10);
        Second := GetXPBarTotal;
        if TimeFromMark(t) > Time then
        begin
          Result := False;
          Exit;
        end;
      until(Second > First);
      Result := True;
    end;
    function IsFireUnder:Boolean;
    var
      x,y:Integer;
    begin
      Result := FindColorSpiralTolerance(x,y,FireColor,242,172,263,181,3);
    end;
    function GetLogs(Amount:Integer; DoWait:Boolean):Boolean;
    var
      x,y,t:Integer;
    begin
    Result := False;
      if ExistsItem(1) then
        MouseItem(1,1);
      if FindButler(x,y) then
      begin
        ClickMouse2(True);
        If WaitNPCChatText('coins',1250) Then
        Begin
          ClickContinue(True, True);
          TypeSendEx('1',False);
          Wait(RandomRange(800,1000));
          MouseItem(1,1);
          if FindButler(x,y) then
            ClickMouse2(True);
        end;
        if WaitNPCChatText('cert',4000) then
        begin
          TypeSendEx('1',False);
          //wait(RandomRange(1500,1700));
          If WaitFindColor(X,Y,0,266,397,281,407,1,5000) Then
          //if FindColorSpiralTolerance(x,y,9877449,MCX1,MCY1,MCX2,MCY2,38) then
          begin
            TypeSend('26');
            if DoWait then
              if WaitInvCountInc(10000) then
                Result := True;
          end;
        end;
      end;
    end;
    function Light(Slot:Integer):Boolean;
    begin
      If Not NextLight Then
      Begin
        If Not OptionsExist(['a','g','h'],Nothing) Then
        Begin
         // Writeln('nooptionfound');
          MouseItem(Slot,0);
        End;
        if WaitOptionMulti(['ight','Lig'],750) then
        Begin
        //  Writeln('foundoptionfound');
          Result := True;
        End;
        Inc(Burned);
      End Else
      Begin
      //  Writeln('clicking next spot');
        MouseItem(Slot+1,0);
        NextLight:=False;
      End;
    end;
    function Relocate:Boolean;
    var
      x,y,ti:Integer;
    begin
      MakeCompass(0);
      case random(2) of
        0:
        begin
          HumanMouse(688,75,4,4);
          FFlag(1);
          Wait(RandomRange(650,750));
          HumanMouse(671,80,2,2);
          Wait(RandomRange(1000,1750));
          Repeat
            Wait(100);
          Until Not IsMoving;
          If FlagPresent Then
          Begin
            HumanMouse(671,80,2,2);
            FFlag(1);
            Wait(RandomRange(650,750));
          End;
        end;
        1:
        begin
          HumanMouse(688,95,5,5);
          FFlag(1);
          Wait(RandomRange(650,750));
          HumanMouse(688,80,2,2);
          Wait(RandomRange(1000,1750));
          Repeat
            Wait(100);
          Until Not IsMoving;
          If FlagPresent Then
          Begin
            HumanMouse(688,80,2,2);
            FFlag(1);
            Wait(RandomRange(650,750));
          End;
        end;
      end;
      MarkTime(TI);
      Repeat
        Wait(100);
        If TimeFromMark(TI)>6000 Then
          Break;
      Until InvCount>4;

      if InvCount = 1 then
      Begin
        repeat
          wait(10);
        until(FindButler(x,y));
        GetLogs(26,True);
        Exit;
      End;
      Randoms;
    end;
    procedure BurnLogs;
    var
      i,x,y:Integer;
    begin
      for i := 2 to 28 do
      begin
        if FindColorSpiralTolerance(x,y,11059400,173,234,201,253,0) Then
        Begin
          HumanMouse(627,79,5,5);
          FFlag(1);
          Wait(RandomRange(650,750));
        End;
        if FindColorSpiralTolerance(x,y,11059400,173,101,201,120,0) Then
        Begin
          HumanMouse(628,91,5,5);
          FFlag(1);
          Wait(RandomRange(650,750));
        End;
        if ExistsItem(i) then
        begin
          if FIndBlackChatMessage('here') then
          begin
            case Random(2) of
              0:
              begin
                HumanMouse(627,79,5,5);
                FFlag(1);
                Wait(RandomRange(650,750));
              end;
              1:
              begin
                HumanMouse(628,91,5,5);
                FFlag(1);
                Wait(RandomRange(650,750));
              end;
            end;
            ExamineInv;
            Wait(RandomRange(650,750));
            Exit;
          end;
          Light(i);
          Proggy;
          NextLight:=True;
          Light(i);
          WaitXPIncrease(RandomRange(3000,3200));
          if (InvCount = 1) And (Not OptionsExist(['a','g','h'],Nothing)) then
          begin
            GetLogs(26,False);
            Relocate;
            Randoms;
            Exit;
          end;
          Randoms;
        end else
          If OptionsExist(['a','g','h'],Nothing) Then
          Begin
            NextLight:=False;
            Light(i);
            WaitXPIncrease(RandomRange(3000,3200));
            if (InvCount = 1) And (Not OptionsExist(['a','g','h'],Nothing)) then
            begin
              GetLogs(26,False);
              Relocate;
            end;
            Randoms;
          End;
      end;
      Randoms;
    end;
    procedure ScriptStart;
    var
      StartInv,NTW:Integer;
    begin
      //start with 13 logs + noted,  total of 14 items
      //StartInv is equal to 14, ntw = 28 - startinv, 14
      //Above is just me spouting out the equation, dont bother with it
      StartInv := InvCount;
      NTW := 28 - StartInv;
      if StartInv < 2 then
        GetLogs(NTW,True);
    end;
    begin
      ClearDebug;
      SetupLogin;
      DeclarePlayers;
      LoginPlayer;
      MouseSpeed := RandomRange(18,20);
      writeLn('Changes in 1.7: ');
      writeln('Will no longer light the whole row');
      writeLn('Wont be a retard anymore. Hopefully.');

      NextLight:=False;

      Wait(1500);
      StartTime:=GetSystemTime;
        if (Players[CurrentPlayer].Integers[1] = 0) then
        begin
          if not IsXPBarOpen then ToggleXPBar(true);
          Players[CurrentPlayer].Integers[0] := GetXPBarTotal;
          Players[CurrentPlayer].Integers[1] := (Players[CurrentPlayer].Integers[1] + 1);
        end;
      StoreUptext;
      ScriptStart;
      repeat
        BurnLogs;
      until not loggedin;
    end.
    Hey asha, is there any reason as to why when the script is running, it takes short breaks after lighting a log (instead of it being fluid) and so it has to do the tinderbox action again to get it started?

    Because others are getting in excess of 1k an hour, and I'm getting around 740 (even with the new script that you just posted).

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

    Default

    Quote Originally Posted by xxshabsxx View Post
    Hey asha, is there any reason as to why when the script is running, it takes short breaks after lighting a log (instead of it being fluid) and so it has to do the tinderbox action again to get it started?

    Because others are getting in excess of 1k an hour, and I'm getting around 740 (even with the new script that you just posted).
    Do you have the top xp bar set to firemaking or total? If not then thats probably why. Also having it set to 'lots' won't work either. The top bar must be firemaking or total.

  4. #279
    Join Date
    May 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ashaman88 View Post
    Do you have the top xp bar set to firemaking or total? If not then thats probably why. Also having it set to 'lots' won't work either. The top bar must be firemaking or total.
    Oh god thank you so much!

    I had no idea that that would have effected it.

    A new problem has arisen though, it seems to not walk back to the correct spot (only in the version you just posted), it slowly makes it way furhter and further away from the south-east corner until it cant go anymore.

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

    Default

    Quote Originally Posted by xxshabsxx View Post
    Oh god thank you so much!

    I had no idea that that would have effected it.

    A new problem has arisen though, it seems to not walk back to the correct spot (only in the version you just posted), it slowly makes it way furhter and further away from the south-east corner until it cant go anymore.
    Did you try his orig? When you say further away from se do you mean to the west?

    Here is it running so far w/ maples:

    Progress Report:
    =============v1.7==================
    ============S1NFiremaker===========
    Time Running: 1 Hours, 28 Minutes and 49 Seconds
    XP Earned: 239323
    XP Per Hour: 161735
    Logs Burned: 1754
    Burned Per Hour: 1185
    ===================================
    ===================================

  6. #281
    Join Date
    May 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ashaman88 View Post
    Did you try his orig? When you say further away from se do you mean to the west?

    Here is it running so far w/ maples:

    Progress Report:
    =============v1.7==================
    ============S1NFiremaker===========
    Time Running: 1 Hours, 28 Minutes and 49 Seconds
    XP Earned: 239323
    XP Per Hour: 161735
    Logs Burned: 1754
    Burned Per Hour: 1185
    ===================================
    ===================================
    Yes I used his orig, and that works fine. By moving more away from the SE, I mean that it origin position (where it lights its first log) moves further to the west ever inventory.

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

    Default

    Quote Originally Posted by xxshabsxx View Post
    Yes I used his orig, and that works fine. By moving more away from the SE, I mean that it origin position (where it lights its first log) moves further to the west ever inventory.
    hmm that does seem strange considering the x values are the same. Well if it's working for you then stick with the orig.

  8. #283
    Join Date
    May 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ashaman88 View Post
    hmm that does seem strange considering the x values are the same. Well if it's working for you then stick with the orig.
    Yeah I'm just going to stick with the original for the moment.

    Once again, thanks very much for all your help!

  9. #284
    Join Date
    Apr 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Brilliant script!

    ============S1NFiremaker===========
    Time Running: 2 Hours, 28 Minutes and 21 Seconds
    XP Earned: 516780
    XP Per Hour: 209034
    Logs Burned: 2604
    Burned Per Hour: 1053
    ===================================
    ===================================

  10. #285
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Quote Originally Posted by xxshabsxx View Post
    Yeah I'm just going to stick with the original for the moment.

    Once again, thanks very much for all your help!
    He's awesome yes.
    And im so sorry! I completely forgot that you need an XP Bar at the top since I base my timing off the XP Rise
    It ensures for the most efficient imo.

    Quote Originally Posted by Bossman00 View Post
    Brilliant script!

    ============S1NFiremaker===========
    Time Running: 2 Hours, 28 Minutes and 21 Seconds
    XP Earned: 516780
    XP Per Hour: 209034
    Logs Burned: 2604
    Burned Per Hour: 1053
    ===================================
    ===================================
    Thank you! Yew Logs?

  11. #286
    Join Date
    Apr 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    Thank you! Yew Logs?
    Yup!

    Thanks again

  12. #287
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    You're welcome.
    I'll be firemaking on my alternate account to 99, so this script isn't anywhere near done yet!

  13. #288
    Join Date
    Nov 2011
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks for the script i got 40-99 with it in like 5 days doing maples.

  14. #289
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Quote Originally Posted by anvi89 View Post
    thanks for the script i got 40-99 with it in like 5 days doing maples.
    Yeah, tbh, maples are the best xp/gp here.
    I did Magics since it was the fastest xp haha. I'll probably do Yews on my pure.

  15. #290
    Join Date
    Nov 2011
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    Yeah, tbh, maples are the best xp/gp here.
    I did Magics since it was the fastest xp haha. I'll probably do Yews on my pure.
    it was just such fast xp i had to go with maples ha

  16. #291
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Quote Originally Posted by anvi89 View Post
    it was just such fast xp i had to go with maples ha
    Im not quite sure, but are Maples the third highest logs able to be burned?
    Or are they arctic pines?

  17. #292
    Join Date
    Apr 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Can anyone tell me what the slider on the right hand side is for?

    sorry for the newbish question lol

  18. #293
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Quote Originally Posted by Bossman00 View Post
    Can anyone tell me what the slider on the right hand side is for?

    sorry for the newbish question lol
    It's the FPS slider.
    The higher you move it, the more memory it takes up, but the more smoother the graphics look.

  19. #294
    Join Date
    Nov 2011
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    Im not quite sure, but are Maples the third highest logs able to be burned?
    Or are they arctic pines?
    ya maples have 10 xp more

  20. #295
    Join Date
    Apr 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    It's the FPS slider.
    The higher you move it, the more memory it takes up, but the more smoother the graphics look.
    Oh, I see.

    Thanks mate

  21. #296
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Quote Originally Posted by Bossman00 View Post
    Oh, I see.

    Thanks mate
    No problem, i'm here all day

  22. #297
    Join Date
    Apr 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    No problem, i'm here all day
    Here's another cool lil proggy

    =============v1.7==================
    ============S1NFiremaker===========
    Time Running: 3 Hours, 28 Minutes and 18 Seconds
    XP Earned: 790560
    XP Per Hour: -115943
    Logs Burned: 3934
    Burned Per Hour: 1133
    ===================================
    ===================================

    I have no idea why the xp/hr is negative..
    Last edited by Bossman00; 05-07-2012 at 08:33 PM.

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

    Default

    w/ a few more tweeks:

    Progress Report:
    =============v1.7==================
    ============S1NFiremaker===========
    Time Running: 6 Hours, 42 Seconds
    XP Earned: 964977
    XP Per Hour: -38151
    Logs Burned: 6889
    Burned Per Hour: 1152
    ===================================
    ===================================


    <3

  24. #299
    Join Date
    Mar 2012
    Posts
    148
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    =============v1.7==================
    ============S1NFiremaker===========
    Time Running: 6 Hours, 2 Minutes and 15 Seconds
    XP Earned: 841860
    XP Per Hour: -58808
    Logs Burned: 6397
    Burned Per Hour: 1071
    ===================================

  25. #300
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Remember to post here when you get 99
    #of 99s - 11+.

    Will add SRL stats asap!

Page 12 of 16 FirstFirst ... 21011121314 ... LastLast

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
  •