Page 11 of 31 FirstFirst ... 91011121321 ... LastLast
Results 251 to 275 of 767

Thread: [Unofficial] OldschoolRS07 Include

  1. #251
    Join Date
    Apr 2007
    Location
    Australia
    Posts
    4,163
    Mentioned
    9 Post(s)
    Quoted
    19 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    Thanks

    Added a whole load of useful stuff to V1.7 :

    Simba Code:
    Procedure P07_ClickToContinue;
    Function P07_CastSpell(SpellNumber: Integer): Boolean;
    Procedure P07_AutoRetaliate(ToggleTo: Boolean);
    Procedure P07_CombatStance(ToggleToNum: Integer);
    Function P07_WearingItem(I: Integer): Boolean;
    Function P07_GetMiniMapDots(WhatDotCol: String): TPointArray;
    Function P07_CountMiniMapDots(WhatDotCol: String): Integer;
    Function P07_DidClick(Red: Boolean; Time: Integer): boolean; //Creds to Justin
    Any word on ChooseOption? (the function to click NPC and Option text in the chatbox interface)
    And when Uptext will be fixed?

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

    Default

    Quote Originally Posted by The Claw View Post
    Any word on ChooseOption? (the function to click NPC and Option text in the chatbox interface)
    And when Uptext will be fixed?
    UpText was working fine for me, I guess it depends on the string though.

  3. #253
    Join Date
    Jan 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Is there a video or something explaining this? I can't gather anything at all from the OP.

  4. #254
    Join Date
    Feb 2012
    Location
    California
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Great work! What's everyone using for walking - I tried modifying the 06sps but got a bit stuck haha.

  5. #255
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by The Claw View Post
    Any word on ChooseOption? (the function to click NPC and Option text in the chatbox interface)
    And when Uptext will be fixed?
    Can you give me an Example of how you are using uptext and it's not working?

    UpText works for me, Idk why it does not for some people, you need to Use one string from the white text and one from yellow/blue string, and don't just use the entire string, for example,

    Simba Code:
    If P07_IsUpTextMultiCustom(['Mine','Rock']) Then ClickMouse2(mouse_left); //should definetly work

    About choseoption, that should work also, no reason it shouldn't, but it is for the right click panel in game (not the npc chat box options),

    Stuff with the NPC chat box would require another Font to be installed, and I'd probably need to have a seperate Include file for that, otherwise alot of people will suddenly get error's they won't understand
    Last edited by DannyRS; 02-27-2013 at 08:09 AM.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  6. #256
    Join Date
    Feb 2013
    Posts
    64
    Mentioned
    0 Post(s)
    Quoted
    21 Post(s)

    Default

    If you make a IsFighting boolean I'll love you long time!

  7. #257
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by kiwiownage View Post
    If you make a IsFighting boolean I'll love you long time!
    Depends if people want Pixelshift or the green health bar being above your head?


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  8. #258
    Join Date
    Feb 2013
    Posts
    64
    Mentioned
    0 Post(s)
    Quoted
    21 Post(s)

    Default

    Green health bar would probably be more reliable, but either is good!

  9. #259
    Join Date
    Jul 2012
    Posts
    437
    Mentioned
    10 Post(s)
    Quoted
    165 Post(s)

    Default

    Quote Originally Posted by kiwiownage View Post
    Green health bar would probably be more reliable, but either is good!
    Simba Code:
    {*****************************************************************************
    function IsFight: Boolean;
    By: realrune
    Description: results true if you are in a fight.
    *****************************************************************************}


    function IsFight: Boolean;
    var
      x, y : Integer;
    const
      GreenStatusColor = 65280;
    const
      RedStatusColor = 225;
    begin
      if (FindColorSpiral(x, y, GreenStatusColor, 180, 90, 320, 230)) then
      begin
        Wait(1000 + Random(250));
        Result := FindColorSpiral(x, y, GreenStatusColor, 180, 90, 320, 230);
      end;
    end;


    {*****************************************************************************
    function InFight: Boolean;
    By: WT-Fakawi
    Description: Returns as True if in fight.
    *****************************************************************************}


    function InFight: Boolean;
    var
      x, y : Integer;
    begin
      Result := (FindColor(x, y, 65280, 230, 130, 280, 180) or FindColor(x, y, 255,
        230, 130, 280, 180))
    end;


    Try these for the health bar. They are from an old version of simba

  10. #260
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    I am currently working on a small include. If you guys could suggest some procedures/functions that would would like to see please post below.

    Forum account issues? Please send me a PM

  11. #261
    Join Date
    Feb 2013
    Posts
    64
    Mentioned
    0 Post(s)
    Quoted
    21 Post(s)

    Default

    Quote Originally Posted by Justin View Post
    I am currently working on a small include. If you guys could suggest some procedures/functions that would would like to see please post below.
    IsIdle & EatFoodatHealthPercent

  12. #262
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Quote Originally Posted by kiwiownage View Post
    IsIdle & EatFoodatHealthPercent
    Simba Code:
    function IsMoving: Boolean;

    EatFoodatHealthPercent - More up to the scripter to do this

    Forum account issues? Please send me a PM

  13. #263
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Justin View Post
    Simba Code:
    function IsMoving: Boolean;

    EatFoodatHealthPercent - More up to the scripter to do this
    ^ food can be any type, so it's not practical for us to add all types


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  14. #264
    Join Date
    Apr 2007
    Location
    Australia
    Posts
    4,163
    Mentioned
    9 Post(s)
    Quoted
    19 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    Can you give me an Example of how you are using uptext and it's not working?

    UpText works for me, Idk why it does not for some people, you need to Use one string from the white text and one from yellow/blue string, and don't just use the entire string, for example,

    Simba Code:
    If P07_IsUpTextMultiCustom(['Mine','Rock']) Then ClickMouse2(mouse_left); //should definetly work

    About choseoption, that should work also, no reason it shouldn't, but it is for the right click panel in game (not the npc chat box options),

    Stuff with the NPC chat box would require another Font to be installed, and I'd probably need to have a seperate Include file for that, otherwise alot of people will suddenly get error's they won't understand
    Writeln(Uptext) and it didn't work, but I wasnt doing SetupP07Include, and I was also doing SetupSRL. Just SetupP07 works now but it isn't always accurate. Good enough though.

    The NPC chat would be very handy to have.

  15. #265
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by The Claw View Post
    Writeln(Uptext) and it didn't work, but I wasnt doing SetupP07Include, and I was also doing SetupSRL. Just SetupP07 works now but it isn't always accurate. Good enough though.

    The NPC chat would be very handy to have.
    I'll look at a seperate Include and font files for everything else Font related

    Are you using WriteLn(P06_GetUpText); ? UpText is the Main rs one from srl, does chooseoption work on right click for you also?

    If you use two part strings from white and the secondary color, it should be more or less 100% accurate, it's just when the background matches the text color it can cause problems, but theres almost never a problem with both the color's at once, SetupSRL; should not affect it anymore when running in SMART
    Last edited by DannyRS; 02-27-2013 at 11:04 AM.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  16. #266
    Join Date
    Apr 2007
    Location
    Australia
    Posts
    4,163
    Mentioned
    9 Post(s)
    Quoted
    19 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    I'll look at a seperate Include and font files for everything else Font related

    Are you using WriteLn(P06_GetUpText); ? UpText is the Main rs one from srl, does chooseoption work on right click for you also?

    If you use two part strings from white and the secodary color, it should be more or less 100% accurate, it's just when the background matches the trxt color it can cause problems, but theres almost never a problem with both the color's at once, SetupSRL; should not affect it anymore when runnin in SMART
    Yeah I was and wasn't running in SMART. And yeah was similar colors to the uptext. Apart from that it seems to be a great project...keep it up, will probably be using it a fair bit

  17. #267
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by The Claw View Post
    Yeah I was and wasn't running in SMART. And yeah was similar colors to the uptext. Apart from that it seems to be a great project...keep it up, will probably be using it a fair bit
    Yeh I'm still troubleshooting what goes on in SetupSRL; that stops it working in a browser, strange that it works in smart but not without it now, I'll keep looking


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  18. #268
    Join Date
    Oct 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ths so much!

    just now ,i found if i wanted to use P07 ,i must't write SetupSRL before P07
    that means i must give up SMART?

    i am sorry
    it can join game ,but cost long time to go

    no ,i make a test , it's SetupSRL cost time
    Last edited by gavin0627; 02-27-2013 at 11:50 AM.

  19. #269
    Join Date
    Feb 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Hello, Sorry for the noob question but the following;

    Procedure P07_ClickToContinue;
    Function P07_CastSpell(SpellNumber: Integer): Boolean;
    Procedure P07_AutoRetaliate(ToggleTo: Boolean);
    Procedure P07_CombatStance(ToggleToNum: Integer);
    Function P07_WearingItem(I: Integer): Boolean;
    Function P07_GetMiniMapDots(WhatDotCol: String): TPointArray;
    Function P07_CountMiniMapDots(WhatDotCol: String): Integer;
    Function P07_DidClick(Red: Boolean; Time: Integer): boolean;

    These are All of the current procedures and functions that exist so far? Or is there more?

    Thanks for the help.


    EDIT: Ahh, I see if you view the simba include code it says all of them. Thanks!

  20. #270
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    @Gh0stt

    Thats just a list of what I added in 1.7, full list always inside the simba file


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  21. #271
    Join Date
    Feb 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    I just learned simba and solved the antileech, but now i got this woodcutting script working but instead of clicking the trees he is hovering over it. Its the draynorwillowbanker. can someone help please?

  22. #272
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Rico1993 View Post
    I just learned simba and solved the antileech, but now i got this woodcutting script working but instead of clicking the trees he is hovering over it. Its the draynorwillowbanker. can someone help please?
    Link me to the script, It's probably a function being used wrong


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  23. #273
    Join Date
    Feb 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    http://villavu.com/forum/showthread.php?t=96948
    He updated it a couple of times though, but every update it wouldnt click. im using chrome browser, maybe thats the problem?

  24. #274
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Rico1993 View Post
    http://villavu.com/forum/showthread.php?t=96948
    He updated it a couple of times though, but every update it wouldnt click. im using chrome browser, maybe thats the problem?
    One moment I'll take a look, I use chrome so it shouldn't be, I'll edit this post with any non-anti leech issues I spot

    Edit-
    In procedure ChopTree;

    Change this Line: P07_FindObj(x,y,'Willow',WillowColor,5)

    To this:
    Simba Code:
    P07_FindObjCustom(x,y,['Chop','down','illow'],[WillowColor],5)

    Let me know if that fixes it
    Last edited by DannyRS; 02-27-2013 at 12:48 PM.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  25. #275
    Join Date
    Feb 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Nope, still hovering over the trees, you dont have any antileeches in your p07 right? any other solvements?
    thanks for you help btw

Page 11 of 31 FirstFirst ... 91011121321 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 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
  •