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?
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?