Results 1 to 3 of 3

Thread: Help needed with my first script

  1. #1
    Join Date
    Aug 2014
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default Help needed with my first script

    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:

    Code:
    program CalebFighter;
    {$I srl/srl.simba}
    
    var
      Goblin, x, y: integer;
    
    begin
      Goblin:= DTMFromString('mggAAAHicY2NgYNjCyMBwCoh3A/FpIN4OxOeA+CdQjgdKswDpt0D6PxBz+nIycHpCMIMzkA7nA9O4ACMODAEACGQKpw==');
      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:

    Code:
    [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?
    Last edited by YMCMBubel; 12-22-2015 at 07:37 PM.

  2. #2
    Join Date
    Sep 2014
    Location
    C:\Simba\
    Posts
    565
    Mentioned
    9 Post(s)
    Quoted
    71 Post(s)

    Default

    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
    Feel free to ask me any questions, I will do my best to answer them!

    Previously known as YouPee.

  3. #3
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    use color finding for clicking npcs bro

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •