EZ41
2015-02-01 10:43:49
I'm trying to get DTMs to work. I have made the DTM in the editor, when I click 'Find DTMs' in the editor it puts crosses on the right items.
http://imgur.com/MlBtJtw
http://imgur.com/r31cK00
But when I go to actually use it in a script, the DTM never seems to be found.
What am I doing wrong?, this is getting really frustrating.
Thanks.
http://imgur.com/MlBtJtw
http://imgur.com/r31cK00
But when I go to actually use it in a script, the DTM never seems to be found.
program DTMTest;
{$I SRL-OSR\SRL.simba}
var
dtm, X, Y: Integer;
begin
dtm := DTMFromString('mqAEAAHiczcrBCkBQFATQeb7Bmo2FsvGS5AkhJL/nn/yWeTXFwtLCrdN0750QwBgAC+20Kf0+0Uw91eKopU7pf4O6q/q5ATIqySodNQ8VFebuppRQTJEkutvzwJ/HfOxtLgobCrE=');
if FindDTM(dtm, X, Y, MIX1, MIY1, MIX2, MIY2) then
begin
WriteLn('You found the item!');
MMouse(X, Y, 7, 7);
//if IsUpText('pray') then
//Mouse(X, Y, 0, 0, true);
end;
FreeDTM(dtm);
end.
What am I doing wrong?, this is getting really frustrating.
Thanks.