SRL Archive - Other Scripts

Remote Control System [PHP, SCAR] [Can use with web browser & SCAR]


Pentti

2007-11-04 12:20:43

I just saw yesterday a topic about remote control system via internet.
I was about to make this before I quit from RS and SRL, but I didnt.

This probably has no use for me, dunno if no one has. But well, now it is made.
Was cool way to learn even more PHP and HTML.
(I learned a bit HTML like a few days before I started making this)


  • No need to login in RS to see how your autoer is doing.
  • No need to send/check for chat texts in RS (100% accurated, faster = better).
  • Able to create/edit/view settings & values with SCAR AND with your web browser
  • Change/View your account activities via web browser
  • Send screenshots with SCAR which you can then view with your webbrowser.
  • ->SCAR can send, read, edit, create data.
  • ->Webbrowser can send (save), read, edit, create data (sent from SCAR).
Public username: 'public'
Public password: 'public'
[Rather create a new rc account for more features avaiable]

http://srlpentti.awardspace.com/rc

If you create a new rc account, you can use RC through your web browser: http://srlpentti.awardspace.com/rc/?action=register
(Able to manage RC settings through web browser, no RS login needed, no SCAR needed. Cant be done with "public user").
Took one day for me to make! (SCAR, PHP and HTML)

Function list:
{
Procedure SendAccountStatus; | Sends all accounts status (Active or nor).
Function GetAccountStatus: Array of Boolean; | Gets all your accounts status from the server (Active or nor).
Procedure AutoSetActivity; | Gets your player activities from server, and changes them same on script.

Procedure SendRC(Setting: String; Value: String); | Send/Edit/Create RC setting.
Function ReadRC(Setting: String): String; | Read RC setting.
Function ListSettings: Array of String; | Gets the list of all your settings.
Function ListValues: Array of String; | Gets the list of all your setting values.

Procedure RCSendScreenShotC(Name: String; x1, y1, x2, y2: Integer); | Sends the screenshot from given coordinates.
Procedure RCSendScreenShot(Name: String; AreaName: String); | Sends the screenshot by given AreaName [full, mainscreen, inventory, chat, minimap]
Procedure RCAddScreenShot(Name: String; x1, y1, x2, y2: Integer); | Saves a screenshot in memory for sending it later on the server.
Procedure RCSendScreenShots; | Loads all the screenshots from memory (RCAddScreenShot) and sends them all to the server. (Good to use when logged out in RS)
ImageShack.us image uploader made by The_RS_Monkey

Function WriteRCLog(S: String): Boolean; | Writes into RC log -file on your computer
Procedure ClearRCLog; | Clears the RC log -file on your computer
Procedure SendRCLog(S: String); | Writes into servers rc log file
}
Some screenshots taken from web browser view (Click image to see it bigger):

Wizzup?

2007-11-04 13:20:59

Do you use MySQL?

Pentti

2007-11-04 13:23:31

From: Wizzup?
Do you use MySQL?

Nope.

mat_de_b

2007-11-04 15:53:52

surely its useless if you cant get to the client anyway? its just a way of getting an update?

Wizzup?

2007-11-05 02:37:07

From: Pentti
Nope.


Why not, you like write users to a .txt file?

Pentti

2007-11-05 13:51:38

From: mat_de_b
surely its useless if you cant get to the client anyway? its just a way of getting an update?

Excuse me…? :D
From: Trevor3443
lol i was the one that made other post, I will look at this and see what you did!

thanks :)

Ye, well. I probably wouldnt have made this now if I hadn't seen your topic. :D
From: Wizzup?
Why not, you like write users to a .txt file?

Well, not exactly into a .txt file. :D
I have needed MySQL nowhere to this day, I probably never need, even if I have been making SCAR + php mixed thing which has 500+ php script (+SCAR scripts [forms] 7). :D
And why would I learn to use MySQL, since no one probably wouldnt even use this. :rolleyes:

mat_de_b

2007-11-05 14:02:34

