Results 1 to 23 of 23

Thread: Help getting DTMs

  1. #1
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help getting DTMs

    I am creating a cooking script for fish, unfortunately my character's fishing level is to high to burn any fish except swordfish, which means i can't create DTMs of burnt fish.
    So now I need some help from you to get some DTMs of burnt Fish. I need DTMs of all F2P fish when they are burnt, You will get acknowledgment in my script, if you want it.
    Last edited by Bad Boy JH; 12-18-2009 at 01:02 AM.

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Why do you need DTM's of the burnt fish? Do you need them or do you just want to drop them?

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  3. #3
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Bad Boy JH View Post
    I am creating a cooking script for fish, unfortunately my character's fishing level is to high to burn any fish except swordfish, which means i can't create DTMs of burnt fish.
    So now I need some help from you to get some DTMs of burnt Fish. I need DTMs of all F2P fish when they are burnt, You will get acknowledgment in my script, if you want it.
    Go to some place where people cook a lot of fish, and pick up the ones they burn.

  4. #4
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I was planning on using finddtm to find them, and then dropping them somehow, is there a way I can do it another way, going over the items and using isuptext, is too detectable. so therefore i need to find another way, and findDTM, seemed like a good idea.

  5. #5
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Bad Boy JH View Post
    I was planning on using finddtm to find them, and then dropping them somehow, is there a way I can do it another way, going over the items and using isuptext, is too detectable. so therefore i need to find another way, and findDTM, seemed like a good idea.
    How is checking for the uptexts detectable?

  6. #6
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Why not just search for the burnt color? Since all burnt items have the same color area.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  7. #7
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    How is checking for the uptexts detectable?
    Because i would be moving my mouse over all the items in my inventory, which if I understand correctly, every time you move your mouse over something, the mouse position is sent to RS, and they tell your client what your mouse is over, and if you move your mouse over every item, it gets suspicious. I didn't say checking uptext is detectable, just doing what i want that way, is suspicious.

  8. #8
    Join Date
    Nov 2009
    Location
    Seattle, WA
    Posts
    589
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Camo Developer View Post
    Why not just search for the burnt color? Since all burnt items have the same color area.

    ~Camo
    With him^^^^. Search the inventory for all colors of that black.... tar'ish.... old color and do whatever you need to do with it.
    Don't Troll, Don't Fight, Just keep the Respect
    Status : Offline

    Feel free to re-make my scripts ;D
    Community Member

  9. #9
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What if I do the inverse, I get the bounds for inventory slots (InvBox) and check each box for a cooked fish. If it doesn't find a cooked fish, it drops the fish.

  10. #10
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    SCAR Code:
    procedure DroppedFish;
    var
      x, y, I : Integer;
    begin
      for I := 1 to 28 do
        if(FindColor(x, y, {BurntColor}, MIX1, MIY1, MIX2, MIY2))then
        begin
          Mouse(x, y, 5, 5, False);
          ChooseOption('rop');
        end;
    end;
    How bout that? Simple and can be upgraded if needed.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  11. #11
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    to advoid cluttering the forums with topics, anyone able to tell me whats wrong here? im getting this error:
    [Error] (20915:15): Invalid number of parameters in script C:\Users\admin\Desktop\cooker.scar
    The error line is the Bolded line, and I don't know what's wrong, invalid number of parameters, means i need to add parameters to something, but Ismoving has no parameters!

    Code:
    Function WalkToRange:Boolean;
    begin
      if(findsymbol(x, y, 'Kebab Shop')) or findsymbol(x, y, 'Cook') then
        begin
        mouse(x, y, 5, 5, true)
        Result := True
        end else;
        if(radialwalktol(195836, 180, 210, 60)) then
        begin
          wait(2000);
          Result:=True;
        end else;
        begin
        Result:=False;
        Exit;
        end;
      while(ismoving);
        wait(500)
    end;

  12. #12
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    SCAR Code:
    while(ismoving)do
    //code

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  13. #13
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nope, still giving the same error...

  14. #14
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    You sure it's that line?

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  15. #15
    Join Date
    Apr 2007
    Location
    Australia
    Posts
    4,163
    Mentioned
    9 Post(s)
    Quoted
    19 Post(s)

    Default

    You have the right idea with DTM's. Personally I'd err agaisnt just checking for the burnt colour, it would work but if for some reason the player gets another item in their invent which has that colour then it would drop that as well. Like if the script accidentally removes a piece of armour or something. You can find pics of game items on sites like tip.it and runehq.com

  16. #16
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes, I had that same question asked in IRC, the cursor also moves to that line...

    Want me to post script?

  17. #17
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Try this:
    SCAR Code:
    Function WalkToRange : Boolean;
    begin
      if(FindSymbol(x, y, 'Kebab Shop')) or FindSymbol(x, y, 'Cook')then
        begin
          Mouse(x, y, 5, 5, True);
          Result := True;
        end;
      if(RadialWalkTol(195836, 180, 210, 60))then
      begin
        Wait(2000);
        Result := True
      end else
      begin
        Result := False;
        Exit;
      end;
      while(IsMoving)do
        Wait(500);
    end;

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  18. #18
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Fixed it, Don't know why, if you would like to explain why, I would be grateful...

    now its not telling me where the error in my last section is...

    [Error] (21821:4): Identifier expected

    Code:
    begin
      SetUpSRL;
      SetupCooking;
      DeclarePlayers;
      LoginPlayer;
      repeat;
        inc(PlayerCount)
        walktobank;
        gametab(25);
        repeat;
          Issue := False
          if(bank) then
          begin
            antiban;
            if(walktorange) then
            begin
              if(cook) then
              begin
                DropBurns
                if(walktobank) then
                begin
                  inc(Players[CurrentPlayer].Integers[1]);
                  writeln('Finished Load number ' + inttostr(Players[CurrentPlayer].Integers[1]));
                  antiban;
                  Issue := False
                end;
              end;
            end;
          end;
        until(Players[CurrentPlayer].Integers[1]=Players[CurrentPlayer].Integers[0]) or
              Issue
        NextPlayer(False);
      until(allplayersinactive);
    WriteReport;
    end.
    Last edited by Bad Boy JH; 12-18-2009 at 06:30 AM.

  19. #19
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Basically you had semicolons after the else's and you only really needed one else since you were checking for a symbol or radial walk. The semicolons were causing the problem.

    Try this:
    SCAR Code:
    begin
      SetUpSRL;
      SetupCooking;
      DeclarePlayers;
      LoginPlayer;
      repeat // No semi colons after repeat
        inc(PlayerCount);
        walktobank;
        gametab(25);
        repeat // Same for here
          Issue := False; // Need semicolon after this
          if(bank)then
          begin
            antiban;
            if(walktorange)then
            begin
              if(cook)then
              begin
                DropBurns;
                if(walktobank)then
                begin
                  inc(Players[CurrentPlayer].Integers[1]);
                  writeln('Finished Load number ' + inttostr(Players[CurrentPlayer].Integers[1]));
                  antiban;
                  Issue := False; // Semicolon here too
                end;
              end;
            end;
          end;
        until(Players[CurrentPlayer].Integers[1] = Players[CurrentPlayer].Integers[0]) or NextPlayer(False);
      until(allplayersinactive);
      WriteReport;
    end.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  20. #20
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The First "issue:=False" should have been true, and when you changed
    SCAR Code:
    until(Players[CurrentPlayer].Integers[1] = Players[CurrentPlayer].Integers[0]) or Issue;
      nextplayer(false)
    to
    SCAR Code:
    until(Players[CurrentPlayer].Integers[1] = Players[CurrentPlayer].Integers[0]) or NextPlayer(False);
    I needed it to check, if the integer[0] is the same as integer[1] or if I had detected an issue, or actually failed to detect one, and the nextplayer(false) moves to the next player in multiplayer scritpts, but i figure you know that, so I am stating the obvious aren't I?

    Hasn't Fixed the Problem, ill see if i can rewrite it... may fix the problem

  21. #21
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Didn't help same error...

  22. #22
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    FIXED IT
    I split it up, hoping to fix the identifier expected after i found out what that meant...lol

    SCAR Code:
    Function Cookaload:boolean;
    begin
      Result:=False
      if(bank) then
        if(Walktorange) then
          if(cook) then
          begin
            dropburns;
            if(Walktobank) then
            begin
              antiban;
              Result := False;
            end;
          end;
    end;

    begin
      SetupSRL;
      SetupCooking;
      DeclarePlayers;
      Loginplayer;
      repeat
        inc(playercount);
        walktobank;
        gametab(25);
        repeat
          if(Cookaload) then
          begin
            Issue := True
            inc(players[Currentplayer].Integers[1])
          end;
        until(players[Currentplayer].Integers[0]=players[Currentplayer].Integers[1]) or Issue
        nextplayer(false);
      until(allplayersinactive);
      writereport;
    end.

  23. #23
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Go the the Grand Exchange link on runescape's homepage and search for the item you want to have a DTM from

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
  •