Results 1 to 24 of 24

Thread: dtm question

  1. #1
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default dtm question

    ok so im making a universal dtm for all the ores i already have the parent point set to 225 tolerance but is it batter to have a lot of border lines or few

  2. #2
    Join Date
    Nov 2008
    Location
    Belgium
    Posts
    254
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmmm, i don't think that the tolerance needs to be that high...
    And for the border lines, i wouldn't chose that many, choose only those that are very particular to the ore form...

  3. #3
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    The more points you have, the more reliable it is. But it will make the code less efficient if you have more points. I would suggest something like 3 or 4.

  4. #4
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    is it ok that my tolerance is 225 or is impiwimpi right and it shouldnt be that high

  5. #5
    Join Date
    Nov 2008
    Location
    Belgium
    Posts
    254
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I know thay say it in some tuts that it has to be 225, but when youre using findtm for inventory use, then i think it shouldnt be that high

  6. #6
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    Depends if the main point you are using is the one that changes, if it is then you definately need to have it quite high. Just experiment and see what works.

  7. #7
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If it's for something like some ore, which the shape is the same for each one, keep it at 255.
    lol

  8. #8
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Ok this is my probelm it wont drop the ores it may be my dtms(tht was my guess)
    or sumtin else

    heres the script

    Code:
    procedure DropTheStuff;
    begin
      repeat
        Disguise('dropping');
      {//MithDTM:= DTMFromString('78DA637461606038C780021C1CE3184480342' +
     {      '310FF0702C62020E318031A60442281B427903844408D13903848' +
           '408D29A67BB0AAB946845D7708A8F123C21C90DFCFE057030046A' +
           '30EB0');
    
       //AddyDTM:= DTMFromString('78DA6374656060D0646440069E315E0C22401' +
           'A24FA1F081803810C05543510591809A40380840101354E40C29C' +
           '801A3320A14E408D03909025A0C693B01A0010E60813'); }
    
         OreDTM := DTMFromString('78DA637463626078C28002FC0C54181E02694' +
           '620FE0F048CEE40353718D000231209A403816AEE1350E30D54F3' +
           '86801A7BA09A4F04D49800D53C26C29CEBF8D5000045B70DB0');
    
         GemDTM := DTMFromString('78DA8DD2510E82300C06E06E814C144C500E0' +
           '3461F603199E869B83127C17F3324F3616BFBB026DB97656BAB46' +
           '4D6414C5715E2EB422FBDD0DA15E30EADFFC4EF71579862918F38' +
           '6A904C630E603734A9BC2670BD3A54DE9F324307DFE5FC10C304D' +
           'DA1CF67B8E02A31933E47B11CC4347D54A182B30BE3E1BE58D13B' +
           'C87998D60EE3057C6DC605A410D6BC68CF9BE7782F909E629308E' +
           '375FE5310F20');
    
      { //CoalDTM:= DTMFromString('78DA639CC6C4C0F08C01059899A9328800694' +
           '620FE0F048C8B816A6E33A001462412482F02AA794D40CD64A09A' +
           '4F04D4B403D5BC2042CD13026A2601D5DC20A0A61BA8E61E7E350' +
           '0164F1082');
    
         CopperDTM:= DTMFromString('78DA637462626078C28002B6A6EB313C04D28' +
             'C40FC1F0818BD806A6E33A00146241248BB02D5DC20A0C604A8E6' +
             '310135C640356F08A87100AAF944408D2F50CD4B026AEC08BB190' +
             '0EA3E0F6B');
    
         TinDTM:= DTMFromString('78DA63CC63626078C28002DAEB6A191E02694' +
             '620FE0F048C5540357718D000231209A4F3816A6E10509341849A' +
             '58A09A674498F389809A0AA09A37A82A0C141450D580FCF508BF3' +
             '90016F91182');
        //If FindDTM(MithDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
        //If FindDTM(AddyDTM,x,y,MIX1,MIY1,MIX2,MIY2) then  }
        If FindDTM(OreDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
        If FindDTM(GemDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
        //If FindDTM(TinDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
       // If FindDTM(CoalDTM,x,y,MIX1,MIY1,MIX2,MIY2) then }
    Begin
      Mouse(x,y,2,2,False);
      wait(random(200));
      ChooseOption('Drop');
      wait(500 + random(100))
      Drops:= Drops + 1;
    end;
    Until InvEmpty or ( drops=30);
    begin
    If not FindDTM(OreDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
    If not FindDTM(GemDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
    begin
    WriteLn('couldnt find ore/gem')
    end;
    end;
    end;
    all teh dtms that r green is beacuse ahd a seperat on for each ore but it was running out of memory so i just made a new one there only there incase ic ant get a universal one to wrok

  9. #9
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I thinks it your dtms, did you make the sub points the black line of the ore?
    lol

  10. #10
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by Quickmarch View Post
    I thinks it your dtms, did you make the sub points the black line of the ore?
    yup i did

    could it be that its looking for the gem dtm instead of the ore dtm

  11. #11
    Join Date
    Jul 2008
    Location
    Poland
    Posts
    375
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    If FindDTM(OreDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
        If FindDTM(GemDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
    it'll drop ore only if it finds gem.
    Last edited by Iroki; 03-23-2009 at 07:45 PM.
    :P

  12. #12
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by Iroki View Post
    SCAR Code:
    If FindDTM(OreDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
        If FindDTM(GemDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
    it'll drop ore only if it finds gem.

    r u saying that if i were to split up the gem and or droping it would work

  13. #13
    Join Date
    Jul 2008
    Location
    Poland
    Posts
    375
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    what you want to drop, only ore?? or ore and game??
    :P

  14. #14
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    It will only drop the gems because you've used the same variables in both the OreDTM function and the GemDTM one, so the x and y values will be for the gem, and will only ever drop the gems, or drop nothing if it doesn't find any gems.

  15. #15
    Join Date
    Jul 2008
    Location
    Poland
    Posts
    375
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    right Richard
    :P

  16. #16
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    ok heres my new droping procedure tell me what u think
    Code:
    procedure OreDropping;
    begin
      repeat
        Disguise('dropping ores');
      {//MithDTM:= DTMFromString('78DA637461606038C780021C1CE3184480342' +
     {      '310FF0702C62020E318031A60442281B427903844408D13903848' +
           '408D29A67BB0AAB946845D7708A8F123C21C90DFCFE057030046A' +
           '30EB0');
    
       //AddyDTM:= DTMFromString('78DA6374656060D0646440069E315E0C22401' +
           'A24FA1F081803810C05543510591809A40380840101354E40C29C' +
           '801A3320A14E408D03909025A0C693B01A0010E60813'); }
    
         OreDTM := DTMFromString('78DA637463626078C28002FC0C54181E02694' +
           '620FE0F048CEE40353718D000231209A403816AEE1350E30D54F3' +
           '86801A7BA09A4F04D49800D53C26C29CEBF8D5000045B70DB0');
    
      { //CoalDTM:= DTMFromString('78DA639CC6C4C0F08C01059899A9328800694' +
           '620FE0F048C8B816A6E33A001462412482F02AA794D40CD64A09A' +
           '4F04D4B403D5BC2042CD13026A2601D5DC20A0A61BA8E61E7E350' +
           '0164F1082');
    
         CopperDTM:= DTMFromString('78DA637462626078C28002B6A6EB313C04D28' +
             'C40FC1F0818BD806A6E33A00146241248BB02D5DC20A0C604A8E6' +
             '310135C640356F08A87100AAF944408D2F50CD4B026AEC08BB190' +
             '0EA3E0F6B');
    
         TinDTM:= DTMFromString('78DA63CC63626078C28002DAEB6A191E02694' +
             '620FE0F048C5540357718D000231209A4F3816A6E10509341849A' +
             '58A09A674498F389809A0AA09A37A82A0C141450D580FCF508BF3' +
             '90016F91182');
        //If FindDTM(MithDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
        //If FindDTM(AddyDTM,x,y,MIX1,MIY1,MIX2,MIY2) then  }
        If FindDTM(OreDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
        //If FindDTM(TinDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
       // If FindDTM(CoalDTM,x,y,MIX1,MIY1,MIX2,MIY2) then }
    Begin
      Mouse(x,y,2,2,False);
      wait(random(200));
      ChooseOption('Drop');
      wait(500 + random(100))
      Drops:= Drops + 1;
    end;
    Until not FindDTM(OreDTM,x,y,MIX1,MIY1,MIX2,MIY2) or (drops=29);
    end;
    
    
    procedure GemDroping;
    begin
    repeat
    Disguise('dropping gems');
    GemDTM := DTMFromString('78DA8DD2510E82300C06E06E814C144C500E0' +
           '3461F603199E869B83127C17F3324F3616BFBB026DB97656BAB46' +
           '4D6414C5715E2EB422FBDD0DA15E30EADFFC4EF71579862918F38' +
           '6A904C630E603734A9BC2670BD3A54DE9F324307DFE5FC10C304D' +
           'DA1CF67B8E02A31933E47B11CC4347D54A182B30BE3E1BE58D13B' +
           'C87998D60EE3057C6DC605A410D6BC68CF9BE7782F909E629308E' +
           '375FE5310F20');
    
           If FindDTM(GemDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
     Begin
      Mouse(x,y,2,2,False);
      wait(random(200));
      ChooseOption('Drop');
      wait(500 + random(100))
      GemDrops:= GemDrops + 1;
      f:=f +1;
    end;
    Until not FindDTM(GemDTM,x,y,MIX1,MIY1,MIX2,MIY2);
    end;

  17. #17
    Join Date
    Nov 2008
    Location
    Belgium
    Posts
    254
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Instead of all parsing in one procedure, you should split it more. For example you could make a procedure LoadMyDTM('').

  18. #18
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by impiwimpi View Post
    Instead of all parsing in one procedure, you should split it more. For example you could make a procedure LoadMyDTM('').
    will that help my script perform better

  19. #19
    Join Date
    Nov 2008
    Location
    Belgium
    Posts
    254
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    To be honest, I don't know. But it will make your script look more clarifying

  20. #20
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try adding some debug in there like after if FindDTM etc put WriteLn('Found DTM!');
    That should help you find out what the problem is
    lol

  21. #21
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    i have something like that it say "mining primary rock"

    and "minining secondary rock"


    edit:

    is there a way to make it so that it doesn'topen the graphics setting
    Last edited by JPHamlett; 03-23-2009 at 08:58 PM.

  22. #22
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by jpizzle View Post
    i have something like that it say "mining primary rock"

    and "minining secondary rock"


    edit:

    is there a way to make it so that it doesn'topen the graphics setting
    Just don't let it login.
    lol

  23. #23
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    but then i cant use smart

    and is there a code or tut to have it keep track of itme and display it in the proggy

  24. #24
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    To make it not open the graphics setting, put the following code before LoginPlayer:
    SCAR Code:
    GraphicsSet := true;

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
  •