The point of RC is to allow you reset your characters which you cant do becuase you cant load a client which is why you are using this… so surely its not all that great?

Pentti

2007-11-05 14:07:21

From: mat_de_b
The point of RC is to allow you reset your characters which you cant do becuase you cant load a client which is why you are using this… so surely its not all that great?

You can do that part by creating settings and values, like setting name your account name, and value if its active or not.
You know how to scritp in SCAR, dont you? Then it shouldnt be hard at all. ;)

mat_de_b

2007-11-05 16:18:06

Im saying that RC is used to reset people which requires a client.

This isnt RC this is a PHP progrss report because you cant do anything to your characters without a client.

And if your using this you obviously cant access the client…

Pentti

2007-11-07 09:05:23

From: mat_de_b
Im saying that RC is used to reset people which requires a client.

This isnt RC this is a PHP progrss report because you cant do anything to your characters without a client.

And if your using this you obviously cant access the client…

Dude, what you mean with reset? Like if your account is inacitve (lost), then you go to RS and make it go back where it is supposed to auto? Then just check if its inactive then do your thing, and make it active again with RC.
From: c0de
Wizzup, should we tell them? :P

I already know! ;)

:rolleyes: …Wondering what is Wizzups next post (3000th). :D

Pentti

2007-11-07 10:38:38

From: c0de
Did you see it though? :P

Nah, not yet.

lordsaturn

2007-11-07 18:56:18

[offtopic] Pentti!! You're back! Huzzah! [/offtopic]


Anyways, what exactly does this RC system tell you? And how exactly does it work? I'm intrigued.

And, if you ever need some help, we could make a team, I'm mildly fluent in PHP and MySQL, if you ever want to implement that.

Pentti

2007-11-08 06:35:27

From: lordsaturn
[offtopic] Pentti!! You're back! Huzzah! [/offtopic]

Lets not party that. :D …yet.
I was back for a while, to post this.

From: lordsaturn

Anyways, what exactly does this RC system tell you? And how exactly does it work? I'm intrigued.

Well, you can send stuff with SCAR like your accounts status (ex. if account is lost), and then you can view them on another (remote) computer, by going to http://srlpentti.awardspace.com/rc/?action=login (On that site you can create/view/edit settings sent from SCAR).
If you see one of your accounts being lost, you go to RuneScape, take your account to place where it can start to continue autoing. And make SCAR know it account is again active by going on that URL and change it status to active. And then you have one more player active again. :D

^That goes aswell to mat_de_b!!! Hope ya understand it now.^

From: lordsaturn

And, if you ever need some help, we could make a team, I'm mildly fluent in PHP and MySQL, if you ever want to implement that.

Well, like I said before, I am making some stuff which now has like 500+ php lines, 7 forms in SCAR + some more stuff for SCAR, havent needed MySQL yet (Still alot of settings etc saved + loaded with php to&from SCAR), probably wont even need. And I think I have got bored on that project now. :D
Thank you for offering help, I apperciate it. But I think I dont need any help right now. But now I know who to ask if I need ;).
:D

Pentti

2007-11-08 08:54:14

From: Trevor3443
OK, is it possible to send a e-mail through PHP? and if so, that means you can send a text to a phone.

What I was trying to make was something that could send a text to my phone every 30 minutes with updated statistics of how the script was going, how many players are false / true, and how much resources they have collected and etc….

How hard would that be to add into what you have made? Like it sends an e-mail to an address?

And would it be harder for PHP to read an e-mail?

Im a noob at PHP, but wanting to learn,

thanks :)

It is possible to send e-mail with PHP.
And about php reading e-mail… Have no idea. :D
Btw, My host wont allow sending E-mail, but I think I still know how to do it. :D

And hey! Check out just updated stuff! On SCAR and on the SERVER
Added ready functions to send/read your accounts status (active or not), and can also change/view them on http://srlpentti.awardspace.com/rc/?action=login
Procedure SendAccountStatus;                        | Sends all accounts status.
Function GetAccountStatus: Array of Boolean; | Gets all your accounts status from the server.

