Hi guys! I'm new here, just joined actually.
I came here figuring I'd probably just end up a generic leecher, but there wasn't a script for what I wanted (Grenwalls, for the sake of the economy) and so I thought I'd start to learn a bit. Not that I would even release this if I make one... (Not that I even CAN make one, hah. Newb here.) but if I learned more I guess I could contribute something less damaging to such a good money method. But anyways...
I used this tut from YoHoJo, and its oldish but not THAT old so I figured it would work. (http://www.youtube.com/watch?v=SlS4q9MiFX4)
I just figured out how to make a DTM, so I did that. It only detects what I want it to, which is good (I found that out in the DTM editor.) My problem is I was trying to make my mouse right click the DTM (in this case, a Fruitbat Pouch) and then I want it to click summon. Thats all I want right now. FindDTM, Move mouse, right click, summon. Thats it.
I am using RS in my internet browser so I made sure I selected the screen as my client. My problem is that when I start the script, it looks like it isn't making it to this line :
It doesn't print it in the debug area. The mouse does not move at all. All it says is this:WriteLn('Bat Pouch found.');
[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'X' never used at line 256
[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'Y' never used at line 256
Compiled successfully in 514 ms.
Successfully executed.
Heres the script:
program SumBat;
{$i srl/srl.simba}
var
BatPouch, X, Y: Integer;
begin
SetupSRL;
BatPouch := DTMFromString('mrAAAAHic42BgYOAHYmYGCOAEYnEglgFiaS DmA2JBIJYEYh6oGkaouBQQywLxlNP2QJIJJ5ZkwA8YCWAYAAA5 1gLJ');
if FindDTM(BatPouch, X, Y, MIX1, MIY1, MIX2, MIY1) Then
Begin
WriteLn('Bat Pouch found.');
MMouse(X, Y, 7, 7);
If IsUpText('ruit') Then
Mouse(X, Y , 0, 0, False);
ChooseOption('ummon');
End;
FreeDTM(BatPouch);
end.
ALSO
In YoHoJo's vid, he said
Mouse(X, Y , 0, 0);
should move the mouse AND click. Does that mean I could just omit the MMouse command and jump straight to this:
Mouse(X, Y , 7, 7, False);
?
Just wondering. SORRY FOR THE LONG POST!
It's probably something really simple, but I am a newb so I don't really understand I guess. Its also really late, and I'm tired. Any help would be great. I wanna move on so I can understand more. Thanks, and please help me out if you can!


Reply With Quote









