Page 3 of 8 FirstFirst 12345 ... LastLast
Results 51 to 75 of 200

Thread: CepCosmic Crafter

  1. #51
    Join Date
    Mar 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by hader dem2 View Post
    hmmm try to copy all the walking then
    Now it's working like a charm. Thanks
    Current Goal: 99 Runecrafting

  2. #52
    Join Date
    Dec 2011
    Posts
    126
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by LilJ View Post
    Now it's working like a charm. Thanks
    np i hope u are happy now lol

  3. #53
    Join Date
    Mar 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by hader dem2 View Post
    np i hope u are happy now lol
    /Facepalm Everything worked good for 1 run, then when it went back, the bot won't click the portal to leave the area. It runs to the portal after crafting the cosmics, but then it does nothing...
    Current Goal: 99 Runecrafting

  4. #54
    Join Date
    Dec 2011
    Posts
    126
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by LilJ View Post
    /Facepalm Everything worked good for 1 run, then when it went back, the bot won't click the portal to leave the area. It runs to the portal after crafting the cosmics, but then it does nothing...
    hmmm i know what wrong its y-x 0-0

    it need to be 1-2 then it will go like it should and look at gocenter there u find it

  5. #55
    Join Date
    Mar 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by hader dem2 View Post
    hmmm i know what wrong its y-x 0-0

    it need to be 1-2 then it will go like it should and look at gocenter there u find it
    Wait, what do I do..? Sorry for being a noob.
    Last edited by LilJ; 05-12-2012 at 04:38 PM.
    Current Goal: 99 Runecrafting

  6. #56
    Join Date
    Dec 2011
    Posts
    126
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by LilJ View Post
    Wait, what do I do..? Sorry for being a noob.

    sent u a messager hope this will work

  7. #57
    Join Date
    Apr 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default pouch repair

    Does the NPC Contact only repair Giant pouches? because right now im using Large / medium / small and it never repairs or even attempts too. Am i doing something wrong do i need to input something in script because im not high enough RC for giant pouch atm.

  8. #58
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ultima71111 View Post
    Does the NPC Contact only repair Giant pouches? because right now im using Large / medium / small and it never repairs or even attempts too. Am i doing something wrong do i need to input something in script because im not high enough RC for giant pouch atm.
    Yes, only giant. Am busy on other script, so I'm not updating this yet.

  9. #59
    Join Date
    Nov 2011
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    help why do i get this error ....

    Current player: ****
    Going to Bank
    Error: Exception: Access violation at line 89
    The following DTMs were not freed: [SRL - Lamp bitmap, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
    The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]


    and in the code whats highlighted is line 89-94 anyone please help!

  10. #60
    Join Date
    Dec 2011
    Posts
    126
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Tocholoko View Post
    help why do i get this error ....

    Current player: ****
    Going to Bank
    Error: Exception: Access violation at line 89
    The following DTMs were not freed: [SRL - Lamp bitmap, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
    The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]


    and in the code whats highlighted is line 89-94 anyone please help!
    u got dtm or is that u need

  11. #61
    Join Date
    Dec 2011
    Posts
    126
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    cephaxz can i releasse ur script in here that work so other can use it if not then i keep it for my self only ask before i do anthing

  12. #62
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by hader dem2 View Post
    cephaxz can i releasse ur script in here that work so other can use it if not then i keep it for my self only ask before i do anthing
    Yeah you can do that, just post it in the latest post so everyone can see it.

  13. #63
    Join Date
    Nov 2011
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by hader dem2 View Post
    u got dtm or is that u need
    i do have dtm installed

  14. #64
    Join Date
    Jan 2012
    Posts
    470
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    [Error] (37:13): Unknown identifier 'RUNESCAPE_OTHER' at line 36
    Compiling failed.

    what?

  15. #65
    Join Date
    Dec 2011
    Posts
    126
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    okay i will post it
    Last edited by hader dem2; 05-14-2012 at 05:33 PM.

  16. #66
    Join Date
    Dec 2011
    Posts
    126
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Tocholoko View Post
    i do have dtm installed
    try this i have oploaded it work

  17. #67
    Join Date
    Dec 2011
    Posts
    126
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Re: cosmic script what i'm using

    PHP Code:
    program CepCosmic;
    {
    $i srl/srl/misc/smart.simba}
    {
    $i srl/srl.simba}
    {
    $i srl/srl/misc/paintsmart.simba}
    {
    $i sps/sps.simba}

    const

    {
    Please fill in your pouches slot in inventory}
    {
    Fill in 0 if not using}
    GIANT_POUCH 1;
    LARGE_POUCH 13;
    MEDIUM_POUCH 9;
    SMALL_POUCH 5;



    var
      
    giantcosmicdecayairastralpuresmallmediumlargemonkfishInteger;


    procedure DeclarePlayers;
    begin
      HowManyPlayers 
    := 1;
      
    NumberOfPlayers(HowManyPlayers);
      
    CurrentPlayer := 0;
      
    Players[0].Name := '';
      
    Players[0].Pass := '';
      
    Players[0].Active := True;
      
    Players[0].Pin := '';
      
    Players[0].BoxRewards := ['Xp''mote''ostume''oins''aphire''ssence'];
    end;// declare players

    Procedure getposition;
    begin
      SPS_Setup
    (RUNESCAPE_OTHER, ['zanaris']);
      
    repeat
        wait
    (1000);
        
    SPS_GetMyPos();
      
    until (false);
    end;


    Procedure StartAllDTM;

    begin
      giant 
    := DTMFromString('mrAAAAHic42BgYOADYikGCGACYgEglgNicSBmg/IlgZgfSssAsRBULQhEBDhDedixHAN+wEgAwwAA9+oCHg==');
      
    cosmic := DTMFromString('mggAAAHicY2NgYOADYgkgZgJiXiCWYUAAHiDmAmIBKJ8RiG/flIOqRsWSDNgBIw4MAQDL+wJ6');
      
    decay := DTMFromString('mwQAAAHic42RgYOADYl4gZgNiUSCWY4AAFiAWg8qLQMUYobQQEAsDsTQUywKxraUJkGTCi2Hm4AOMRGA4AAD+TQHq');
      
    air := DTMFromString('mrAAAAHic42BgYEgE4nQgjgLifCjOgopHAnE2FGdBcQEQVwBxFZS+fekiHDMwMGFgOSAJw9gAIwEMAwCVzg6X');
      
    astral := DTMFromString('m6wAAAHic42ZgYOgD4i4gngjEU6DsViCeDcXTgbgXiDuAOAuIi4A4B4hTgTgJiDOBOAOI84C4DIiroPjsxrNYMQMDEwaWA5LYMDbASAJGAgCRIhl9');
      
    pure := DTMFromString('mlwAAAHicY2dgYJjOxMCwGIiXQOl+IJ4GxPOBmIORgYEJiDmBmA+IRYFYDIiFgTgrNRWomwkrFmHADRjxYCgAAOuOBhw=');
      
    small := DTMFromString('mwQAAAHic42RgYHBiYmBwAGJLIPYAYi8o2wKIHYHYE4h5GBkY/gDVMjKCCAYGTigWAGJhIBYEYi9nS6AkE15sxEAYMBKB4QAA0FsEzA==');
      
    medium := DTMFromString('m6wAAAHic42ZgYMhlYmBIBeJsIC6G4lIgLgTiTKhcMhCnAHEFIwNDDhCnQ+lSIK4C4gYgbgTiekaIGpC4p5M50HQmonAKA/GAkQSMBADeXQsj');
      
    large := DTMFromString('mFQEAAHic42VgYJjKxMDQzwSh5wDxXCBeCMWzoOJdUDUw2oCRgUEJiBWBWBmItRkhYiZAbAnEVkBsBmXrA7EWEPu6WQNtYyIJpzCQDhjJwCgAACoEC4E=');
      
    monkfish := DTMFromString('mwQAAAHic42RgYNgOxMeB+DAQn4SydwHxeiDeDMQ7gTgXiBOBOBOI84G4FIhLoHQqFHs7WgJJJrxYhIEwYCQCwwEA95cLcA==');
    end;


    Procedure FreeAllDTM;

    begin
      FreeDTM
    (decay);
      
    FreeDTM(medium);
      
    FreeDTM(large);
      
    FreeDTM(giant);
      
    FreeDTM(small);
      
    FreeDTM(astral);
      
    FreeDTM(air);
      
    FreeDTM(pure);
      
    FreeDTM(cosmic);
      
    FreeDTM(monkfish);
    end;
    procedure Walktoagi;
    var
      
    myPath:TPointArray;

    begin
      FindNormalRandoms
    ;
      if 
    not FindNormalRandoms then
      writeln
    ('Walking to Altar');
      
    SPS_Setup(RUNESCAPE_OTHER, ['zanaris']);
      
    myPath := [Point(117136), Point(122139), Point(127140), Point(131145), Point(137151), Point(141155), Point(146158), Point(151161), Point(157164), Point(163168), Point(170170), Point(175172), Point(184177), Point(190180), Point(193184), Point(198187), Point(201191), Point(207194), Point(217204), Point(222209), Point(228214), Point(235220), Point(240227), Point(243236), Point(246242), Point(250251), Point(253259), Point(255268), Point(256273), Point(256282), Point(255289), Point(262294), Point(262301), Point(262308), Point(261316), Point(258324), Point(254333), Point(249339), Point(245345), Point(243351), Point(242360), Point(244369)];
      
    SPS_WalkPath(myPath);
      
    FFlag(2);
    end;


    procedure PassWall1;
    var
      
    tInteger;
    begin
      FindNormalRandoms
    ;
      if 
    not FindNormalRandoms then
      writeln
    ('Clicking shortcut');
      
    MarkTime(t);
      
    repeat
        MouseBox
    (265192282217mouse_move);
        If 
    TimeFromMark(t) > 4000 then
        begin
          Walktoagi
    ;
        
    end;
      
    until WaitUptext('eeze'2000);
        
    writeln('Going through shortcut');
        
    ClickMouse2(mouse_Left);
        
    wait(3000);
    end;



    procedure PassWallSlowOne;
    var
      
    PBoxTBox;
    begin
    PBox 
    := IntToBox(245130285195);
      
    repeat
        MouseBox
    (265192282217mouse_move);
      
    until IsUpText('eeze');
        
    ClickMouse2(mouse_Left);
      
    repeat
      wait
    (500);
      
    until AveragePixelShift(PBox800800) < 1000;
        
    writeln('Got through first obstacle');
    end;

    procedure NextAgi;
    var
      
    myPath:TPointArray;

    begin
      FindNormalRandoms
    ;
      if 
    not FindNormalRandoms then
      writeln
    ('Walking to next shortcut');
      
    SPS_Setup(RUNESCAPE_OTHER, ['zanaris']);
      
    myPath := [Point(227,379), Point(215,399)];
      
    SPS_WalkPath(myPath);
      
    FFlag(2);
    end;


    procedure PassWall2;
    var
      
    tInteger;
    begin
      FindNormalRandoms
    ;
      if 
    not FindNormalRandoms then
      writeln
    ('Clicking shortcut');
      
    MarkTime(t);
    repeat
      MouseBox
    (265192282217mouse_move);
      If 
    TimeFromMark(t) > 4000 then
      begin
        NextAgi
    ;
      
    end;
    until WaitUptext('eeze'2000);
      
    writeln('Going through shortcut');
      
    ClickMouse2(mouse_Left);
      
    wait(3000);
    end;



    procedure PassWallSlowTwo;
    var
      
    PBoxTBox;
    begin
    PBox 
    := IntToBox(245130285195);
      
    repeat
        MouseBox
    (265192282217mouse_move);
      
    until IsUpText('eeze');
        
    ClickMouse2(mouse_Left);
      
    repeat
      wait
    (500);
      
    until AveragePixelShift(PBox800800) < 1000;
        
    writeln('Got through second obstacle');
    end;


    procedure ToAltar;
    var
      
    myPath:TPointArray;

    begin
      FindNormalRandoms
    ;
      if 
    not FindNormalRandoms then
      writeln
    ('Reaching altar');
      
    SPS_Setup(RUNESCAPE_OTHER, ['zanaris']);
      
    myPath := [Point(203423), Point(211465)];
      
    SPS_WalkPath(myPath);
      
    FFlag(0);
      
    wait(1000);
    end;



    procedure EnterAltar;
    var
      
    xyt:Integer;

    begin
      FindNormalRandoms
    ;
      if 
    not FindNormalRandoms then
      MarkTime
    (t);
    repeat
      FindColorSpiralTolerance
    (xy8936313MSX1MSY1MSX2MSY215);
      
    MMouse(xy22);
      
    WaitUptext('ster'2000);
      
    ClickMouse2(mouse_Left);
      if 
    TimeFromMark(t) > 5000 then
      begin
        ToAltar
    ;
      
    end;
    until DidRedClick;
      
    writeln('Entering altar');
      
    wait(5000);
    end;



    Procedure GoCenter;
    var
      
    xy:Integer;

    begin
      FindNormalRandoms
    ;
      if 
    not FindNormalRandoms then
    repeat
      writeln
    ('Walking to the Center');
      
    //north portal
      
    if FindColorTolerance(xy618378260514264916113then
        Mouse
    (633159,1,2mouse_Left)
      else
      
    //east portal
      
    if FindColorTolerance(xy61837825506156510713then
        Mouse
    (56189,1,2mouse_Left)
      else
      
    //west portal
      
    if FindColorTolerance(xy61837826876470310613then
        Mouse
    (69684,1,2mouse_Left)
      else
      
    //south portal
      
    if FindColorTolerance(xy618378260396522713then
        Mouse
    (62921,1,2mouse_Left);
      
    wait(RandomRange(1000,1500));
    until FlagPresent;
      
    repeat
        wait
    (500);
      
    until not FlagPresent;
      
    writeln('Reached Center');
      
    wait(1500);
    end;
    Procedure ClickAltar6;
    var
      
    a,tInteger;
      
    TPA  TPointArray;
      
    ATPA T2DPointArray;
      
    MP   TPoint;
      
    tmpCTS Integer;
      
    Box  TBox;
    begin
      
    if(not(LoggedIn))then Exit;
      
    tmpCTS := GetColorToleranceSpeed;
      
    ColorToleranceSpeed(2);
      
    SetColorSpeed2Modifiers(9.519.49);

     { if 
    not FindColorsTolerance(TPA6841190002313382then
      begin
        writeln
    ('Trying to find area2');
        if 
    not FindColorsTolerance(TPA684119001985153372then
        begin
          writeln
    ('Trying to find area3');
          if 
    not FindColorsTolerance(TPA684119027405153372then
          begin
            writeln
    ('Trying to find area4');
            if 
    not FindColorsTolerance(TPA6841190005151412then
            begin
              writeln
    ('Cant find altar again omggggg');
              
    writeln('Terminating Script');
              
    TerminateScript;
            
    end else
            
    begin
              writeln
    ('Found in area4');
            
    end;
          
    end else
          
    begin
            writeln
    ('Found in area3');
          
    end;
        
    end else
        
    begin
          writeln
    ('Found in area2');
        
    end;
      
    end else
      
    begin
        writeln
    ('Found in area1');
      
    end;     }

      
    FindColorsTolerance(TPA6841190MSX1MSY1MSX2MSY22);
      
    SortTPAFrom(TPAPoint(MSCXMSCY));
      
    ATPA := TPAtoATPAEx(TPA1515);
      
    SortATPAFromSize(ATPA100true);

      for 
    := 0 to High(ATPA) do
      
    begin
        MP 
    := MiddleTPA(ATPA[a]);
        
    Box := IntToBox((MP.20), (MP.20), (MP.20), (MP.20));
        {
    $IFDEF SMART}
        
    SMART_DrawDotsEx(falseATPA[a], clYellow);
        {
    $ENDIF}
        
    MMouse(MP.XMP.Y44);
        if 
    WaitUptext('raft'2000then
        begin
          ClickMouse2
    (mouse_Left);
          
    writeln('Crafting Runes');
          
    MarkTime(t)
          
    repeat
            wait
    (500);
          
    until WaitInvMaxCount(82000) or (TimeFromMark(t) > 4000);
          
    writeln('Crafted runes');
        
    end else
        
    begin
          writeln
    ('Y NO ALTAR?!?!');
          
    TerminateScript;
        
    end;
        {
    $IFDEF SMART}
        
    SMART_ClearCanvas;
        {
    $ENDIF}
        Break;
      
    end;

      
    ColorToleranceSpeed(tmpCTS);
      
    SetColorSpeed2Modifiers(0.20.2);
    end;



    Procedure ClickAltar5;
    var
      
    a,t,TotalInvInvAft Integer;
      
    TPA  TPointArray;
      
    ATPA T2DPointArray;
      
    MP   TPoint;
      
    tmpCTS Integer;
      
    Box  TBox;
    begin
      
    if(not(LoggedIn))then Exit;
      
    tmpCTS := GetColorToleranceSpeed;
      
    ColorToleranceSpeed(2);
      
    SetColorSpeed2Modifiers(3.341.00);

      if 
    not FindColorsTolerance(TPA6578017002313384then
      begin
        writeln
    ('Trying to find area2');
        if 
    not FindColorsTolerance(TPA657801701985153374then
        begin
          writeln
    ('Trying to find area3');
          if 
    not FindColorsTolerance(TPA657801727405153374then
          begin
            writeln
    ('Trying to find area4');
            if 
    not FindColorsTolerance(TPA6578017005151414then
            begin
              writeln
    ('Cant find altar again omggggg');
              
    writeln('Terminating Script');
              
    TerminateScript;
            
    end else
            
    begin
              writeln
    ('Found in area4');
            
    end;
          
    end else
          
    begin
            writeln
    ('Found in area3');
          
    end;
        
    end else
        
    begin
          writeln
    ('Found in area2');
        
    end;
      
    end else
      
    begin
        writeln
    ('Found in area1');
      
    end;
      
    SortTPAFrom(TPAPoint(MSCXMSCY));
      
    ATPA := TPAtoATPAEx(TPA1515);

      for 
    := 0 to High(ATPA) do
      
    begin
        MP 
    := MiddleTPA(ATPA[a]);
        
    Box := IntToBox((MP.20), (MP.20), (MP.20), (MP.20));
        {
    $IFDEF SMART}
        
    SMART_DrawBoxEx(TrueBoxclYellow);
        {
    $ENDIF}
        
    MMouse(MP.XMP.Y44);
        if 
    WaitUptext('raft'2000then
        begin
          TotalInv
    := InvCount;
          
    ClickMouse2(mouse_Left);
          
    writeln('Crafting Runes');
          
    MarkTime(t)
          
    repeat
            wait
    (500);
            
    InvAft:= InvCount
          until WaitInvMaxCount
    (82000) or (TimeFromMark(t) > 4000);
          
    writeln('Crafted runes');
        
    end else
        
    begin
          writeln
    ('Y NO ALTAR?!?!');
          
    TerminateScript;
        
    end;
        {
    $IFDEF SMART}
        
    SMART_ClearCanvas;
        {
    $ENDIF}
        Break;
      
    end;

      
    ColorToleranceSpeed(tmpCTS);
      
    SetColorSpeed2Modifiers(0.20.2);
    end;




    Procedure ClickAltar4;
    var
      
    arPTPointArray;
      
    ararPT2DPointArray;
      
    tmpCTSiarLtInteger;
      
    PTPoint;
    begin
      FindNormalRandoms
    ;
      if 
    not FindNormalRandoms then
      tmpCTS 
    := GetColorToleranceSpeed;
      
    ColorToleranceSpeed(1);

      if 
    not(FindColorsTolerance(arP6644067MSX1MSY1MSX2MSY24)) then
      begin
        Writeln
    ('Failed to find the color, no object found.');
        
    ColorToleranceSpeed(tmpCTS);
        Exit;
      
    end;

      
    SortTPAFrom(arPPoint(MSCXMSCY));
      
    ararP := SplitTPAEx(arP1010);
      
    arL := High(ararP);

      for 
    := 0 to arL do
      
    begin
        
    if (Length(ararP[i]) < 10then Continue;
        
    := MiddleTPA(ararP[i]);
        
    MMouse(P.xP.y55);
        
    begin;
          
    ClickMouse2(mouse_Left);
          
    writeln('Crafting Runes');
          
    MarkTime(t)
          
    repeat
            wait
    (500);
          
    until (FindChatBoxText('bind'8clBlack)) or (TimeFromMark(t) > 4000);
          Break;
        
    end;
      
    end;

      
    ColorToleranceSpeed(tmpCTS);

      if (
    arL 1then
      begin
        Writeln
    ('FindObject could not find object.');
        Exit;
      
    end;
    end;



    Procedure Altarpls;
    var
      
    xytInteger;

    begin
      repeat
        wait
    (100);
      
    until FindColorTolerance(xy6644067MSX1MSY1MSX2MSY23);

      
    begin;
        
    MMouse(xy55);
        if 
    WaitUptext('raft'2000then
        begin
          ClickMouse2
    (mouse_Left);
          
    writeln('Crafting Runes');
          
    MarkTime(t)
          
    repeat
            wait
    (500);
          
    until (FindChatBoxText('bind'8clBlack)) or (TimeFromMark(t) > 4000);
          
    wait(700);
        
    end else
        
    begin
          writeln
    ('Cant find altar again');
          
    TerminateScript;
        
    end;
      
    end;
    end;


    Procedure ClickAltarTwo;
    var
      
    arParAPTPointArray;
      
    arCarUCTIntegerArray;
      
    ararPT2DPointArray;
      
    tmpCTSijarLarL2tcInteger;
      
    PTPoint;
      
    XYZExtended;
    begin
      tmpCTS 
    := GetColorToleranceSpeed;
      
    ColorToleranceSpeed(2);
      
    SetColorSpeed2Modifiers(2.780.54);

      
    FindColorsTolerance(arP6709603MSX1MSY1MSX2MSY23);


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

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

        if (
    >= 11.57) and (<= 12.46) and (>= 11.76) and (<= 12.77) and (>= 13.95) and (<= 14.92then
        begin
          
    for := 0 to arL2 do
          
    begin
            
    if (arUC[i] = arC[j]) then
            begin
              SetLength
    (arAPLength(arAP) + 1);
              
    arAP[High(arAP)] := arP[j];
            
    end;
          
    end;
        
    end;
      
    end;

      
    SortTPAFrom(arAPPoint(MSCXMSCY));
      
    ararP := SplitTPAEx(arAP1010);
      
    arL := High(ararP);

      for 
    := 0 to arL do
      
    begin
        
    if (Length(ararP[i]) < 10then Continue;
        
    := MiddleTPA(ararP[i]);
        
    MMouse(P.xP.y55);
        
    Wait(100 Random(100));
        
    begin;
          
    ClickMouse2(mouse_Left);
          
    writeln('Crafting Runes');
          
    MarkTime(t)
          
    repeat
            wait
    (500);
          
    until (FindChatBoxText('bind'8clBlack)) or (TimeFromMark(t) > 4000);
          
    wait(850);
          Break;
        
    end;
      
    end;

      
    ColorToleranceSpeed(tmpCTS);
      
    SetColorSpeed2Modifiers(0.20.2);

      if (
    arL 1then
      begin
      c
    := 0
      repeat
        Inc
    (c);
        
    Writeln('Altar could not be found');
        
    ClickAltarTwo;
        
    wait(RandomRange(1000,1500));
      
    until c 5;
        Exit;
      
    end;
    end;


    Procedure ClickAltarOne;
    var
      
    xyt:Integer;

    begin
      
    if FindColorSpiralTolerance(xy6643555MSX1MSY1MSX2MSY24then
      begin
        writeln
    ('Crafting Rune');
        
    Mouse(xy55mouse_Left);
        
    MarkTime(t);
          
    repeat
            wait
    (500);
          
    until (FindChatBoxText('bind'8clBlack)) or (TimeFromMark(t) > 5000);
        
    wait(1500);
      
    end else
      
    begin
        ClickAltarTwo
    ;
      
    end;
    end;


    Procedure EmptyGiant;
    var
      
    xy:Integer;
    begin

      
    //Empty Giant Pouch
      
    if FindDTM(giantxyMIX1MIY1MIX2MIY2then
      begin
        writeln
    ('Emptying Giant Pouch');
        
    Mouse(xy33mouse_Left);
      
    end else
      
    begin
        writeln
    ('No giant pouch');
        Exit;
      
    end;
    end;



    Procedure EmptySmall;
    var
      
    xy:Integer;
    begin

      
    //Empty Small Pouch
      
    if FindDTM(smallxyMIX1MIY1MIX2MIY2then
      begin
        writeln
    ('Emptying Small Pouch');
        
    Mouse(xy33mouse_Left);
      
    end else
      
    begin
        writeln
    ('No small pouch');
        Exit;
      
    end;
    end;



    Procedure EmptyMedium;
    var
      
    xy:Integer;
    begin

      
    //Empty Medium Pouch
      
    if FindDTM(mediumxyMIX1MIY1MIX2MIY2then
      begin
        writeln
    ('Emptying Medium Pouch');
        
    Mouse(xy33mouse_Left);
      
    end else
      
    begin
        writeln
    ('No medium pouch');
        Exit;
      
    end;
    end;


    Procedure EmptyLarge;
    var
      
    xy:Integer;
    begin

      
    //Empty Large Pouch
      
    if FindDTM(largexyMIX1MIY1MIX2MIY2then
      begin
        writeln
    ('Emptying Large Pouch');
        
    Mouse(xy33mouse_Left);
      
    end else
      
    begin
        writeln
    ('No large pouch');
        Exit;
      
    end;
    end;


    Procedure CraftRune;
    begin
      ClickAltar6
    ;
      
    wait(700);
      
    EmptyGiant;
      
    ClickAltar6;
      
    wait(700);
      
    EmptySmall;
      
    EmptyMedium;
      
    EmptyLarge;
      
    ClickAltar6;
      
    wait(700);
      
    writeln('Finished Crafting');
      
    writeln(''+TimeRunning);
    end;


    Procedure GoBack;
    var
      
    xy:Integer;

    begin
      FindNormalRandoms
    ;
      if 
    not FindNormalRandoms then
      writeln
    ('Walking to portal');
      
    //north portal
    repeat
      
    if FindColorTolerance(xy618378260514264916113then
        Mouse
    (xy00mouse_Left)
      else
      
    //east portal
      
    if FindColorTolerance(xy61837825506156510713then
        Mouse
    (xy00mouse_Left)
      else
      
    //west portal
      
    if FindColorTolerance(xy61837826876470310613then
        Mouse
    (xy00mouse_Left)
      else
      
    //south portal
      
    if FindColorTolerance(xy618378260396522713then
        Mouse
    (xy00mouse_Left);

      
    wait(RandomRange(1000,1500));
      
    until IsMoving;
      if 
    FlagPresent then
      writeln
    ('FlagPresent');

      
    repeat
        wait
    (1500);
        if 
    FlagPresent then
        begin
          wait
    (800);
        
    end;
      
    until not FlagPresent;
      
    wait(1500);
    end;



    Procedure GoOut2;
    var
      
    arPTPointArray;
      
    ararPT2DPointArray;
      
    tmpCTSiarLInteger;
      
    PTPoint;
    begin
      FindNormalRandoms
    ;
      if 
    not FindNormalRandoms then
      tmpCTS 
    := GetColorToleranceSpeed;
      
    ColorToleranceSpeed(2);
      
    SetColorSpeed2Modifiers(0.140.84);

      if 
    not(FindColorsTolerance(arP8692391MSX1MSY1MSX2MSY212)) then
      begin
        Writeln
    ('Failed to find portal');
        
    ColorToleranceSpeed(tmpCTS);
        
    SetColorSpeed2Modifiers(0.20.2);
        
    TerminateScript;
        Exit;
      
    end;

      
    SortTPAFrom(arPPoint(MSCXMSCY));
      
    ararP := SplitTPAEx(arP1010);
      
    arL := High(ararP);

      for 
    := 0 to arL do
      
    begin
      repeat
        
    if (Length(ararP[i]) < 10then Continue;
        
    := MiddleTPA(ararP[i]);
        
    MMouse(P.xP.y55);
        if 
    WaitUptext('nter'2000then
        ClickMouse2
    (mouse_Left);
      
    until DidRedClick;
        
    writeln('Clicked portal');
        Break;
      
    end;

      
    ColorToleranceSpeed(tmpCTS);
      
    SetColorSpeed2Modifiers(0.20.2);

      if (
    arL 1then
      begin
        Writeln
    ('FindObject could not find object.');
        Exit;
      
    end;
    end;



    Procedure GoOut;
    var
      
    arParAPTPointArray;
      
    arCarUCTIntegerArray;
      
    ararPT2DPointArray;
      
    tmpCTSijarLarL2Integer;
      
    PTPoint;
      
    RGBInteger;
      
    XYZExtended;
    begin
      tmpCTS 
    := GetColorToleranceSpeed;
      
    ColorToleranceSpeed(2);
      
    SetColorSpeed2Modifiers(0.130.90);

      
    FindColorsTolerance(arP8823462MSX1MSY1MSX2MSY210);

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

      for 
    := 0 to arL do
      
    begin
        ColorToRGB
    (arC[i], RGB);

        if (
    >= 132) and (<= 195) and (>= 130) and (<= 193) and (>= 116) and (<= 156then
        begin
          ColorToXYZ
    (arC[i], XYZ);

          if (
    >= 20.98) and (<= 47.03) and (>= 22.48) and (<= 51.56) and (>= 20.04) and (<= 38.49then
          begin
            
    for := 0 to arL2 do
            
    begin
              
    if (arUC[i] = arC[j]) then
              begin
                SetLength
    (arAPLength(arAP) + 1);
                
    arAP[High(arAP)] := arP[j];
              
    end;
            
    end;
          
    end;
        
    end;
      
    end;

      
    SortTPAFrom(arAPPoint(MSCXMSCY));
      
    ararP := SplitTPAEx(arAP1010);
      
    arL := High(ararP);

      for 
    := 0 to arL do
      
    begin
      repeat
        
    if (Length(ararP[i]) < 10then Continue;
        
    := MiddleTPA(ararP[i]);
        
    MMouse(P.xP.y55);
        
    Wait(100 Random(100));
        if (
    IsUpText('nter')) then
        ClickMouse2
    (mouse_Left);
      
    until DidRedClick;
        
    writeln('Clicked portal');
        Break;
      
    end;

      
    ColorToleranceSpeed(tmpCTS);
      
    SetColorSpeed2Modifiers(0.20.2);

      if (
    arL 1then
      begin
        Writeln
    ('FindObject could not find portal');
        Exit;
      
    end;
    end;



    Procedure AltartoWall;
    var
      
    myPath:TPointArray;

    begin
      FindNormalRandoms
    ;
      if 
    not FindNormalRandoms then
      wait
    (2000);
      
    SPS_Setup(RUNESCAPE_OTHER, ['zanaris']);
      
    myPath := [Point(203423), Point(215391)];
      
    SPS_WalkPath(myPath);
      
    FFlag(1);
    end;



    procedure BankAgi2;
    var
      
    myPath:TPointArray;

    begin
      FindNormalRandoms
    ;
      if 
    not FindNormalRandoms then
      writeln
    ('Walking to next shortcut');
      
    SPS_Setup(RUNESCAPE_OTHER, ['zanaris']);
      
    myPath := [Point(227,379), Point(243,363)];
      
    SPS_WalkPath(myPath);
      
    FFlag(1);
    end;


    Procedure BankWall;
    var
      
    tInteger;

    begin
      FindNormalRandoms
    ;
      if 
    not FindNormalRandoms then
      writeln
    ('Clicking shortcut');
      
    MarkTime(t);
      
    repeat
        MouseBox
    (261121278150mouse_move);
        
    wait(RandomRange(400500));
        if 
    TimeFromMark(t) > 4000 then
        begin
          BankAgi2
    ;
        
    end;
      
    until WaitUptext('eeze'2000);
        
    writeln('Going through shortcut');
        
    ClickMouse2(mouse_Left);
        
    wait(RandomRange(3000,3200));
    end;


    procedure WalktoBank;
    var
      
    myPath:TPointArray;

    begin
      FindNormalRandoms
    ;
      if 
    not FindNormalRandoms then
      writeln
    ('Going to Bank');
      
    SPS_Setup(RUNESCAPE_OTHER, ['zanaris']);
      
    myPath := [Point(242359), Point(242352), Point(245343), Point(248340), Point(251334), Point(255329), Point(259320), Point(259314), Point(260307), Point(259300), Point(259293), Point(256286), Point(255277), Point(253269), Point(250261), Point(247253), Point(244247), Point(244241), Point(241231), Point(237226), Point(234220), Point(228213), Point(223209), Point(218205), Point(211198), Point(204193), Point(199190), Point(194187), Point(188183), Point(181179), Point(173175), Point(168171), Point(162167), Point(156163), Point(148158), Point(143154), Point(137151), Point(131145), Point(123141), Point(117138)];
      
    SPS_WalkPath(myPath);
      
    FFlag(15);
      
    wait(1200);
    end;



    Procedure ClickBank;
    var
      
    arParAPTPointArray;
      
    arCarUCTIntegerArray;
      
    ararPT2DPointArray;
      
    tmpCTSijarLarL2tInteger;
      
    PTPoint;
      
    XYZExtended;
    begin
      FindNormalRandoms
    ;
      if 
    not FindNormalRandoms then
      tmpCTS 
    := GetColorToleranceSpeed;
      
    ColorToleranceSpeed(2);
      
    SetColorSpeed2Modifiers(0.012.64);

      if 
    not(FindColorsTolerance(arP7328734MSX1MSY1MSX2MSY211)) then
      begin
        repeat
          writeln
    ('Cant find bank. Trying to find again...');
          
    WalktoBank;
          
    wait(RandomRange(2000,2500));
        
    until FindColorsTolerance(arP7328734MSX1MSY1MSX2MSY211);
      
    end;

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

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

        if (
    >= 34.97) and (<= 74.97) and (>= 39.10) and (<= 83.94) and (>= 17.49) and (<= 36.69then
        begin
          
    for := 0 to arL2 do
          
    begin
            
    if (arUC[i] = arC[j]) then
            begin
              SetLength
    (arAPLength(arAP) + 1);
              
    arAP[High(arAP)] := arP[j];
            
    end;
          
    end;
        
    end;
      
    end;

      
    SortTPAFrom(arAPPoint(MSCXMSCY));
      
    ararP := SplitTPAEx(arAP1010);
      
    arL := High(ararP);

      for 
    := 0 to arL do
      
    begin
        
    if (Length(ararP[i]) < 10then Continue;
        
    := MiddleTPA(ararP[i]);
        
    MMouse(P.xP.y55);
        
    Wait(100 Random(100));
        if (
    IsUpText('ank')) then
        begin
    ;
          
    writeln('Found Bank');
          
    writeln(''+TimeRunning);
          
    ClickMouse2(mouse_Left);
          
    MarkTime(t);
          
    repeat
            wait
    (RandomRange(100,500));
          
    until (BankScreen) or (TimeFromMark(t) > 5000);
          Break;
        
    end;
      
    end;

      
    ColorToleranceSpeed(tmpCTS);
      
    SetColorSpeed2Modifiers(0.20.2);

      if (
    arL 1then
      begin
        Writeln
    ('FindObject could not find object.');
        Exit;
      
    end;
    end;


    Procedure RecoverHP;
    var
      
    xyInteger;

    begin
    if BankScreen then
      
    if not FindColorTolerance(xy13197969218720309then
      begin
        writeln
    ('HP low!');
        if 
    FindDTM(monkfishxyMBX1MBY1MBX2MBY2then
        begin
          writeln
    ('Eating Monkfish');
          
    Mouse(xy44mouse_Left);
          
    wait(RandomRange(300,500));
          
    ClickMouse2(mouse_Left);
          
    repeat
            FindDTM
    (monkfishxyMIX1MIY1MIX2MIY2);
            
    Mouse(xy33mouse_Right);
            
    WaitOption('Eat'1000);
            
    wait(1000);
          
    until not FindDTM(monkfishxyMIX1MIY1MIX2MIY2);
          
    writeln('Done eating');
        
    end else
        
    begin
          writeln
    ('No Monkfish, buy some pl0x');
          
    writeln('Terminating Script!');
          
    writeln(''+TimeRunning);
          
    TerminateScript;
        
    end;
      
    end else
      
    begin
        
    Exit;
      
    end;
    end;



    Procedure BankFailsafe;
    begin
      
    if not BankScreen then
      begin
        repeat
          writeln
    ('Bank Screen not found');
          
    wait(RandomRange(1500,2000));
          
    ClickBank;
        
    until BankScreen
      end
    ;
    end;



    Procedure DepositCos;
    var
      
    xy:Integer;

    begin

      
    //Deposit Cosmics
      
    if BankScreen then
      begin
        
    if FindColorTolerance(xy2020052MIX1MIY1MIX2MIY250)  then
        begin
          writeln
    ('Found Cosmic');
          
    Mouse(xy44mouse_Right);
          
    WaitOptionMulti(['All''posit'], 300);
        
    end else;
        Exit;
      
    end;
    end;


    Procedure WithdrawEss;
    begin
      
    //Withdraw Essence
      
    if BankScreen then
      begin
        MouseBankSlot
    (1mouse_move);
        
    writeln('Withdrawing Pure Essence');
        
    ClickMouse2(mouse_Right);
        
    WaitOptionMulti(['Withdraw-All''w-A''ll'], 1000);
      
    end;
    end;


    Procedure FillGiant;
    begin

      
    //Fill Giant Pouch
      
    if BankScreen then
      begin
        
    if not (GIANT_POUCH 0then
        begin
          writeln
    ('Filling Giant Pouch');
          
    InvMouse(GIANT_POUCHmouse_Right);
          
    WaitOption('ill',1000);
        
    end else
        
    begin
          writeln
    ('No giant pouch');
          Exit;
        
    end;
      
    end;
    end;



    Procedure RepairDecay;
    var
      
    xy:Integer;

    begin

      
    //Find Decayed Giant Pouch
      
    if FindDTM(decayxyMIX1MIY1MIX2MIY2then
      begin
        writeln
    ('Found decayed pouch');
        
    wait(RandomRange(1000,1500));
      
    end else
      
    begin
        
    Exit;
      
    end;

      if 
    InvFull then
      begin
        writeln
    ('Cant withdraw NPC contact runes');
        
    FindDTM(purexyMIX1MIY1MIX2MIY2);
        
    Mouse(xy33mouse_Right);
        
    WaitOption('-5 Pu'500);
      
    end;

      if 
    FindDTM(airxyMBX1MBY1MBX2MBY2then
      begin
        writeln
    ('Withdrawing airs');
        
    Mouse(xy33mouse_Left);
        
    wait(RandomRange(500,1000));
        
    ClickMouse2(mouse_Left);
        if 
    FindDTM(cosmicxyMBX1MBY1MBX2MBY2then
        begin
          writeln
    ('Withdrawing cosmic');
          
    Mouse(xy33mouse_Left);
          if 
    FindDTM(astralxyMBX1MBY1MBX2MBY2then
          begin
            writeln
    ('Withdrawing astral');
            
    Mouse(xy33mouse_Left);
            
    CloseBank;
            
    GameTab(tab_Magic);
            
    wait(500);
            
    writeln('Begin NPC contact');
            
    MouseBox(689224702235mouse_Left);
            
    MouseBox(412314459319mouse_move);
            
    WaitUptext('peak'1000);
            
    ClickMouse2(mouse_Left);
            
    repeat
              wait
    (500);
            
    until AreTalking;
            
    repeat
              ClickContinue
    (TrueFalse);
            
    until FindNPCChatText('repair'Clickleft);
            
    repeat
              DoConversation
    (''False);
            
    until not AreTalking
              writeln
    ('Done repairing pouch');
              
    GameTab(tab_Inv);
              
    ClickBank;
              
    BankFailsafe;
              
    FillGiant;
          
    end else
          
    begin
            writeln
    ('No astrals');
            
    TerminateScript;
          
    end;
        
    end else
        
    begin
          writeln
    ('No cosmics');
          
    TerminateScript;
        
    end;
      
    end else
      
    begin
        writeln
    ('No airs');
        
    TerminateScript;
      
    end;
    end;


    Procedure FillSmall;
    begin

      
    //Fill Small Pouch
      
    if BankScreen then
      begin
        
    if not (SMALL_POUCH 0then
        begin
          writeln
    ('Filling Small Pouch');
          
    InvMouse(SMALL_POUCHmouse_Right);
          
    WaitOption('ill',1000);
        
    end else
        
    begin
          writeln
    ('No small pouch');
          Exit;
        
    end;
      
    end;
    end;


    Procedure FillMedium;
    begin

      
    //Fill Medium Pouch
      
    if not (MEDIUM_POUCH 0then
      begin
        writeln
    ('Filling Medium Pouch');
        
    InvMouse(MEDIUM_POUCHmouse_Right);
        
    WaitOption('ill',1000);
      
    end else
      
    begin
        writeln
    ('No medium pouch');
        Exit;
      
    end;
    end;


    Procedure FillLarge;
    begin

      
    //Fill Large Pouch
      
    if not (LARGE_POUCH 0then
      begin
        writeln
    ('Filling Large Pouch');
        
    InvMouse(LARGE_POUCHmouse_Right);
        
    WaitOption('ill',1000);
      
    end else
      
    begin
        writeln
    ('No large pouch');
        Exit;
      
    end;
    end;



    Procedure BankingProcedure;
    begin
      BankFailsafe
    ;
      
    DepositCos;
      
    WithdrawEss;
      
    FillGiant;
      
    WithdrawEss;
      
    FillSmall;
      
    FillMedium;
      
    FillLarge;
      
    RecoverHP;
      
    RepairDecay;
      
    WithdrawEss;
    end;


    Procedure WaytoAltar;
    begin
      WalktoAgi
    ;
      
    PassWall1;
      
    NextAgi;
      
    Passwall2;
      
    ToAltar;
      
    EnterAltar;
    end;


    Procedure InsideAltar;
    begin
      GoCenter
    ;
      
    CraftRune;
      
    GoBack;
      
    GoOut2;
    end;


    Procedure OutofAltar;
    begin
      AltartoWall
    ;
      
    Bankwall;
      
    Bankagi2;
      
    Bankwall;
    end;



    Procedure MainLoop;
    begin
      WalktoBank
    ;
      
    clickbank;
      
    BankingProcedure;
      
    WaytoAltar;
      
    InsideAltar;
      
    OutofAltar;
    end;


    procedure SetupLogin;
    begin
      ClearDebug
    ;
      
    Smart_Server := 10;
      
    Smart_Members := True;
      
    Smart_Signed := True;
      
    Smart_SuperDetail := False;
      
    SetupSRL;
    end;


    begin
      SetupLogin
    ;
      
    DeclarePlayers;
      
    LoginPlayer;

      
    repeat
        wait
    (500);
      
    until LoggedIn;

      if 
    LoggedIn then
      begin
        ExitSquealOfFortune
    ();
        
    ClickNorth(SRL_ANGLE_HIGH);
      
    end;

      
    AddOnTerminate('FreeAllDTM');
      
    StartAllDTM;

      
    repeat
        MainLoop
    ;
      
    until not LoggedIn;
    end

    give feedback if it not work i have one more its working for so i hope it work for all
    Last edited by hader dem2; 05-14-2012 at 05:37 PM.

  18. #68
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Good news. I'm done with my other script, now I'm back to this script and fixing it right now. Just realize my scripting skills has gotten better. I looked into this script and saw how inefficiently I use the functions.

  19. #69
    Join Date
    Feb 2012
    Location
    Florida
    Posts
    180
    Mentioned
    14 Post(s)
    Quoted
    101 Post(s)

    Default

    The script wont enter pin, also it gets stuck one it enters the altar it keeps clicking on the south east. and the debug says "reaching altar" anyone got a fix? thanks

  20. #70
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by luispadron View Post
    The script wont enter pin, also it gets stuck one it enters the altar it keeps clicking on the south east. and the debug says "reaching altar" anyone got a fix? thanks
    You should had read my newest post lol.

  21. #71
    Join Date
    Feb 2012
    Location
    Florida
    Posts
    180
    Mentioned
    14 Post(s)
    Quoted
    101 Post(s)

    Default

    Quote Originally Posted by CephaXz View Post
    You should had read my newest post lol.
    Yeah i just read it sorry!

  22. #72
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by luispadron View Post
    Yeah i just read it sorry!
    No worries. Will be updating within 1 hour.

  23. #73
    Join Date
    Feb 2012
    Location
    Florida
    Posts
    180
    Mentioned
    14 Post(s)
    Quoted
    101 Post(s)

    Default

    Quote Originally Posted by CephaXz View Post
    No worries. Will be updating within 1 hour.
    Awesome, can't wait to check it out (':

  24. #74
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Updated!

    Please read the new instructions before using it.

  25. #75
    Join Date
    Feb 2012
    Location
    Florida
    Posts
    180
    Mentioned
    14 Post(s)
    Quoted
    101 Post(s)

    Default

    Testing it out right now, Working like a charm.
    Pin works and altar crafting works perfectly. Ill try to get a proggie.
    Thanks for the update!

    EDIT: Got it to run for an hour, but it got stuck talking to the zanaris choir for some reason.
    Last edited by Adieux; 05-16-2012 at 01:23 AM.

Page 3 of 8 FirstFirst 12345 ... 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
  •