Wizzup?

2007-11-08 09:41:11

Why don't you return a simple boolean to SCAR, (in the result of postpage), and if that boolean is set call RCResetPlayers; ?

Pentti

2007-11-08 09:44:54

From: Wizzup?
Why don't you return a simple boolean to SCAR, (in the result of postpage), and if that boolean is set call RCResetPlayers; ?

You mean like reset all at one time? But if you dont want to reset than only one player or you dont want to reset all players. :D

Wizzup?

2007-11-08 11:06:04

From: Pentti
You mean like reset all at one time? But if you dont want to reset than only one player or you dont want to reset all players. :D


Well.. thats what RC does.. :)

Pentti

2007-11-08 11:58:25

Well, I always can add an option to reset all at once.

But it think "resetting the players you only want to" -option is good, like if you have 5 guys on some random event, you dont have time to complete that on every account, you can just reset the accounts that you had time to complete the event. :D

HISTORY

2007-11-11 08:50:50

I think I'm going to use most of the features in this.

Harry

2007-11-11 09:01:31

Pentti!!!: When I try to do anything with it, my browser says this:
Bad Request

Your browser sent a request that this server could not understand.

:S

Hugolord

2007-11-11 09:12:15

Finally you released this ^^

gona try it see ur progress ^^

Pentti

2007-11-11 09:13:20

From: HISTORY
I think I'm going to use most of the features in this.

Cool! :D

From: Hy71194
Pentti!!!: When I try to do anything with it, my browser says this:
Bad Request

Your browser sent a request that this server could not understand.

:S

Like when you go to http://srlpentti.awardspace.com/rc ?
What webbrowser are you using?

From: hugolord
Finally you released this ^^

gona try it see ur progress ^^

Lol "finally"?
I released this like day after I told you I was going to make this, and this has been here for a few days now. :D

Harry

2007-11-11 09:14:32

<No, when I try to register or login. Firefox.

Hugolord

2007-11-11 09:28:37

I think an einstein cup is coming…

rogeruk

2007-11-11 10:28:37

Empty username! User has 1 settings.


LOL nice.. all that and couldnt check if there was data in the input box's?

Wizzup?

2007-11-11 10:30:47

I made this quite awhile ago, really..
And after I made it, c0de made a one that is 400% percent better, but it up to him to decide when he will release it.

http://82.92.130.193/OPR/

Without all the 'good looks' ofcourse. I didn't learn myself any graphical PHP/Html.
You can view your Progress Report, and reset all players at once.
Use WriteAddOPR instead of your normal writeln's (in the progress report). :)

Var
Online_Progress, Progress_Name, Progress_Pass: String;

Procedure clearOnlineReport;

Begin
Online_Progress := '';
End;

Function sendOnlineReport: Boolean;

Var
ProgressClient: Integer;
s: String;

Begin
If (Progress_Name = '') Or (Progress_Pass = '') Or (Online_Progress = '') Then
Exit;
ProgressClient := InitializeHTTPClient(False, False);
ClearPostData(ProgressClient);

AddPostVariable(ProgressClient, 'name', Progress_Name);
AddPostVariable(ProgressClient, 'pass', Progress_Pass);
AddPostVariable(ProgressClient, 'report', Online_Progress);
s := PostHTTPPageEx(ProgressClient, 'http://82.92.130.193/OPR/AddReport.php');
writeln(s);
If s = '`SCARRC -> Reset`' Then
Begin
Result := ((0 xor 1) = 1);
WriteLn('OPR: Resetting Players');
RCResetStatus;
End;
Result := (s <> '');
ClearPostData(ProgressClient);
FreeHTTPClient(ProgressClient);
clearOnlineReport;
End;

Procedure writeAndAddToOnlineReport(Add: String);

Begin
Online_Progress := Online_Progress + Add + Chr(13);
WriteLn(Add);
End;

Procedure writeaddopr(add: string);

begin
writeAndAddToOnlineReport(add);
end;

Hugolord

2007-11-11 10:35:59

