Results 1 to 6 of 6

Thread: Need help!

  1. #1
    Join Date
    Jun 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help!

    So i've decided to give scripting a go, and while i do know how to code (for the most part), i need some help on how i get my script to log the player in.
    Any and all help is appreciated!

  2. #2
    Join Date
    May 2012
    Location
    Texas
    Posts
    365
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SetupSRL;
    DeclarePlayers;
    LoginPlayer;

    Should be at the top of your main loop in basically all of your scripts
    Mostly Inactive, School

  3. #3
    Join Date
    Jun 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Based Lord View Post
    SetupSRL;
    DeclarePlayers;
    LoginPlayer;

    Should be at the top of your main loop in basically all of your scripts
    How so if i pretty much copy the log in section from other scripts that will suffice? I was just worried that i needed to declare something somewhere in the script. Thanks, but i have one more question, how do i write onto the screen? I want there to be red or yellow text on the screen outputting how many alchs per hour, how much xp per hour, and all the works.

  4. #4
    Join Date
    May 2012
    Location
    Texas
    Posts
    365
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by RSisDead View Post
    How so if i pretty much copy the log in section from other scripts that will suffice? I was just worried that i needed to declare something somewhere in the script. Thanks, but i have one more question, how do i write onto the screen? I want there to be red or yellow text on the screen outputting how many alchs per hour, how much xp per hour, and all the works.
    Every Script has DeclarePlayers at the top to set login information and some other things. These things can be found in the Beginners Tutorials.
    For SMART Paint you can look in the tutorials section I know there are a few good ones but I wouldn't worry about Paint Proggys yet.

    Good Guide for Progress Reports (None Paint)
    http://villavu.com/forum/showthread.php?t=78116
    Mostly Inactive, School

  5. #5
    Join Date
    Jun 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    http://pastebin.com/ax5DjTPg

    I'm getting an error

    Identifier expected at line 24
    Compiling failed.
    EDIT: I removed the space after the "=27" and now im getting that error ^
    NOTE: This script isn't finished but I'm just doing a progress test.

    EDIT2: I removed the const part because it isnt implemented yet, and now i get the same error at the procedure Alch_Multislot


    EDIT3: I fixed that by adding function "IDKWhatImDoing", but now my script executes without doing anything.. Here is pastebin http://pastebin.com/Aq2TPkxX
    Last edited by RSisDead; 06-18-2012 at 01:12 AM.

  6. #6
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    Why do you have so many coords?
    There is a procedure already: InvBox(I: Integer)
    Just fill in the number of your inventory slot and it will randomly move there.

    It is also much easier if you put your script between simba tags like this:
    Simba Code:
    program Lukes_KickAss_Alcher;
        //*********************************************************************************//
        //                                                                                 //
        //                                                                                 //
        //                    WELCOME TO LUKE'S KICK ASS ALCHER!                           //
        //                 Made by Fredbear/RSisDead(Simba username)                       //
        //                     1. Fill out the setup                                       //
        //                     2. Hit "Run"!                                               //
        //                     3. Enjoy!                                                   //
        //                                                                                 //
        //                                                                                 //
        //*********************************************************************************//
        {$DEFINE SMART}
        {.include SRL/SRL/Misc/Smart.simba}
          {.include SRL/SRL.simba}
          {.include SRL/SRL/Skill/Magic.simba}
          {$i sps/sps.simba}
          {$i SRL/SRL/misc/paintsmart.simba}
        var
          AlchStacked :Boolean;
        begin
        AlchStacked := False; // If the item you are alching is stacked (I.E arrows, bolts etc,) change this to true!
         // If you are using a stacked item, place it in your second Item slot, the first being your nature runes.
        const
          NUMBER_OF_ALCHS := 27; //Replace this number with the number of alchs you plan on performing
        procedure DeclarePlayers;
        begin
          HowManyPlayers := 0;
          NumberOfPlayers(HowManyPlayers);
          CurrentPlayer  := 0;
         
          with Players[0] do
          begin
            Name := '';
            Pass := '';
            Member := True;
            Active := True;
          end;
        end;
         
        procedure Alch_Multislot;
        while AlchStacked = False;
        Mouse(784, 190, 2, 2, true);
        Mouse(571, 375, 2, 2, true);
        Mouse(611, 226, 2, 2, true);
        Mouse(565, 377, 2, 2, true);
        Mouse(662, 221, 2, 2, true);
        Mouse(577, 368, 2, 2, true);
        Mouse(703, 228, 2, 2, true); // fourth slot
        Mouse(566, 377, 2, 2, true);
        Mouse(576, 257, 2, 2, true); //fifth slot
        Mouse(566, 377, 2, 2, true);
        Mouse(616, 265, 2, 2, true); // sixth
        Mouse(566, 377, 2, 2, true);
        Mouse(656, 262, 2, 2, true); // seventh
        Mouse(566, 377, 2, 2, true);
        Mouse(706, 268, 2, 2, true); // eighth
        Mouse(566, 377, 2, 2, true);
        Mouse(580, 297, 2, 2, true); // 9th slot
        Mouse(566, 377, 2, 2, true);
        Mouse(622, 297, 2, 2, true); // 10th
        Mouse(566, 377, 2, 2, true);
        Mouse(657, 299, 2, 2, true); // 11th
        Mouse(566, 377, 2, 2, true);
        Mouse(698, 303, 2, 2, true); // 12th
        Mouse(577, 368, 2, 2, true);
        Mouse(569, 341, 2, 2, true); // 13th
        Mouse(577, 368, 2, 2, true);
        Mouse(627, 330, 2, 2, true); // 14th
        Mouse(577, 368, 2, 2, true);
        Mouse(668, 331, 2, 2, true); // 15th
        Mouse(577, 368, 2, 2, true);
        Mouse(702, 342, 2, 2, true); // 16th
        Mouse(577, 368, 2, 2, true);
        Mouse(573, 370, 2, 2, true); // 17th
        Mouse(577, 368, 2, 2, true);
        Mouse(624, 369, 2, 2, true); // 18th
        Mouse(577, 368, 2, 2, true);
        Mouse(653, 368, 2, 2, true); // 19th
        Mouse(577, 368, 2, 2, true);
        Mouse(707, 373, 2, 2, true); // 20th
        Mouse(577, 368, 2, 2, true);
        Mouse(574, 414, 2, 2, true); // 21st
        Mouse(577, 368, 2, 2, true);
        Mouse(621, 407, 2, 2, true); // 22nd
        Mouse(577, 368, 2, 2, true);
        Mouse(656, 408, 2, 2, true); // 23rd
        Mouse(577, 368, 2, 2, true);
        Mouse(698, 408, 2, 2, true); // 24th
        Mouse(577, 368, 2, 2, true);
        Mouse(573, 447, 2, 2, true); // 25th
        Mouse(577, 368, 2, 2, true);
        Mouse(620, 439, 2, 2, true); // 26th
        Mouse(577, 368, 2, 2, true);
        Mouse(660, 439, 2, 2, true); // 27th
        Mouse(577, 368, 2, 2, true);
        Mouse(702, 447, 2, 2, true); // 28th
        goto Alch_Multislot;
        end;
         
         
        begin
          Alch_Multislot;
          end;
        end;
         
        end.

    This moves the mouse to each inventory slot if using multiple slots. Otherwise it will just move to the slot you input.
    Simba Code:
    procedure Test;
    var
      AlchMultiSlot: Boolean;
      AlchSlot, i: Integer;

    begin
      AlchMultiSlot := False;
      AlchSlot := 25;

      if AlchMultiSlot then
        begin
          for i:=0 to 27 do
            InvBox(i);
        end else
        begin
          InvBox(AlchSlot);
        end;
    end;

    Script source code available here: Github

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
  •