Well, I got everything ready except this.
The Portal is always 'floating up and down' so the colors change a bit no matter what.
I could use tolerance I guess, but I want to know if theres an alternative.
Thanks.
Well, I got everything ready except this.
The Portal is always 'floating up and down' so the colors change a bit no matter what.
I could use tolerance I guess, but I want to know if theres an alternative.
Thanks.
SCAR Code:Function EnterTemple: Boolean;
var
Talisman,a,b,I: Integer;
Box,Box2: TBox;
begin
GameTab(4)
Talisman := DTMFromString('78DA63B466626078C88002AA8B8A18FE03694' +
'620FE0F048CCE4035B718D000231209A43D816AEEE05603C63E40' +
'354F09A87107AA7949408D0350CD2B22D47C22A0C602A8E61D013' +
'5664035AF09A8B121EC6600112A121B');
if 1=1 then
begin
if FindDTM(Talisman,a,b,MIx1,MIy1,MIx2,MIy2) then
begin
Mouse(a,b,7,7,true)
end;
end;
repeat
if FindColorTolerance(a,b,5333885,MSx1,MSy1,MSx2,MSy2,10) then
begin
Wait(100+random(1000))
MMouse(a+10,b+10,20,20)
if IsUpText('ysterious') then
begin
GetMousePos(a,b)
Mouse(a,b,0,0,true)
Result:= True;
Break;
end else
begin
Box:= IntToBox(a-15,b-15,a+15,b+15)
if FindColorSkipBoxTolerance(a,b,5333885,MSx1,MSy1,MSx2,MSy2,10,Box) then
begin
MMouse(a+10,b+10,20,20)
if IsUpText('ysterious') then
begin
GetMousePos(a,b)
Mouse(a,b,0,0,true)
Result:= True;
Break;
end else
begin
Box2:= IntToBox(a-15,b-15,a+15,b+15)
if FindColorSkipBoxArrayTolerance(a,b,5333885,MSx1,MSy1,MSx2,MSy2,10,[Box, Box2])then
begin
MMouse(a+10,b+10,20,20)
if IsUpText('ysterious') then
begin
GetMousePos(a,b)
Mouse(a,b,0,0,true)
Result:= True;
Break;
end;
end;
end;
end;
end;
end;
Wait(10+random(10))
I:= I + 1;
until(I >= 3000)
FlagNWait;
Wait(5000+random(5000))
FreeDTM(Talisman)
end;
Try that one. If you wonder why it is "if 1=1", I can tell you it is because you can replace it with another booleanvalue. For example, if the account uses tally or tiara.
Remember to credit me, etc, if you choose to use it
GL with your script,
-Knives
Not the altar, the portal inside the altar...lol
EDIT
Actually, I think I'm going to make an autocolor thing. It'll teach me something new =/
...Maybe
OH THE PORTAL! The portal OUT of the temple. I should really learn to understand what I read.
I would put a loop with if FindObj. Break the loop if it finds the portal and wait 10+random(10) if it doesn't find it. That will you will search for the color once every 10-20th milliseconds. And since you're in a loop it would most likely find it no matter what...
-Knives
Yeah, I think that may be what I have to do, since trying to auto-color it would still be impossible since the pixels keep changing..I would have to know at least one of the pixels colors, and I don't think any of them are constant in there.
I'm gonna do some research, and maybe invent a 'FindColorProximity'
Thanks Knives.
FindObj uses a mixture of up-text and color with tolerance.
With the loop and what I said before, it should find it, assuming you pick a good color and set the tolerance on a good level.
Something like this:
SCAR Code:repeat
if FindObj(a,b,'ortal',10733771,15) then
begin
Mouse(a,b,0,0,true)
FlagNWait;
Break;
Wait(5000+random(5000))
end;
Wait(10+random(10))
Inc(I)
until(I >= 2500)
But if you wish to make a new function, just do that. Always good training.
-Knives
Look at Wizzy's ess miner pl0x? :|
Send SMS messages using Simba
Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!
Me > Wizzup
You might aswell get used to it... JK
But seriously, my way works, Wizzup's works. His choice.
-Knives
Where can I find the tolerance function? I'm interested in how it was setup, because my function is going to be similar.
And the proximity function may work in the exact same way as I have in mind, meaning I'd be wasting a few goods hours in a 'not-as-powerful' version of it.
(and mine will be superior to yours since it will be universal =D ...and impossible in certain places. )
Autocoloring is more than just getting the value from a pixel 0_0.
But anyway, you know what a DTM is?
The jealous temper of mankind, ever more disposed to censure than
to praise the work of others, has constantly made the pursuit of new
methods and systems no less perilous than the search after unknown
lands and seas.
Would a DTM work with a constantly changing object? O_o
I thought autocloring was getting the coordinates of 2 or more matched pixels, and using the x/y mod to find to value of the pixel you are looking for.
Either way, I don't think DTMs or autocoloring would work with the portal, and that it would have to use timing/multiple frames.
Dude, use my idea before n3ss3s comes in here with his TPoints *Looks over shoulder*Mine works. Or... It did last time I checked.
-Knives
lol, OK knives, I'll use yours for now. But what is this 'FlagNWait' you speak of? Or inc?
Thanks man
and it looks like meta stole ANOTHER of my ideas. Last time I'm posting anything concerning what I'm thinking, because theres always some rat-thief around...
There are currently 1 users browsing this thread. (0 members and 1 guests)