I just thing that combining two or more languages for whatever reasons should grant you a master cup, besides i know pentti and i know his capabilities but meh nvm

rogeruk

2007-11-11 10:41:41

Not bad Wizzup?, anything that requires a register we will not get leechers to do like SRL Stats.

If SCAR could have the possibility to create a pre-made account so that when you install it will say "User ID: XXX", then any script that is ran can grab that userid. That way there would be no need for registration.

Pentti

2007-11-11 10:47:26

From: rogeruk
LOL nice.. all that and couldnt check if there was data in the input box's?

You didnt make your login succesful. :D

From: Wizzup?
A master cup?
I made this quite awhile ago, really..
And after I made it, c0de made a one that is 400% percent better, but it up to him to decide when he will release it.

http://82.92.130.193/OPR/

Without all the 'good looks' ofcourse. I didn't learn myself any graphical PHP/Html.
You can view your Progress Report, and reset all players at once.
Use WriteAddOPR instead of your normal writeln's (in the progress report). :)

Var
Online_Progress, Progress_Name, Progress_Pass: String;

Procedure clearOnlineReport;

Begin
Online_Progress := '';
End;

Function sendOnlineReport: Boolean;

Var
ProgressClient: Integer;
s: String;

Begin
If (Progress_Name = '') Or (Progress_Pass = '') Or (Online_Progress = '') Then
Exit;
ProgressClient := InitializeHTTPClient(False, False);
ClearPostData(ProgressClient);

AddPostVariable(ProgressClient, 'name', Progress_Name);
AddPostVariable(ProgressClient, 'pass', Progress_Pass);
AddPostVariable(ProgressClient, 'report', Online_Progress);
s := PostHTTPPageEx(ProgressClient, 'http://82.92.130.193/OPR/AddReport.php');
writeln(s);
If s = '`SCARRC -> Reset`' Then
Begin
Result := ((0 xor 1) = 1);
WriteLn('OPR: Resetting Players');
RCResetStatus;
End;
Result := (s <> '');
ClearPostData(ProgressClient);
FreeHTTPClient(ProgressClient);
clearOnlineReport;
End;

Procedure writeAndAddToOnlineReport(Add: String);

Begin
Online_Progress := Online_Progress + Add + Chr(13);
WriteLn(Add);
End;

Procedure writeaddopr(add: string);

begin
writeAndAddToOnlineReport(add);
end;

Wow! The topic fast turned into "Wizzups uber remote control thingy!" :O
Not too hard to make progress report saving or resetting all players at once.

Btw, I do believe that c0des will be really cool.

rogeruk

2007-11-11 17:33:49

Pentti, i created a script or whatever it was, cant remember. Just gotta remove the refresh and it will stay there like a logged in user lool.

Wizzup?

2007-11-12 02:36:54

From: Pentti
You didnt make your login succesful. :D


Wow! The topic fast turned into "Wizzups uber remote control thingy!" :O
Not too hard to make progress report saving or resetting all players at once.

Btw, I do believe that c0des will be really cool.


You mean that 1 post rogeruk made? :p

From: rogeruk
Not bad Wizzup?, anything that requires a register we will not get leechers to do like SRL Stats.

If SCAR could have the possibility to create a pre-made account so that when you install it will say "User ID: XXX", then any script that is ran can grab that userid. That way there would be no need for registration.


It's an alright idea, but how are you supposed to remember the ID at school, because it has to be a complicated one.. ;)
Otherwhise people can just try random numbers.

Anyway, yes c0de's one owns.

Pentti

2007-11-12 11:57:36

Yeah! I now made it to be able to send screenshots to the server :D
Those 2 screenshots on the RC settings page are just examples how it seems when you have sent screenshots.
Cant show the SCAR side of it yet, it also needs some tuning.

Hugolord

2007-11-12 15:16:48

From: Pentti
Yeah! I now made it to be able to send screenshots to the server :D
Those 2 screenshots on the RC settings page are just examples how it seems when you have sent screenshots.
Cant show the SCAR side of it yet, it also needs some tuning.


