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

Thread: RSC_Consts?

  1. #1
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default RSC_Consts?

    after playing around, i have come up with a few of these consts:

    SCAR Code:
    const
      RSC_MSX1 = 113;
      RSC_MSY1 = 0;
     
      RSC_MSX2 = 644;
      RSC_MSY2 = 344;
     
      RSC_MMX1 = 486;
      RSC_MMY1 = 36;

      RSC_MMX2 = 641;
      RSC_MMY2 = 187;
     
      //primary tabs
      RSC_Tab_Tools = 1;
      RSC_Tab_Friends = 2;
      RSC_Tab_Magic = 3;
      RSC_Tab_Skill = 4;
      RSC_Tab_Map = 5;
      RSC_Tab_Inv = 6;
     
      //secondary tabs
      RSC_Tab_2_Ignore = 7;
      RSC_Tab_3_Prayers = 8;
      RSC_Tab_4_Quests = 9;
     
      //constant colors on the minimap
      RSC_Object_Col = 16776960;
      RSC_NPC_Col = 65535;
      RSC_Player_Col = 16777215;
      RSC_Item_Col = 255;
      RSC_Grass_Col = 18440;
      RSC_Water_Col = 8273952;

    sorry for the long names, maby we should shorten them i guess

    also, more to come! probobly some inventory functions
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  2. #2
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    We should get a rev for RSC.
    Is there random in rsc btw?
    Oh Hai Dar

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

    Default

    I do not think that RSC commands will be added to the include, but you never know.
    the best thing to do would be to make a new svn only for RSC

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    RSC has 'fatigue' not randoms. After you mine/woodcut/whatever for so long, you get 100% fatigue, at which point you click a sleeping bag, type in a CAPTCHA, and then your fine to work again.

    Also, pretty much no way in hell SRL will official have an RSC version, but we can definately make our own, host it a google code, and develop it. Theres talk about an RSC subform.

  5. #5
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Your x cords will be off. It varies from person to person, depending on monitor
    I do visit every 2-6 months

  6. #6
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by ZaSz View Post
    Your x cords will be off. It varies from person to person, depending on monitor
    Set them to a Global constant that each user edits once to fill in their monitor size.

  7. #7
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by NCDS View Post
    Set them to a Global constant that each user edits once to fill in their monitor size.
    OR, i made a function for globals.scar, as i have been working on the include.

    To fill this out, all the scripter has to do is.

    activateclient;
    wait(500);
    setupcsrl;

    In globals.scar, i made it start at 0,339, and increase x until it gets the actual screen.

    then for all static points, i made a program that you get your point, and it converts it to

    msx1 + (the amount needed to get your point), so its compatable with all pc's!

    Edit: Heres the procedure.
    SCAR Code:
    {*******************************************************************************
    procedure detectglobals;
    by: ZaSz
    Description: Detects the games consts
    *******************************************************************************}



    procedure detectglobals;
    var
      TempI : Integer;
    begin
      //MMX1,MSX1,MMCX
      For TempI := 0 to 2000 do
      begin
        if(getcolor(TempI,339)>0)then
        begin
          MSX1 := TempI;
          MSX2 := MSX1 + 510;
          MMX1 := MSX1 + 353;
          MMX2 := MMX1 + 155;
          break;
        end;
        if(TempI=2000)then
        begin
          writeln('Couldn''t detect game screen, ending script');
          terminatescript;
        end;
      end;
    end;

    The y's remain consts, so i didnt add them down there, but I might if people would think it looks nicer.
    I do visit every 2-6 months

  8. #8
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    lol, i never expected this to be in SRL, but if no one has already, i'll make the classic includes in google

    also, screen size/ resolution doesnt really matter, since my PC size/ resolution is way different than my desktop, and they are the same coords

    e: http://rscsrl.googlecode.com/svn/trunk/

    PM me if you want to be a "dev"
    Last edited by Awkwardsaw; 11-14-2009 at 01:52 PM.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  9. #9
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Good luck with this project guys, I'd be very interested to see how it turns out

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  10. #10
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Quote Originally Posted by Awkwardsaw View Post
    also, screen size/ resolution doesnt really matter, since my PC size/ resolution is way different than my desktop, and they are the same coords
    Actually they do matter as x coordinate is like 373 for me...



    Edit:
    Code:
    function GameTab(I: Integer): Boolean;
    begin
      MMouse(MSX1+327+(I-1)*33, 16, 3, 3);
      Wait(40+Random(50));
      Result := (GetColor(MSX1+507, 33) = 8585216);
    end;
    I think we need to use srl mouse funcions if we dont want to get banned.

    I attached rsc chars from scar 1.13. I dont know how to use them in the new scar...

  11. #11
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    thanks for the gametab, but what about the secondary tabs, like quests, and prayer?

    honestly it can just be a mousebox, since its the same coords for each.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  12. #12
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    sorry, google includes already made.

    csrl-pub, csrl-dev, I got YoHoJo saying he likes those best

    Right now the dev version has my point converter utility, and a few updates, and includes a working login.scar.

    So anyone feel free to d/l edit, and pm me for dev, or just give me the changes, and ill comit.

    svn checkout http://csrl-dev.googlecode.com/svn/trunk/ csrl
    I do visit every 2-6 months

  13. #13
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    /hopes destroyed



    mind if i help out with the include? lol
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  14. #14
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    You sure can! Give me email and ill put you on committer status!
    I do visit every 2-6 months

  15. #15
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    akwardsaw@gmail.com



    what functions/ procedures need updated/ fix'd?
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  16. #16
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Added to the Dev version.

    Well, islogged in could be updated, I don't know how really, because when you login all icons are up, so when the thing popping up with the click to continue, its already ready to move on.

    Just d/l and check, some of the stuff is old srl procedures, so make sure it looks old before fixing (which is about everything thats left in there) also, make a .txt that shows the date, and what you changed/added.
    I do visit every 2-6 months

  17. #17
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Use only the dev svn guys, on't use two Trust me, it's a pain in the ass

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  18. #18
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I was thinking of doing it like this, the dev repo has more members that contribute, but only a select few can release the pub repo. Thats why CSRL is still at revision 0, but dev = 4.
    I do visit every 2-6 months

  19. #19
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Just so you know, im pretty sure Thick As Blood has already made an svn. And im still fighting to get our own forums so we can organize this better... Lol.

  20. #20
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Letz use this svn plox, i thought you liked the names!
    I do visit every 2-6 months

  21. #21
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    yeah, this svn!

    i already made a contribution, about to make some more
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  22. #22
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default


    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  23. #23
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,691
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    http://www.villavu.com/repositories/srl-rsc/

    Let's host it on villavu, shall we?

    PM me for Username/password, I'll set it up in the morning.
    Last edited by Sir R. M8gic1an; 11-16-2009 at 12:25 AM.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  24. #24
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    Dont we need user/pass ect to use dat?

  25. #25
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    http://www.villavu.com/repositories/srl-rsc/

    Let's host it on villavu, shall we?

    PM me for Username/password, I'll set it up in the morning.
    lol, or we can do that too

    pm'd
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

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
  •