PDA

View Full Version : Help needed with my first script



YMCMBubel
12-22-2015, 07:34 PM
I'm new to Simba and scripting, so of course I'm having issues. Sorry if these are nooby issues, but I guess they are what they are...

So here's my first script:


program CalebFighter;
{$I srl/srl.simba}

var
Goblin, x, y: integer;

begin
Goblin:= DTMFromString('mggAAAHicY2NgYNjCyMBwCoh3A/FpIN4OxOeA+CdQjgdKswDpt0D6PxBz+nIycHpCMIMzkA7nA9O4 ACMODAEACGQKpw==');
FindDTM(Goblin, x, y);
MoveMouse(x, y, 0, 0);
FreeDTM(Goblin); // This is Line 11 in the error

end.

I'm trying to get Simba to find the Goblin using the DTM points I picked out and then move my mouse to the Goblin that it found. I was just following a YouTube video on finding DTM's so I'm not entirely sure what I'm doing, but I get this error when running it:


[Error] C:\Simba\Scripts\CalebFighter.simba(10:24): Invalid number of parameters at line 11
Compiling failed.

And to further this script, can anyone tell me what the NEXT step would be after I successfully get Simba to move the mouse to the Goblin?

Joopi
12-22-2015, 08:04 PM
MoveMouse(); only takes 2 params if you dont have srl-6 included.

so change that to MoveMouse(x, y);

p.s why are you using srl/srl.simba? isnt that like old?
either way gl with this and keep the questions coming :)

jstemper
12-26-2015, 06:03 AM
use color finding for clicking npcs bro