^^ i just love this whole idea

Pentti

2007-11-24 06:27:34

From: hugolord
^^ i just love this whole idea

:D

If anyone is still interested, just made some new stuff.
Full function list:
{
Procedure SendAccountStatus; | Sends all accounts status (Active or nor).
Function GetAccountStatus: Array of Boolean; | Gets all your accounts status from the server (Active or nor).

Procedure SendRC(Setting: String; Value: String); | Send/Edit/Create RC setting.
Function ReadRC(Setting: String): String; | Read RC setting.
Function ListSettings: Array of String; | Gets the list of all your settings.
Function ListValues: Array of String; | Gets the list of all your setting values.

Procedure RCSendScreenShotC(Name: String; x1, y1, x2, y2: Integer); | Sends the screenshot from given coordinates.
Procedure RCSendScreenShot(Name: String; AreaName: String); | Sends the screenshot by given AreaName [full, mainscreen, inventory, chat, minimap]
Procedure RCAddScreenShot(Name: String; x1, y1, x2, y2: Integer); | Saves a screenshot in memory for sending it later on the server.
Procedure RCSendScreenShots; | Loads all the screenshots from memory (RCAddScreenShot) and sends them all to the server. (Good to use when logged out in RS)
ImageShack.us image uploader made by The_RS_Monkey

Function WriteRCLog(S: String): Boolean; | Writes into RC log -file on your computer
Procedure ClearRCLog; | Clears the RC log -file on your computer
Procedure SendRCLog(S: String); | Writes into servers rc log file
}

Hugolord

2007-11-24 06:28:54

From: Pentti
:D

If anyone is still interested, just made some new stuff.
Full function list:
{
Procedure SendAccountStatus; | Sends all accounts status (Active or nor).
Function GetAccountStatus: Array of Boolean; | Gets all your accounts status from the server (Active or nor).

Procedure SendRC(Setting: String; Value: String); | Send/Edit/Create RC setting.
Function ReadRC(Setting: String): String; | Read RC setting.
Function ListSettings: Array of String; | Gets the list of all your settings.
Function ListValues: Array of String; | Gets the list of all your setting values.

Procedure RCSendScreenShotC(Name: String; x1, y1, x2, y2: Integer); | Sends the screenshot from given coordinates.
Procedure RCSendScreenShot(Name: String; AreaName: String); | Sends the screenshot by given AreaName [full, mainscreen, inventory, chat, minimap]
Procedure RCAddScreenShot(Name: String; x1, y1, x2, y2: Integer); | Saves a screenshot in memory for sending it later on the server.
Procedure RCSendScreenShots; | Loads all the screenshots from memory (RCAddScreenShot) and sends them all to the server. (Good to use when logged out in RS)
ImageShack.us image uploader made by The_RS_Monkey

Function WriteRCLog(S: String): Boolean; | Writes into RC log -file on your computer
Procedure ClearRCLog; | Clears the RC log -file on your computer
Procedure SendRCLog(S: String); | Writes into servers rc log file
}



Thank you (h)

now tut? :spongebob:

Pentti

2007-12-13 12:27:20

From: Pentti
…, since no one probably wouldnt even use this. :rolleyes:

- Like I already said.

But still it would be nice to get some comments about my work, and especially now because I have got everything work fine (the server side and SCAR part).
Now about 40 guys have tried this, but most of those havent made even one single comment, does it always need to be a profitable RS script to get topic commented? :D

radragon16

2008-02-12 05:49:29

I would totally use this if I had a clue on how to use it LOL. *noob moment*

Looks awesome man.

EDIT: got it going and now Im trying to figure out the value and settings areas. hmm
To implement these do I have to add the functions into every script?

Freddy1990

2008-02-13 14:32:01

I started to make something like this some time ago, worked completely different but the general concept was about the same, I quit for some reason though…

vikrant60

2008-04-30 19:14:42

Dude i have 3 words for you……You Frikein own!!!!!!!!!!!!!!