Results 1 to 9 of 9

Thread: Need help with a simple script

  1. #1
    Join Date
    Dec 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Need help with a simple script

    I need help with a script. I've been trying to figure out how to make one but I just cant.

    all I want it to do is just hold down a key for example.


    On the action bar I have a toy horse to say 'neigh for gambling'.

    I want to be able to make a script that once it logs in all it does is hold that one action.

    Like if i put it on '1' bar.

    I want it to hold '1' forever.

    11111111111111111111111111111111111111111111111111 1111111111111111111.

    Help please!

  2. #2
    Join Date
    Jan 2013
    Location
    A very long room in SW3D3N.
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    post wat u hav so far?

  3. #3
    Join Date
    Dec 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    I don't have really much because I don't know how to use the keyup and keydown.

    can you please help?

  4. #4
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    keyDown(VK_1);

  5. #5
    Join Date
    Dec 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Ok now how do I make it do that in the client. Sorry I'm new to this stuff

  6. #6
    Join Date
    Dec 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Begin
    SetupSRL
    Declareplayers
    LoginPlayertoLob();
    SelectWorld(2);//
    LoginPlayer;
    Activateclient
    end.

    begin
    keyDown(VK_1);
    end

  7. #7
    Join Date
    Jan 2013
    Location
    A very long room in SW3D3N.
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by nazgul123 View Post
    Begin
    SetupSRL
    Declareplayers
    //lastprojectrs
    LoginPlayertoLob();
    SelectWorld(2);//
    //lastprojectrs
    LoginPlayer;
    Activateclient
    end.
    //lastprojectrs

    //lastprojectrs
    //lastprojectrs

    begin
    keyDown(VK_1);
    //lastprojectrs
    end
    Simba Code:
    program new;
     {$Define SMART8}
      {$I SRL/SRL.Simba}
    Procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
      Players[0].Name :='';
      Players[0].Pass :='';
      Players[0].Nick :='';
      Players[0].Active:=True;
    end;
      Procedure Setup;
    var loggedingame: Boolean;
    //lastprojectrs
    var x,y: Integer;
    Begin
      {$IFDEF SIMBAMAJOR980}
        SMART_SERVER := 2;
        SMART_MEMBERS := TRUE;
        SMART_SIGNED := TRUE;
        SMART_SUPERDETAIL := FALSE;
      {$ELSE}
    //lastprojectrs
        SMART_FIXSPEED := TRUE;
      {$ENDIF}

    //lastprojectrs

      SetupSRL;

      ClearDebug;

      DeclarePlayers;
    End;
    procedure click1;
    begin
     keyDown(VK_1);
     end;

    begin
    setup;
    //lastprojectrs
    repeat
    click1;
    until false
    end.

    your welcome. C:

  8. #8
    Join Date
    Dec 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    says [Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
    Compiling failed.

  9. #9
    Join Date
    Feb 2012
    Location
    Discord
    Posts
    3,114
    Mentioned
    37 Post(s)
    Quoted
    538 Post(s)

    Default

    Quote Originally Posted by nazgul123 View Post
    says [Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
    Compiling failed.
    remove the 8 off "smart8"

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
  •