Page 1 of 2 12 LastLast
Results 1 to 25 of 36

Thread: SRL-5 functions [Beginners]

  1. #1
    Join Date
    Feb 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default SRL-5 functions [Beginners]

    This is a function list for pretty much everything SRL-5 has built in.

    If this is in the wrong section then move it please

    To find something quickly press Ctrl +F and search for it.

    (please don't post until everything is added, might need a few posts/pages)


    Categories (click a link to be taken to the catagory)








    AntiBan

    -------------------------------------------------------------------------------------------------------

    LeaveDangerZone

    info:Handles the ‘danger zone’ message users get when their total level is < 60

    function LeaveDangerZone: Boolean;

    example: if LeaveDangerZone then
    ContinueWalking;

    -------------------------------------------------------------------------------------------------------

    RandomRClick

    info:Performs random right click to stay active.

    procedure RandomRClick

    example:RandomRClick;

    -------------------------------------------------------------------------------------------------------

    HoverSkill

    info:Hovers mouse over selected skill to “check exp” Click = True will Click Skill and Click = False will ‘Hover’. Won’t “check” skills where your level is 1.

    procedure HoverSkill(Skill: variant; Click: Boolean);

    example:HoverSkill(skill_Atack, False);

    -------------------------------------------------------------------------------------------------------

    PickUpMouse

    info:Acts just like you picked your mouse off the pad... then sets it back down.

    procedure PickUpMouse;

    example:PickUpMouse;

    -------------------------------------------------------------------------------------------------------

    SetScreenMouse

    info:Aligns RS to specified direction and camera angle using the middle mouse button.
    Direction: ‘n’, ‘s’, ‘e’, ‘w’ or any degree angle. Accepts ‘random’ and ‘rand’, or ‘’ for no movement.
    CamerAngle: any number from 1 to 10 (1 = lowest angle), or ‘1’, ‘10’. Accepts ‘’ for no movement.

    example:function SetScreenMouse(Direction, CameraAngle: Variant): Boolean;

    SetScreenMouse(Direction, CameraAngle: Variant);

    -------------------------------------------------------------------------------------------------------

    MissMouse

    info:Human-like miss-and-correct mouse movement.

    procedure MissMouse(eX, eY: Integer);

    example: MissMouse(eX, eY: Integer);

    -------------------------------------------------------------------------------------------------------

    MultiMouse

    info:Will simulate “spam” clicking on the point x, y. Will do it a random amount between 1 and ‘maxClicks’. Will click once no matter what, then has a percent ‘chance’ of clicking again after that. Will not exceed ‘maxClicks’. if ‘red’ then will return true if the red X appears after clicking an object, else will return true after clicking.

    function MultiMouse(x, y, chance, maxClicks: integer; red: boolean): boolean;

    example:if (waitUptext('ree', 200)) then
    MSI_MultiMouse(x, y, 35, 5, true);

    -------------------------------------------------------------------------------------------------------

    RandomMovement

    info:makes a random movement

    procedure RandomMovement;

    Example:RandomMovement;

    -------------------------------------------------------------------------------------------------------

    CompassMovement

    info:Rotates the compass somewhere between MinMovement and MaxMovement. Will return to original angle if Return is set to true.

    function CompassMovement(MinMovement, MaxMovement: Integer; Return: Boolean): Boolean;

    Example:CompassMovement(10, 30, true);

    -------------------------------------------------------------------------------------------------------

    BoredHuman

    info:Performs 5-15 times:
    Rotates the cam,
    Moves the mouse around MainScreen,
    If it finds IsUpText(‘option’), it will Chooseoption(‘Examine’);

    procedure BoredHuman;

    example:BoredHuman;

    -------------------------------------------------------------------------------------------------------

    ExamineInv

    info:Chooses a random item in the inventory to examine.

    procedure ExamineInv;

    example:ExamineInv;

    -------------------------------------------------------------------------------------------------------

    RandomAngle

    info:Randomly changes the angle of the compass. Finishes depending on

    procedure RandomAngle(HowToEnd: Variant);

    HowToEnd:
    1, ‘up’, True = Highest angle 2, ‘down’, False = Lowest angle
    Put ‘’ to leave it as it is.


    example:RandomAngle(1);

    -------------------------------------------------------------------------------------------------------

    LevelUpEx

    info:Returns true if the player has gained a level. If ClickCont is set to true it will click the continue button in the chat box. If ClickSkill is set to true, it will click the skill and exit the window.

    function LevelUpEx(ClickCont, ClickSkill: Boolean): Boolean;

    example:if (LevelUpEx(false, true)) then
    inc(Players[CurrentPlayer].Integers[10]);

    -------------------------------------------------------------------------------------------------------

    LevelUp

    info:Returns true if the player has gained a level. Will click the “click to continue” button in the chat box.

    function LevelUp: Boolean;

    Example:if (LevelUp) then
    inc(Players[CurrentPlayer].Integers[10]);

    -------------------------------------------------------------------------------------------------------

    FindMod

    info:Results true if a mod is found talking in the chat box. Will logout and wait if LogoutOnMod (global boolean) is set to true.

    function FindMod: Boolean;

    example:FindMod();

    -------------------------------------------------------------------------------------------------------

    FindDead

    info:Logs out and sets the current player to false if they are found dead. Will not logout if Reincarnate (global boolean) is set to true.

    function FindDead: Boolean;

    FindDead();

    -------------------------------------------------------------------------------------------------------

    FindDwarvenPopup

    info:closes the interface asking you to buy members when you reach level 10 in a skill

    function FindDwarvenPopup: Boolean;

    FindDwarvenPopup();

    -------------------------------------------------------------------------------------------------------

    ExitSquealOfFortune

    info:exits the squeal of fortune interface

    function ExitSquealOfFortune(): boolean;

    ExitSquealOfFortune();

    -------------------------------------------------------------------------------------------------------

    FindSpinTicket

    info:Finds spin tickets in your inventory.

    function FindSpinTicket(): boolean;

    FindSpinTicket();

    -------------------------------------------------------------------------------------------------------
    Last edited by Nava2; 06-10-2012 at 12:03 AM.

  2. #2
    Join Date
    Feb 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Banking

    reserved###########
    Last edited by fatmess; 06-02-2012 at 03:32 AM.

  3. #3
    Join Date
    Feb 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    reserved#########
    Last edited by fatmess; 06-02-2012 at 03:30 AM.

  4. #4
    Join Date
    Feb 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    reserved for next post/credits

  5. #5
    Join Date
    Feb 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    reserved for banking;

  6. #6
    Join Date
    Feb 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    reserved###

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

    Default

    I don't really see the need for this.
    There used to be something meaningful here.

  8. #8
    Join Date
    Feb 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    I don't really see the need for this.
    for beginners...

    sorry for trying to help the community.

  9. #9
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I don't think this is necessary. But maybe good job on trying to help people, although these are all can be found in simba.

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

    Default

    Quote Originally Posted by fatmess View Post
    for beginners...

    sorry for trying to help the community.
    Are you aware that there is this:
    http://docs.villavu.com/srl-5/

    I'm sure the link to the documentation is found somewhere in FAQ.
    There used to be something meaningful here.

  11. #11
    Join Date
    Feb 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    Are you aware that there is this:
    http://docs.villavu.com/srl-5/

    I'm sure the link to the documentation is found somewhere in FAQ.


    yes im aware there is that but its obliviously not very easy to find just by looking at some peoples code.


    got nothing nice to say then gtfo

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

    Default

    Quote Originally Posted by fatmess View Post
    got nothing nice to say then gtfo
    I should "gtfo"? You have just joined and have 20 posts, and 5-7 of them are from this thread, and you feel like you can say that?

    From the bottom of my heart, fuck you.
    There used to be something meaningful here.

  13. #13
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    I should "gtfo"? You have just joined and have 20 posts, and 5-7 of them are from this thread, and you feel like you can say that?

    From the bottom of my heart, fuck you.
    +repped.

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

    Default

    I think what Frement and others are saying that a record of all these functions already exist, and therefore there is no need to make a thread just copy pasting everything again. (UNLESS u are planning to explain each of these functions in extreme detail, even though i think the documentation explains them pretty well and sufficient).

    Maybe u can just zoom in at some useful/commonly used function and explain in detail how they are used?

  15. #15
    Join Date
    Feb 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    whatever, going back to epicbot >_> no wonder everybody says this community is shit.


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

    Default

    Quote Originally Posted by fatmess View Post
    whatever, going back to epicbot >_> no wonder everybody says this community is shit.

    hmm okay, good luck in ur future endeavours

  17. #17
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Quote Originally Posted by fatmess View Post
    whatever, going back to epicbot >_> no wonder everybody says this community is shit.

    I would presume everyone says the community is shit because when 'everyone' comes here they leech and expect everything to be handed to them. And since you know so much about this community, i would presume you would know that this is a learning community. come here. code. learn. -- not come here. download. leech. leave. -- there is a difference.

  18. #18
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Come on guys, when people try to help please be nice...

  19. #19
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    I really appreciate what he's trying to do here.

    Yes, this can be found by using the functions list in Simba and by searching the docs - but he's just trying to help out the community.

  20. #20
    Join Date
    May 2012
    Location
    Iowa
    Posts
    316
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by abu_jwka View Post
    I really appreciate what he's trying to do here.

    Yes, this can be found by using the functions list in Simba and by searching the docs - but he's just trying to help out the community.
    Well if you read through the order of the posts you can clearly see that fatmess(which is probably a nice description of him) was extremely rude to Frement. Frement just said that the info was already around and fatmess was extremely rude to him.

    Also he did post it in the completely wrong section, but he did say if it was in the wrong section then move it so...

  21. #21
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Quote Originally Posted by Fascinate View Post
    Well if you read through the order of the posts you can clearly see that fatmess(which is probably a nice description of him) was extremely rude to Frement. Frement just said that the info was already around and fatmess was extremely rude to him.
    Yes but he felt offended by the fact that his attempt to contribute was shut out by Frement (correctly), which meant he was rude when he shouldn't have been.

    Think about it - you make a thread in which you hope to gain some respect from the community and someone (correctly) tells you it's pointless, you feel a bit... well... humiliated and so the way he reacted though not correct, I feel was justifiable.

  22. #22
    Join Date
    May 2012
    Location
    Iowa
    Posts
    316
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by abu_jwka View Post
    Yes but he felt offended by the fact that his attempt to contribute was shut out by Frement (correctly), which meant he was rude when he shouldn't have been.

    Think about it - you make a thread in which you hope to gain some respect from the community and someone (correctly) tells you it's pointless, you feel a bit... well... humiliated and so the way he reacted though not correct, I feel was justifiable.
    Yeah he was just trying to help out the community by making something easier to find but I don't think that was the reaction he should have had to Frement's posts.

  23. #23
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    The code that's posted at the top can become outdated, where as the code here: http://docs.villavu.com/srl-5/ is updated when the library updates
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  24. #24
    Join Date
    May 2012
    Location
    Iowa
    Posts
    316
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Kyle Undefined View Post
    The code that's posted at the top can become outdated, where as the code here: http://docs.villavu.com/srl-5/ is updated when the library updates
    That's another good point. BTW why is there a "SRL complete tutorial" and a "SRL frequently asked question" if there is nothing in them? Haha thought that was kinda funny.

  25. #25
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Quote Originally Posted by Fascinate View Post
    That's another good point. BTW why is there a "SRL complete tutorial" and a "SRL frequently asked question" if there is nothing in them? Haha thought that was kinda funny.
    Obviously something which was failed to be developed.

    Will probably (hopefully) be worked on once SRL 6 is out.

Page 1 of 2 12 LastLast

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
  •