Results 1 to 8 of 8

Thread: New Tutorial Island Runner problems

  1. #1
    Join Date
    Sep 2008
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default New Tutorial Island Runner problems

    So this will be my first script in quite a long time. So far I have the login function all set up and think that i have it set up so it will go with one preset look but the mouse doesn't appear to move, it just stops and waits.

    Code:
     program Barbarianl3tNewTutorialRunner;
    {.include srl/srl/misc/smart.scar}
    {.include SRL/SRL.scar}
    
    
    var
    x,y: Integer;
    step, world: Integer;
    username, password: String;
    
    const
    presetTopX = 295;
    presetTopY = 120;
    presetBotX = 362;
    presetBotY = 180;
    
    procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
      
      Players[0].Name := '';
      Players[0].Pass := '';
      Players[0].Nick := 'kill';
      Players[0].Active := True;
    
     {Players[1].Name := '';
      Players[1].Pass := '';
      Players[1].Nick := '';
      Players[1].Active := True;}
      
     step := 0; //don't change
     MouseSpeed := 12;
     World := 94;
    end;
    
    procedure Step0;
    begin
     Wait(5000+random(400))
     Mouse(presetTopX, presetTopY, random(presetBotX - presetTopX), random(presetBotY - presetTopY), true);
     Wait(300 + random(200));
     Mouse(322,398,80, 15, True);
    end;
    
    procedure Step1;
    begin
     KeyDown(39);
     Wait(2000 + random(1000));
     KeyUp(39);
     Wait(500 + random(1000));
     Mouse(859,291,random(880-859),random(310-291),true);
    
     KeyDown(40);
     Wait(2000 + random(500));
     KeyUp(40);
    end;
    
    begin
    {$IFDEF SRL_SMART}
    Smart_Server := World;
    Smart_Members := False;
    Smart_Signed := True;
    Smart_SuperDetail := False;
    {$ENDIF}
    
    SetupSRL;
    DeclarePlayers;
    LoginPlayer;
    
    Step0;
    Step1;
    
    end.
    Do i have any problems with the code that should be corrected to make it work?

    +I did leave my pass in there it's a level 3 with no experience and no clothes so no point in stealing him.

    (If this changes anything I have been compiling then running the script because it SMART seems to like that more)
    Last edited by barbarianl3t; 09-23-2009 at 08:39 AM. Reason: To add script as attachment
    My chicken killer http://villavu.com/forum/chicken-killer-t39114.html
    Still working on those feathers

  2. #2
    Join Date
    Oct 2006
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If you are using SMART you must MANUALLY turn off the main screen animation (click the little icon, bottom left corner) and Change the graphics options. Fixed Screen Size, High Brightness, and Low everything else. Run the script again, see what it does, then post again.

  3. #3
    Join Date
    Sep 2008
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Doesn't seem to help at all. I am using smart but the problem is not logging into the game. It gets in just fine it's that after it clicks the "Click to play" button after typing username and password it goes to the character creation screen and freezes without moving the mouse like i expect it to.
    My chicken killer http://villavu.com/forum/chicken-killer-t39114.html
    Still working on those feathers

  4. #4
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Don't use SMART for testing if its gonna be in color. [slower if you do]

    By the way, try using MouseBox instead. As for your problem, try taking out MouseSpeed := 10; . Otherwise I don't see what's wrong

  5. #5
    Join Date
    Oct 2006
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I prefer using SMART to test. I like to see the Debug while it's running, and change things when I see them happen. That might just be me, but yeah.

    As for your problem i don't see what would be going wrong. Try it without using SMART.

  6. #6
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    ya i agree dont use smart to test its a lot slower imo


    [offtopic]

    me r!ch!e and neeosofts runner is gonana rape yours

  7. #7
    Join Date
    Sep 2008
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Anyway I found out the problem with the script

    P.S. who is the offtopic pointed towards because this will be my first script in a long time...

    Also just for the record the declareplayers and login functions/procedures do not work for this. I had to create a custom log in procedure to get it to work. So far I am about 1 10th of the way done
    My chicken killer http://villavu.com/forum/chicken-killer-t39114.html
    Still working on those feathers

  8. #8
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    it was pointed at you lol and itll b great if u need help just ask

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
  •