Solved issue, thanks to all who attempted to help.
No thanks to those who made fun... ehm, meta?
~Nava2
Solved issue, thanks to all who attempted to help.
No thanks to those who made fun... ehm, meta?
~Nava2
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
This worked for the picture, but try it in game:
SCAR Code:DTM := DTMFromString('78DA635462606058CF8002B2E3F818FE03694' +
'620FE0F048C2A986A20B23012486B02893D04D4C801893504D428' +
'0089D5F8D500001C7509FF');
It has 255 tolerance, so make sure there's not any bows before it or it might detect them instead.
:-)
Lets see how it goes... If it works, can I have the DTM file?
I use a DDTM to get every longbow (u)
~Nava2
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
Sure, you can have the DTM file if the finding is successful.
:-)
No such luck... I DUNNO WTF IS UP WITH IT!
~Nava2
Added code which the DTM is used in. Its in the first post.
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
Well, the DTM must not be working. It works fine in the DTM editor for SCAR with your picture. I'll upload the .dtm file for you. Try testing it in-game with the DTM editor.
http://www.mediafire.com/?hjohe1lmhtg <-- Link to DTM
:-)
SCAR Code:if FindDTM(PBow.DTMC, x1, y1, MSX1, MSY1, MSX2, MSY2) then
begin
Error('Out of (u) bows! :)'); // <- Writes this out and exits. When this proc is run, the script terminates. So why isn't it finding the dtm?
exit;
end;
So... if it finds the bow, then exit?
You want if not ... then I believe
By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.
Try this one
SCAR Code:DTM := DTMFromString('78DA63AC64606030666240065BB6668269462' +
'89FB1014838A0AA696DC84255530624F451D52C989580AAA60A48' +
'98A2AA890C974255530724AC51D5F4F444A0A80100129F0AA3');
STOP PM'ING ME
Omfg... if thats all it was... I wasted like two hours and I'm going to go and, you know, kill myself.
Okay, I'm still alive so far, my ddtm might be wrong, checking with a standard DTM that method made.
Method's DTM doesn't work, it found the Ores in my bank, and then a shark for some reason... :O
Trying others...
I got a sinking feeling I'm going to be making an uber complicated withdrawing system....
~Nava2
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
Just so you know you cannot make a bitmap from the image you showed us as it is a .Jpg You need it in a .bmp format for scar to reconise it corectly and get the best results.
~ Solemn Wishes
I THINK I FIGURED IT OUT!!
FREDDY CAN'T PROGRAM!!!
^Jokes
Uhm, the dtms are too close to ores and some other things in the bank. I'm going to make a function that will search each individual spot and store the ones which agree to variable.
If anyone figures out a better way, PLEASE TELL ME.
~Nava2
I'm making dtms, and I attached a .png file to make it from, as you are right, the .jpeg is bad quality!
~Nava2
So I wrote this fancy banking procedure, to make sure that the ores etc aren't withdrawn and this is what I get:
### Error: Out of (u) bows![Time Running: 21 Seconds]
^ Thats the same error I always get! FAKKK.
Here is the banking procedure.. maybe its wrong..
SCAR Code:function WithdrawDTM(DTM1: integer; var x, y, Index:integer; UpText: TStringArray; Option: string): boolean;
var x1, y1: integer;
BankBox: TBox;
Found: boolean;
label Start;
begin
if (Index = 0) then
begin
Start:
for Index := 1 to 50 do
begin
BankBox := BankIndexToMSBox(Index);
if FindDTM(DTM1, x1, y1, BankBox.x1 , BankBox.y1, BankBox.x2, BankBox.y2) then
begin
MMouse(x1, y1, 4, 4);
if IsUpTextMultiCustom([UpText]) then
begin
Writeln('Found DTM at Bank Slot ' + IntToStr(Index));
Found := true;
break;
end;
end;
end;
end else
begin
BankBox := BankIndexToMSBox(Index);
if FindDTM(DTM1, x1, y1, BankBox.x1, BankBox.y1, BankBox.x2, BankBox.y2) then
begin
MMouse(x1, y1, 4, 4);
if IsUpTextMultiCustom([UpText]) then
begin
Writeln('Found DTM at Bank Slot ' + IntToStr(Index));
Found := true;
end;
end else
begin
Writeln('DTM Moved, checking bank again.');
GoTo Start;
end;
end;
Wait(200+random(150));
if Found then
begin
GetMousePos(x, y);
if (Option <> '') then
begin
Mouse(x, y, 0, 0, false);
Wait(200+random(150));
ChooseOption(Option);
end;
Result := true;
end else
begin
Index := 0;
Writeln('Could not Find DTM in Bank, Please check your inputted settings.');
end;
end;
Nava2
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
Nava.... the edit button isn't broken... you can still edit rather than triple post![]()
STOP PM'ING ME
Did you try my fix or not? That out of u bow error is caused by it finding the DTM as you don't have a not, so if it did find it, it would say error and if not, then continue, which is illogical.
By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.
Sorry Hobbit, it wasn't intentional
Mix, it wasn't that. DDTM's don't work for some reason. I solved the issue though. Sorry forgot to edit the main post!
I fixed by writing a banking procedure that doesn't need an individual DTM!
Nava2
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
There are currently 1 users browsing this thread. (0 members and 1 guests)