Vexile
2012-12-25 00:05:50
Hello SRL community. I am new to SRL coding, and i was following a DTM tutorial for using it in your inv, objects, even minimap.
He said to try it on a blood rune, but i chose a vial. Also im doing this in a rsps, 2006 oldschool.
Here is the code:
And Debug:
It's checking the codes, as it said "we have examined a Vial!"
But my mouse didn't move, neither it didn't actrually examined the vial.
I have checked the inv area size for MIX1 - MIX2, and they seems fine.
Thanks for reading.
He said to try it on a blood rune, but i chose a vial. Also im doing this in a rsps, 2006 oldschool.
Here is the code:
program VialExamin;
{$i SRL\SRL.simba}//We need this in all scripts.
procedure ExamineVial;
var
x, y, Vial: Integer;// We Declare our DTM, x and y as Integers.
begin//Begins program.
ClearDebug;//Clears debug, keeps it clean.
SetupSRL; //Enables SRL.
Vial := DTMFromString('mwQAAAHic42RgYPBgQmB/IHYEYgcgDgBiZyD2BeLnQHXXgPgzEL9kgPA/AvEHIL4NxHeBuKurH0gy4sX8QJIQxm8CBMMBAAPDDPg=');
//With the above, we Defined our DTM with the code the DTM Editor gave us.
if FindDTM(Vial, x, y, MIX1, MIY1, MIX2, MIY2) then
//FindDTM(DTMname, x, y, xs, ys, xe, ys):Boolean;
MoveMouse(x, y);
ClickMouse(x, y, 2);
ChooseOption('Examine');//Choose Examine in the pop-up.
Writeln('We have examined a Vial!');
end;
begin
ExamineVial;
end.//Ends program. And Debug:
SRL Compiled in 0 msec
We have examined a blood rune!
Successfully executed.
The following DTMs were not freed: [2]
It's checking the codes, as it said "we have examined a Vial!"
But my mouse didn't move, neither it didn't actrually examined the vial.
I have checked the inv area size for MIX1 - MIX2, and they seems fine.
Thanks for reading.