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
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
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...
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.
is it ok that my tolerance is 225 or is impiwimpi right and it shouldnt be that high
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![]()
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.
If it's for something like some ore, which the shape is the same for each one, keep it at 255.
lol
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
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 wrokCode: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;
I thinks it your dtms, did you make the sub points the black line of the ore?
lol
it'll drop ore only if it finds gem.SCAR Code:If FindDTM(OreDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
If FindDTM(GemDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
Last edited by Iroki; 03-23-2009 at 07:45 PM.
:P
what you want to drop, only ore?? or ore and game??
:P
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.
right Richard![]()
:P
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;
Instead of all parsing in one procedure, you should split it more. For example you could make a procedure LoadMyDTM('').
To be honest, I don't know. But it will make your script look more clarifying![]()
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
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.
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
To make it not open the graphics setting, put the following code before LoginPlayer:
SCAR Code:GraphicsSet := true;
There are currently 1 users browsing this thread. (0 members and 1 guests)