Results 1 to 9 of 9

Thread: Experienced Programmer just looking for quick pointer

  1. #1
    Join Date
    Mar 2014
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default ---

    ---
    Last edited by Xenobitz; 03-30-2014 at 05:26 AM.

  2. #2
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Is this for RS3 or OSR?
    There used to be something meaningful here.

  3. #3
    Join Date
    Mar 2014
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    ---
    Last edited by Xenobitz; 03-30-2014 at 05:24 AM.

  4. #4
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Simba Code:
    program new;
    //{$DEFINE SMART8} //If you want to use SMART
    {$I SRL-OSR/SRL.Simba}
    //{$I SRL-OSR/SRL/Reflection/Reflection.simba} //If you want to use reflection

    procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
      Players[0].Name := '';
      Players[0].Pass := '';
      Players[0].Active := True;
    end;

    begin
      DeclarePlayers; //Must be called before SetupSRL
      SetupSRL;
      //SetupReflection; //if you want to use reflection

      if (not LoggedIn) then
        LogInPlayer;

      Sleep(10000); //Sleep 10 seconds

      LogOut;
    end.

    EDIT: And a more suitable forum for future threads you may create regarding similar topics would be: http://villavu.com/forum/forumdisplay.php?f=491
    Last edited by Frement; 03-26-2014 at 04:10 AM.
    There used to be something meaningful here.

  5. #5
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    Quote Originally Posted by Xenobitz View Post
    This is for OSRS.

    I've got my script working.

    Here's my code for my theiving script to open a chest:

    Code:
    procedure Steal;
    var x : Integer;
        y : Integer;
    Tries : Integer;
    begin
    if not LoggedIn then
      Exit;
      if (not (FindObjCustom(x, y, ['pen', 'est'], [5723998], 35))) then
        begin
        Wait(8500+Random(800));
          end else
      if FindObjCustom(x, y, ['pen', 'est'], [5723998], 35) then
          begin Mouse(x, y, 4, 4, False);
          ChooseOption('earch')
        end;
    end;
    It's rather difficult to identify the chest I want using colors I've noticed. I will always log in standing in front of the chest I want, so maybe I can use that to my advantage.

    Can you point me in the right direction for how to loop this code so that it continues looking for a right-click menu containing "Search Chest" even if it doesn't find it on the first try?
    wow, impressive for being here for less than a day!

    you can try using the Auto Coloring Aid (ACA) found in C:>Simba>Includes>SRL-OSR>Tools to pick better colors and thus enhancing ur finding. ACA is mostly used for picking colors, hues, and sats which are commonly used to create TPA and ATPAs of all the colors and sorting them to create the best object finding method. it is rather difficult and first but there should be some guides lurking around. ill post if i find any.

    variables of the same type can be declared horizontally. x, y: integer;

    one loop method is a repeat until();. it will repeat a sequence of commands until(this condition is met); if you take a look at my Willow Draynor Banker you will find a few usefull things for scripting. Looking and using other peoples code would a fast way to learn here. pnce u think u got the commands down try editing some of the code to make it do what u want

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

  6. #6
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Welcome to the forums, Xenobitz!
    I moved your thread to the correct sub-forum for you (thanks, Frement)

  7. #7
    Join Date
    Mar 2014
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    ---
    Last edited by Xenobitz; 03-30-2014 at 05:25 AM.

  8. #8
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by Xenobitz View Post
    Much appreciated. I managed to get my script fully functional last night, so far it's thieved almost 4k nature runes without dying or having an error.

    One question though, my script world hops every 30 seconds or so and it's taking a TON of "screenshots of IP log". I have the knowledge to open up the library and comment out a function, but I don't want to break anything. Where can I change the settings to not take screenshots?
    After SetupSRL add:
    Simba Code:
    SRL_DisableIPLog := True;

    EDIT: Out of curiosity, where do you steal the natures at? And whats the level requirement?
    Last edited by Frement; 03-26-2014 at 05:15 PM.
    There used to be something meaningful here.

  9. #9
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    After SetupSRL add:
    Simba Code:
    SRL_DisableIPLog := True;

    EDIT: Out of curiosity, where do you steal the natures at? And whats the level requirement?
    Ardougne or Rellekka, lv 28 required.

    source: http://runescape.wikia.com/wiki/Thie...ievable_chests

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
  •