SRL Archive - Include Development

RSC_Consts?


Awkwardsaw

2009-11-13 08:29:55

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

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 :p

also, more to come! probobly some inventory functions

Main

2009-11-13 18:10:52

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

Gu3st...

2009-11-13 18:29:01

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

YoHoJo

2009-11-13 18:33:29

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. :D Theres talk about an RSC subform. :D

ZaSz

2009-11-13 21:17:49

Your x cords will be off. It varies from person to person, depending on monitor :(

NCDS

2009-11-14 01:10:22

From: ZaSz
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.

ZaSz

2009-11-14 01:19:04

From: NCDS
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.
{*******************************************************************************
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.

Awkwardsaw

2009-11-14 08:20:18

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

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" ;)

Sir R. M8gic1an

2009-11-14 10:06:00

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

~RM

weequ

2009-11-14 11:24:47

From: Awkwardsaw
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:
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…

Awkwardsaw

2009-11-14 11:56:54

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.

ZaSz

2009-11-14 15:01:33

sorry, google includes already made.

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

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

Awkwardsaw

2009-11-14 22:13:52

/hopes destroyed

:p

mind if i help out with the include? lol

ZaSz

2009-11-14 22:15:41

You sure can! Give me email and ill put you on committer status!

Awkwardsaw

2009-11-14 22:21:01

[email]akwardsaw@gmail.com[/email]

:)

what functions/ procedures need updated/ fix'd?

ZaSz

2009-11-14 23:02:58

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.

Sir R. M8gic1an

2009-11-15 07:19:05

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

~RM

ZaSz

2009-11-15 13:25:11

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.

YoHoJo

2009-11-15 14:17:58

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.

ZaSz

2009-11-15 14:45:05

Letz use this svn plox, i thought you liked the names!

Awkwardsaw

2009-11-15 14:55:34

yeah, this svn! :p

i already made a contribution, about to make some more

Sir R. M8gic1an

2009-11-15 18:12:15

http://www.villavu.com/forum/showthread.php?t=52778

~RM

Wizzup?

2009-11-15 19:19:09

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.

YoHoJo

2009-11-15 19:19:57

From: Wizzup?
http://www.villavu.com/repositories/srl-rsc/


Dont we need user/pass ect to use dat?

Awkwardsaw

2009-11-15 19:33:51

From: Wizzup?
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 :p

pm'd

ZaSz

2009-11-15 19:40:59

From: Wizzup?
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.


I wanna have access please.