Results 1 to 18 of 18

Thread: Is it possible...

  1. #1
    Join Date
    Apr 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Is it possible...

    I was wondering if it was possible to do a few things:
    1. Make a script pause itself

    2. Make 1 huge procedure with all your bitmaps/DTMs in it and select which ones to load with booleans or something
    Reality is for those who can't handle dreams...

  2. #2
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    1 should be possible... im not sure if there is an option for it in srl/scar..
    but you can always do it with mouse(x,y (cooordinates), true);

    2. not sure

  3. #3
    Join Date
    Apr 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by pvh View Post
    1 should be possible... im not sure if there is an option for it in srl/scar..
    but you can always do it with mouse(x,y (cooordinates), true);
    hmmm....
    how about using sendkeys or something with the shorcut? (ctrl+alt+a)
    Reality is for those who can't handle dreams...

  4. #4
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thats not good... you should use other functions..
    use KeyDown
    and KeyUp for pressing buttons

  5. #5
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    1. Not too sure
    2. Yes, of course! Wait.

    SCAR Code:
    procedure DTMBMPsetup;
    begin
      case i of
      'lobster': food:= DTMFromString('78DA631464646088076224B03F459C4107280' +
        '412FD0F048C12405610AA1A882C8C04D2D24056380135E2405632' +
        '0135C240562E0135FC40562A01359C40563A01358C44A861C20C1' +
        'F0C353C40562C0135A0708EC2AF0600E4290A61');
      'trout': food:= DTMFromString('78DA63EC6162603063644006EDF9D90C46401' +
           'A24FA1F08186700D5A8A3AA81C8C24820DD0B54A34D404D33A65D' +
           '186A1A806AEC89506345404D1F508D35013533816AF48950A34B4' +
           '04D27508D2D116A0CF1AB010004EA0E13');
      'salmon': food:= DTMFromString('78DA637CC7C4C0D0C4C8800CAEBA4B32A4006' +
        '990E87F2060BC0F54D389AA06220B2381F413A09A1E026ADE02D5' +
        '741150F303A8A69608352544D8554140CD534CBF63A8B94FA49BA' +
        'B08A8790954534F40CD27A09A66FC6A0089771701');
      'meat': food:= DTMFromString('78DA63B465646048026224D09099CA9002A44' +
        '1A2FF8180D103C80A41550391859140DA1DC88A23A00664571601' +
        '350640560E01354640560A01355640560C01354E405632013520B' +
        'F471050634E849B416A12F0AB0100F7380CB3');
    end;

    Then if i is lobster, it will load the lobster dtm to food. If you still do not understand read a few tutorials on if-thens, case ofs, and while dos.
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  6. #6
    Join Date
    Dec 2006
    Location
    Boss central
    Posts
    811
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Deathjoey View Post
    I was wondering if it was possible to do a few things:
    1. Make a script pause itself

    2. Make 1 huge procedure with all your bitmaps/DTMs in it and select which ones to load with booleans or something
    well umm

    for a script pausing i could say useing Wait (100) pausing script then after it will start again

    so maybe wait(10000000)


    and the other one im not really sure i dont quiet get your question
    Being A Boss

  7. #7
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Well you can type '.' in scar and wait for the procedure list to load up and then check.
    Also you can use arrays for the loading of the DTM's

  8. #8
    Join Date
    Apr 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm...
    I knew about assigning DTMs/Bitmaps to an integer but what I wanted was something like if I was making a procedure with more than one bitmap in it, i could put all the DTMs in an include or a procedure and selectively load them when I needed them.

    And im guessing that pausing the script isnt possible?
    What i wanted it for was something like if I was in the middle of doing something and a random popped up, it would solve the easier ones and of it couldnt, it would pause the script, and wait for me to come back and solve it, such as like a mime or something.

    [edit] With the pausing, I want it to be like you pressed the pause button from scar instead of terminating the script or using a wait so that I could come back, do what I needed to do, and resume the script from where it left off instead of having to restart the script. [/edit]
    Reality is for those who can't handle dreams...

  9. #9
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Like?

    SCAR Code:
    Function DTM(I: Integer): Integer;
    Begin
      Case I Of
        0: Result := DTMFromString('000');
        1: Result := DTMFromString('000');
        2: Result := DTMFromString('000');
        3: Result := DTMFromString('000');
        4: Result := DTMFromString('000');
      End;
    End;

    Used: If FindDTM(DTM(0), X, Y, MSX1, MSY1, MSX2, MSY2) Then
    ....

    There Really Is No Way To Pause And Resume It... But You Could Repeat A Wait Until A Key Is Pressed Down.. Like This...

    SCAR Code:
    Repeat
      Wait(100 + Random(50))
    Until (IsKeyDown('r'));

  10. #10
    Join Date
    Apr 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Dont worry about the DTM part any more...
    I realised it would just be easier to Make an include with all the Bitmaps and DTMs in seperate procedures and load them as i needed.

    Also with randoms, when you get tele'd somewhere and you log out, when you log back in again, are you still in the place you got teleported to, or are you back where you started.
    I was thinking that if you WERE still with the random, I could just make the script log out, and alt+tab? to scar and hit the pause button manually...
    (Yes, I know I could make it change players, but I only have 1 account)

    Would that work?
    Reality is for those who can't handle dreams...

  11. #11
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    No you would only get back to where you were, but there maybe a get out clause here,
    If your script is running in lumbridge then you can make it

    SCAR Code:
    CastSpell(1)

    And then make it resume the walking.

    Hope I Helped

  12. #12
    Join Date
    Apr 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    No you would only get back to where you were, but there maybe a get out clause here,
    What I meant was that, say I was fighting At Al-Kharid.
    If I burried a bone and got teleported somewhere by a random, If I logged off and logged back in, would I still be in the place I got teleported TO or would I be back at Al-Kharid?

    IF when I logged back in, I was where I got teleported TO, I could just make it log off and pause itself, wait for me to come back, log in, and solve the random, and then unpause the script and carry on doing whatever it was doing before the random.

    If when I logged back in, I was back to where I got teleported FROM, I could put in some Anti-Bans to make it stay logged in so I could come back, and finish the random myself.
    Reality is for those who can't handle dreams...

  13. #13
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    You would be where the random teleported you to. But I cant think of a function to make Scar pause o.O
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  14. #14
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    to wait do this

    SCAR Code:
    repeat
    wait(5000);
    until whatever

    actually i see what your saying. Do the hotkey
    ~ Metagen

  15. #15
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    no, More Like This....

    SCAR Code:
    Repeat
      Wait(100 + Random(50));
    Until (IsKeyDown('c'));
    FindNormalRandoms;
    Wait(10 + Random(10));
    If LoggedIn Then
    Begin
      WriteLn('Sucsefully Had You Solve Random');
      Players[CurrentPlayer].Rand := '';
      Players[CurrentPlayer].Active := True;
    End Else
      WriteLn('Why Continue Me If You Didn''t Solve The Random I Was Stuck In?');

  16. #16
    Join Date
    Apr 2008
    Posts
    88
    Mentioned
    2 Post(s)
    Quoted
    24 Post(s)

    Default

    Quote Originally Posted by pvh View Post
    1 should be possible... im not sure if there is an option for it in srl/scar..
    but you can always do it with mouse(x,y (cooordinates), true);

    2. not sure

    This would be immposible you have to tell it an valid code with a ,1,1 after it or just a word.

  17. #17
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    @ sneakdella: what?

    @ deathjoey: Btw you cant use mouse x y for clicking the pause button unless you have the clientdc set to the scar window. it is set to the runescape window. I recommend what timer sais
    ~ Metagen

  18. #18
    Join Date
    Apr 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by metagen View Post
    @ deathjoey: Btw you cant use mouse x y for clicking the pause button unless you have the clientdc set to the scar window. it is set to the runescape window
    With the set client, I never set a client window...
    I use a little function I made to do what I need.
    SCAR Code:
    function ClientCheck : Boolean;
    begin
     Repeat
      begin
       result:=False;
       if (findDTM(ClientWindow,xx,yy) then result:= true
       wait(500+random(500));
      end;
     Until(Result=true);
    end;

    This function checks for the runescape client window and also serves as a pause between each action I do.
    If I alt+tab out of runescape, it kinda pauses the script (or waits indefinetely) until it finds the runescape client window again.

    except the reason why I want the script to pause is, that if im using this function and I just alt+tab out to pause, when I alt tab back to solve the random, the script would try to run like normal which wouldnt work...
    Reality is for those who can't handle dreams...

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
  •