SRL Archive - SRL Randoms

SRL Randoms Help & Suggestions


Coh3n

2012-03-05 19:41:46

This thread is for the general concerns, questions, or suggestions about SRL's antirandoms system as a whole. If you're having a problem with a specific solver, please post on it's thread, not this one.

Cheers,
The SRL Development Team

Sytherix

2012-03-05 22:27:58

Hey Coh3n, I'm not sure if this is general or specific to the random. I've only just started out and I'm not sure what I'm doing wrong.

When trying to use Narcle's [AK]Smelter I get the error:
[Hint] C:\Simba\Includes\SRL/SRL/core/antirandoms\beekeeper.simba(194:3): Variable 'T' never used at line 193
[Error] (1788:3): Unknown identifier 'ScreenShots' at line 1787
Compiling failed.


I replaced "ScreenShots := true;" with "SRL_RandomScreenShot := true;" and it compiled fine. However as soon as it logged in, it "detected" the Freaky Forester random even though I was not in a random.

I hope I haven't post this in the wrong section.

Coh3n

2012-03-06 01:16:38

From: Sytherix
Hey Coh3n, I'm not sure if this is general or specific to the random. I've only just started out and I'm not sure what I'm doing wrong.

When trying to use Narcle's [AK]Smelter I get the error:


I replaced "ScreenShots := true;" with "SRL_RandomScreenShot := true;" and it compiled fine. However as soon as it logged in, it "detected" the Freaky Forester random even though I was not in a random.

I hope I haven't post this in the wrong section.
Oh I didn't realize I changed that variable name.

And you could have posted in the forester thread, but it's okay. You now know for next time. :)

Does that happen every time? Also, where were you? It first checks if the magic tabs exists, if not, it'll see if there's more than 10 NPCs on the minimap, then it checks for an excess of green on the minimap.

Sytherix

2012-03-06 08:23:00

From: Coh3n
Oh I didn't realize I changed that variable name.

And you could have posted in the forester thread, but it's okay. You now know for next time. :)

Does that happen every time? Also, where were you? It first checks if the magic tabs exists, if not, it'll see if there's more than 10 NPCs on the minimap, then it checks for an excess of green on the minimap.


Yes, it tends to happen every time with that certain script, I am about to test some others now - it works with MSI correctly. I was at Edgeville, I believe there are more than or close to 10 npc's when people train summoning there, along with the bankers and some other npc's in buildings.

I don't know about the magic tab though, I certainly had my magic tab there. Actually on afterthought, when banking you no longer have your magic tab - could that be an issue when scanning for randoms?


-Edit- It works fine with other scripts. Maybe Edgeville is too similar to the Forester random.

Coh3n

2012-03-06 13:39:26

From: Sytherix
I don't know about the magic tab though, I certainly had my magic tab there. Actually on afterthought, when banking you no longer have your magic tab - could that be an issue when scanning for randoms?
If findNormalRandoms is called when the bank is open, then yes that could be a problem. I'll add a bankScreen check for the next version.

Sytherix

2012-03-07 01:49:18

From: Coh3n
If findNormalRandoms is called when the bank is open, then yes that could be a problem. I'll add a bankScreen check for the next version.


Alrighty, I'm looking forward to it (:

YoHoJo

2012-03-07 11:38:26

I think the Mime could use a double check for proper compass angle and setangle after entering. It wouldn't hurt and I entered mine and was at N but a weird setangle.

Coh3n

2012-03-07 14:59:20

From: YoHoJo
I think the Mime could use a double check for proper compass angle and setangle after entering. It wouldn't hurt and I entered mine and was at N but a weird setangle.
ClickNorth(SRL_ANGLE_LOW) is called when Mime is detected. You're saying there should be another check?

clinkton5

2012-03-14 15:55:12

the script i am using detects the randoms but it does not solve them

Coh3n

2012-03-14 19:24:06

The script could have them disabled, I'm not sure. Which randoms are you talking about?

clinkton5

2012-03-15 16:26:28

all of them, when it gets a random it detects it and says finding whatever it is supposed to find but doesnt do anything

Coh3n

2012-03-15 16:54:01

Right, well that's not very helpful. The randoms are being solved fine for me. You need to post some debug text… or something more helpful than "it doesn't do anything." Debug logs are saved in Simba/Includes/SRL/logs.

Rob17

2012-03-15 18:45:06

Hi
Im new here, and not very good with all this

I just wanted to know how do you actually make the script do randoms

sorry if i sound nooby? :/

clinkton5

2012-03-16 10:01:36

no my debug logs r not there the only thing in the logs is current user: and then my username

clinkton5

2012-03-16 15:37:17

here is debug log for quiz random

[00:36:19]: ***** Found Random: Quiz Master *****
[00:36:22]: Quiz_ScanItem: Trout Fish Big, with a score of 0
[00:36:23]: Quiz_ScanItem: Tuna Fish Big, with a score of 2
[00:36:25]: Quiz_ScanItem: Ring Small, with a score of 2
[00:36:25]: GetTROAUse: UseNames - ['Edible', 'Jewelry']
[00:36:25]: GetTROAUse: UseCounts - [2, 1]
[00:36:25]: GetTROAUse: Result - Edible
[00:36:25]: Quiz_SolveQuestion: We need to pick Ring Small at slot 3
[00:36:27]: Quiz_Solve: Answered question wrong
[00:36:29]: Quiz_ScanItem: Trout Fish Big, with a score of 0
[00:36:31]: Quiz_ScanItem: Tuna Fish Big, with a score of 2
[00:36:32]: Quiz_ScanItem: Trout Fish Small, with a score of 2
[00:36:32]: GetTROAUse: UseNames - ['Edible']
[00:36:32]: GetTROAUse: UseCounts - [3]
[00:36:32]: GetTROAUse: Result - Edible

Coh3n

2012-03-17 01:54:21

From: Rob17
Hi
Im new here, and not very good with all this

I just wanted to know how do you actually make the script do randoms

sorry if i sound nooby? :/
You just have to add this to your script. :)

FindNormalRandoms();

From: clinkton5
no my debug logs r not there the only thing in the logs is current user: and then my username
That means no randoms were detected. If you were in one and it wasn't detected, either the detector is broken (which I don't think is the case), or the script isn't calling FindNormalRandoms.

From: clinkton5
here is debug log for quiz random

[00:36:19]: ***** Found Random: Quiz Master *****
[00:36:22]: Quiz_ScanItem: Trout Fish Big, with a score of 0
[00:36:23]: Quiz_ScanItem: Tuna Fish Big, with a score of 2
[00:36:25]: Quiz_ScanItem: Ring Small, with a score of 2
[00:36:25]: GetTROAUse: UseNames - ['Edible', 'Jewelry']
[00:36:25]: GetTROAUse: UseCounts - [2, 1]
[00:36:25]: GetTROAUse: Result - Edible
[00:36:25]: Quiz_SolveQuestion: We need to pick Ring Small at slot 3
[00:36:27]: Quiz_Solve: Answered question wrong
[00:36:29]: Quiz_ScanItem: Trout Fish Big, with a score of 0
[00:36:31]: Quiz_ScanItem: Tuna Fish Big, with a score of 2
[00:36:32]: Quiz_ScanItem: Trout Fish Small, with a score of 2
[00:36:32]: GetTROAUse: UseNames - ['Edible']
[00:36:32]: GetTROAUse: UseCounts - [3]
[00:36:32]: GetTROAUse: Result - Edible
Please don't double post, that's what the edit button is for. ;)

And thanks, I am aware of that bug, I've just been really busy the last few days.

xtrapsp

2012-03-17 11:12:31

Hey mate, I've recently gone from the Beta to the release of the new randoms and now NONE of them are being solved? I've uninstalled etc but it always says Random Solving failed on ALL randoms :S

[00:12:08]: ***** Found Random: Mordaut *****
[00:12:12]: MD_IDSmallPuzzle: Identifying puzzle
[00:12:12]: MD_IDSmallPuzzle: Scanning objects...
[00:12:35]: MD_IDSmallPuzzle: Objects scanned
[00:12:35]: MD_IDSmallPuzzle: Didn't ID puzzle
[00:12:35]: MD_IDSmallPuzzle: Identifying puzzle
[00:12:35]: MD_IDSmallPuzzle: Scanning objects...
[00:12:58]: MD_IDSmallPuzzle: Objects scanned
[00:12:58]: MD_IDSmallPuzzle: Found Small Puzzle: Weapons (3/3 objects)
[00:12:58]: MD_SolveSmallPuzzle: Solving...
[00:13:21]: MD_SolveSmallPuzzle: Found Mace in slot 7
[00:13:23]: MD_SolveSmallPuzzle: Solved Small Puzzle: Weapons
[00:13:23]: MD_Solve: Incorrectly solved puzzle
[00:13:27]: MD_IDSmallPuzzle: Identifying puzzle
[00:13:27]: MD_IDSmallPuzzle: Scanning objects...
[00:13:49]: MD_IDSmallPuzzle: Objects scanned
[00:13:49]: MD_IDSmallPuzzle: Found Small Puzzle: Smithing (2/3 objects)
[00:13:49]: MD_SolveSmallPuzzle: Solving...
[00:14:03]: MD_SolveSmallPuzzle: Found Bar in slot 6
[00:14:05]: MD_SolveSmallPuzzle: Solved Small Puzzle: Smithing
[00:14:09]: MD_IDSmallPuzzle: Identifying puzzle
[00:14:09]: MD_IDSmallPuzzle: Scanning objects...
[00:14:31]: MD_IDSmallPuzzle: Objects scanned
[00:14:31]: MD_IDSmallPuzzle: Found Small Puzzle: Combat (2/3 objects)
[00:14:31]: MD_SolveSmallPuzzle: Solving...
[00:14:55]: MD_SolveSmallPuzzle: Didn't find bottom objects, try 1
[00:15:20]: MD_SolveSmallPuzzle: Didn't find bottom objects, try 2
[00:15:45]: MD_SolveSmallPuzzle: Didn't find bottom objects, try 3
[00:15:51]: MD_SolveSmallPuzzle: Found Platebody in slot 5
[00:15:54]: MD_SolveSmallPuzzle: Solved Small Puzzle: Combat
[00:15:55]: MD_Solve: Incorrectly solved puzzle
[00:15:58]: MD_IDSmallPuzzle: Identifying puzzle
[00:15:58]: MD_IDSmallPuzzle: Scanning objects...
[00:16:19]: MD_IDSmallPuzzle: Objects scanned
[00:16:19]: MD_IDSmallPuzzle: Found Small Puzzle: Drink (2/3 objects)
[00:16:19]: MD_SolveSmallPuzzle: Solving...
[00:16:45]: MD_SolveSmallPuzzle: Didn't find bottom objects, try 1
[00:17:10]: MD_SolveSmallPuzzle: Didn't find bottom objects, try 2
[00:17:36]: MD_SolveSmallPuzzle: Didn't find bottom objects, try 3
[00:18:02]: MD_SolveSmallPuzzle: Didn't find bottom objects, try 4
[00:18:31]: MD_SolveSmallPuzzle: Didn't find bottom objects, try 5
[00:18:31]: MD_IDSmallPuzzle: Identifying puzzle
[00:18:31]: MD_IDSmallPuzzle: Scanning objects...
[00:18:52]: MD_IDSmallPuzzle: Objects scanned
[00:18:52]: MD_IDSmallPuzzle: Didn't ID puzzle
[00:18:52]: MD_IDSmallPuzzle: Identifying puzzle
[00:18:52]: MD_IDSmallPuzzle: Scanning objects...
[00:19:12]: MD_IDSmallPuzzle: Objects scanned
[00:19:12]: MD_IDSmallPuzzle: Didn't ID puzzle
[00:19:12]: MD_IDSmallPuzzle: Identifying puzzle
[00:19:13]: MD_IDSmallPuzzle: Scanning objects...
[00:19:28]: MD_IDSmallPuzzle: Objects scanned
[00:19:28]: MD_IDSmallPuzzle: Didn't ID puzzle
[00:19:28]: MD_IDSmallPuzzle: Identifying puzzle
[00:19:28]: MD_IDSmallPuzzle: Scanning objects...
[00:19:41]: MD_IDSmallPuzzle: Objects scanned
[00:19:41]: MD_IDSmallPuzzle: Didn't ID puzzle
[00:19:42]: MD_IDSmallPuzzle: Identifying puzzle
[00:19:42]: MD_IDSmallPuzzle: Scanning objects...
[00:20:03]: MD_IDSmallPuzzle: Objects scanned
[00:20:03]: MD_IDSmallPuzzle: Found Small Puzzle: Boots (2/3 objects)
[00:20:03]: MD_SolveSmallPuzzle: Solving...
[00:20:32]: MD_SolveSmallPuzzle: Didn't find bottom objects, try 1
[00:20:59]: MD_SolveSmallPuzzle: Didn't find bottom objects, try 2
[00:21:15]: MD_SolveSmallPuzzle: Didn't find bottom objects, try 3
[00:21:19]: MD_SolveSmallPuzzle: Didn't find bottom objects, try 4
[00:21:27]: MD_SolveSmallPuzzle: Didn't find bottom objects, try 5

[00:03:52]: ***** Found Random: Rewards *****
[00:03:52]: RD_SolveBox: Found reward box
[00:03:58]: RD_Solve: Didn't solve reward, dropping as a failsafe
[00:03:58]: ***** Solved Random: Rewards *****
[00:03:58]: ***** Found Random: Rewards *****
[00:03:58]: RD_SolveBox: Found reward box
[00:04:00]: RD_Solve: Didn't solve reward, dropping as a failsafe
[00:04:02]: ***** Solved Random: Rewards *****

[00:31:41]: ***** Found Random: Frog *****
[00:31:50]: Frog_ClickRoyal: Clicked a frog
[00:32:01]: Frog_ClickRoyal: Clicked a frog
[00:32:14]: Frog_ClickRoyal: Clicked a frog
[00:32:18]: Frog_WaitChat: Clicked wrong frog
[00:32:22]: Frog_ClickRoyal: Clicked a frog
[00:32:23]: Frog_WaitChat: Talking to the Royal Frog
[00:32:36]: ***** Solved Random: Frog *****
[00:32:37]: ***** Found Random: Rewards *****
[00:32:37]: RD_SolveBox: Found reward box
[00:32:38]: RD_Solve: Didn't solve reward, dropping as a failsafe
[00:32:40]: ***** Solved Random: Rewards *****

the last 2 are same format for all randoms with the exception for the first one

Coh3n

2012-03-17 13:11:26

^ According to that, it solved Frog just fine. You debug text is incomplete for Mordaut, and the Reward box will be dropped if the uptext isn't found (which can happen depending on the background).

E: In the last 2 days SRL has solved, for me, Drill Demon, Quiz, Mordaut, Beekeeper, and Pinball.

xtrapsp

2012-03-17 18:53:07

From: Coh3n
^ According to that, it solved Frog just fine. You debug text is incomplete for Mordaut, and the Reward box will be dropped if the uptext isn't found (which can happen depending on the background).

E: In the last 2 days SRL has solved, for me, Drill Demon, Quiz, Mordaut, Beekeeper, and Pinball.


hmm since then it's done 2 more but the logs are really short… I'l try and get some more detailed logs. I should enable debug?

Coh3n

2012-03-17 19:44:37

From: xtrapsp
hmm since then it's done 2 more but the logs are really short… I'l try and get some more detailed logs. I should enable debug?
It's enabled by default. The logs are quite detailed (detailed enough, anyway), so if you just posted it I'm sure it would help.

wazzzup

2012-03-19 19:04:16

I suggest a thread in the Anti Randoms section stating which randoms are working and which aren't, with dates of when each is disabled. It would help developers/scripters efficiently and quickly get to where they need to be without having to waste time going through each thread and seeing where people are at with it?

Kyle Undefined

2012-03-19 19:21:39

Each random has its own thread and the functionality of the random is in the thread title :p

Coh3n

2012-03-20 15:50:12

From: wazzzup
I suggest a thread in the Anti Randoms section stating which randoms are working and which aren't, with dates of when each is disabled. It would help developers/scripters efficiently and quickly get to where they need to be without having to waste time going through each thread and seeing where people are at with it?
Read the title of the thread.

Brandon

2012-03-21 21:37:17

Well this is the help thread so I'll post this here:


FindNormalRandoms is doing this.. I made a script like:


{$DEFINE SRL5}
{$DEFINE CRASHSMART}
{$DEFINE SMART}
{$i SRL/srl.simba}

Procedure RandomCheck;
var
OldStatus: String;
begin
if FindNormalRandoms then
begin
SRLRandomsReport;
end;
end;


begin
Smart_Server := 72;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;

SetupSRL;

RandomCheck;
MMouse(MSCX, MSCY, 0, 0); //Takes 15 seconds before this line executes..
end.

And the picture above is the result of it..

Coh3n

2012-03-22 00:37:43

Did you modify your SRL at all? That doesn't happen to me (and yes, I ran your example script).

Brandon

2012-03-22 00:40:40

From: Coh3n
Did you modify your SRL at all? That doesn't happen to me (and yes, I ran your example script).


Nope.. Might re-install it in the morning.. tired atm but I'm 100% sure I didn't modify it.. Seems to be happening to a couple of testers as well :S

Happens in Ancient cavern.. when it does happen, it runs to the darkest area it can find on the Minimap AFTER it spams the console :S

Either that or it will stand there for the 15 seconds and then execute the procedure after.


EDIT.. also happens at frost dragons since that's where I died..

Coh3n

2012-03-22 00:50:04

I can't see why it would walk anywhere on the minimap. The only random that walks is Evil Bob, and obviously it isn't being detected. Do you set any kind of SRL_Procs in the other scripts it happens with?

E: The only other thing I can think of is maybe you're running a finding function on a TTimer?

starrychelx

2012-05-05 04:45:24

hi just a quick question. Have the randoms already been updated onto the client or do I have to add them myself? Thanks in advance!

Abu

2012-05-05 07:18:01

From: starrychelx
hi just a quick question. Have the randoms already been updated onto the client or do I have to add them myself? Thanks in advance!


If the script you are using puts in a function called FindNormalRandoms, then you don't have to do anything :)

rs2info

2012-05-07 19:36:03

Is there a way you can select your rewards? Every time I have a lamp in my inventory it automatically uses it on Attack, which I do not want….

Abu

2012-05-07 19:38:40

From: rs2info
Is there a way you can select your rewards? Every time I have a lamp in my inventory it automatically uses it on Attack, which I do not want….


In your DeclarePlayers procedure look at where it says
user: '';
pass: '';

Then add
BoxRewards  := ['']; // put what you want in quotation marks

rs2info

2012-05-07 19:42:47

Can you give an example for a lamp on agility for example?

EDIT: Thanks for the quick reply btw.

Silen109

2012-05-07 21:28:39

hi im really new to scripting and i keep getting Unknown identifier 'InAbyss' at line 1088
Compiling failed. when i try to run SRL essence miner any tips on what to do??

hajahmz

2012-05-10 18:16:45

In order to disable randoms from Simba (make it so that it logs out when a random has been detected), how would I incorportate this line into the script? "SRL_DisableRandoms := true;"

Scruff

2012-05-15 16:10:53

Not sure this is the right place, but can you pick which reward you get after completing the random? The script I am running keeps picking the random box reward, and I would prefer a lamp.

Thanks.

Andres

2012-05-18 15:15:37

From: Scruff
Not sure this is the right place, but can you pick which reward you get after completing the random? The script I am running keeps picking the random box reward, and I would prefer a lamp.

Thanks.


I have a similar comment. I think that the mystery box is a poor option for the reward because it places an item in your inventory. This can cause issues in scripts.

For example, I was using Flight's granite miner, and received a boot from the mystery box. The script is meant to drop items in the first two inventory spaces but was selecting examine on the boot instead of drop. Also, I was using the heavy rodding fishing script and received a mithril scimitar from a mystery box. For whatever reason, the script equipped the scimitar. It wasn't an issue for me, but it could be if someone has something equipped (e.g. a dragon pickaxe).

I think coins is the best option because it will just go into the money pouch.

Just an idea!

zmon

2012-05-20 15:16:27

My suggestion is as follows:

when calling FindAllRandoms, which calls _FindAllRandoms, the result value is not initially set, so it defaults to false. But when you look at code path - it is only set to true if a random is solved so basically the results are:

true - found and solved random
false - either didn't find or didn't solve random

which isn't entirely helpful if you want to use the return value unless all you are concerned about is to tell user "yay, resolved random for you"

my suggestion is to set the default value to true, and set it to false if resolving random fails

that would make result as follows:

true - either didn't find random or solved it
false - found random but failed to solve it

and then i could use the value to take action based upon it such as

if not FindAllRandoms then
begin
// handle failed random
end;

or alternatively add another out boolean parameter so that i can check and determine if there was failure with random.

i suppose i could check if LoggedIn is true, as failed randoms log person out, but because the function exits if user is not logged in, if i call findallrandoms before screen is fully up, i will not be able to tell if user was logged out due to failed random

Creath

2012-06-01 10:15:19

I think there must be an issue with SMART, or something similar. SRL RandomTool has failed like almost every random I've come across, even ones that claim to be working.

I've failed:
Mime
Pillory
Maze
Classroom
And more, I'm sure.

The only randoms I can recall working correctly are the Sandwhich Lady and the Abyss Teleporter (Clicked on the same pipe over and over, but it worked so I suppose that's fine).

People are reporting that all of these are working fine for them, and that problems may be caused by SMART lag. I have a quadcore with 4GB RAM so I don't think it's on my computers end, is there another issue and a possible fix?

Justin

2012-06-01 10:25:35

From: Creath
I think there must be an issue with SMART, or something similar. SRL RandomTool has failed like almost every random I've come across, even ones that claim to be working.

I've failed:
Mime
Pillory
Maze
Classroom
And more, I'm sure.

The only randoms I can recall working correctly are the Sandwhich Lady and the Abyss Teleporter (Clicked on the same pipe over and over, but it worked so I suppose that's fine).

People are reporting that all of these are working fine for them, and that problems may be caused by SMART lag. I have a quadcore with 4GB RAM so I don't think it's on my computers end, is there another issue and a possible fix?



Yes some randoms are broken but as you can see, people don't post logs/pm account details any more so the Random team are unable to fix them.

Creath

2012-06-01 15:25:51

From: [J]ustin
Yes some randoms are broken but as you can see, people don't post logs/pm account details any more so the Random team are unable to fix them.


I've been doing my best. Not sure about giving the account details, but I've tried to provide logs whenever possible.

Kyle Undefined

2012-06-01 15:41:06

From: Creath
I've been doing my best. Not sure about giving the account details, but I've tried to provide logs whenever possible.


Although posting logs help, being able to edit what caused it to fail is what's needed.

Creath

2012-06-01 15:54:26

From: Kyle Undefined
Although posting logs help, being able to edit what caused it to fail is what's needed.


As in editing the code? If I was an adept coder I'd be glad to, but at this point I'm just learning.

Kyle Undefined

2012-06-01 15:56:34

I'm saying by letting a dev borrow your account that's in the random, we can fix the issues.

Creath

2012-06-01 16:14:13

From: Kyle Undefined
I'm saying by letting a dev borrow your account that's in the random, we can fix the issues.


Who are the official devs? I'll gladly loan my account for a bit if it helps.

Devlor

2012-06-06 05:58:26

From: abu_jwka
In your DeclarePlayers procedure look at where it says
user: '';
pass: '';

Then add
BoxRewards  := ['']; // put what you want in quotation marks


So
BoxRewards := ['Constitution'];
will get a lamp and use it on constitution, right? Or is it HP? Or Different captitalizations? Is this documented anywhere so I can make sure I'm doing it right?

Thanks.

Edit: no, that didn't work, I just watched it pick a mystery box

putonajonny

2012-06-11 15:03:27

How about something where on a random failing the debug log is send to somewhere for us all to access? I could write something?

Edit:

This could be called on a random failing:
Procedure RandomSendLog;
Var
S, R, Name, Temp : String;
num : integer;
Succeeded : Boolean;
Names : array of String;
begin

if (SRL_DisableLogging) then
exit;

if (not directoryExists(SRL_SavePath)) then
forceDirectories(SRL_SavePath);

Name := 'SRL log ('+SRL_StartTime+').txt';
Name := replace(Name, '/', '-');
Name := replace(Name, ':', ' ');
Name := SRL_SavePath + Name;

if (FileExists(Name)) then
num := OpenFile(Name, False)
else
exit;

ReadFileString(num, S, FileSize(num));
CloseFile(num);

Names := ['Drill Demon', 'Maze', 'Evil Bob', 'Mordaut', 'Certers', 'Mime', 'Abyss', 'Frog', 'Pinball', 'Sandwich Lady', 'Pillory (Cage)', 'Cap''n Arnav', 'Quiz Master', 'Leo', 'Prison Pete', 'Freaky Forester', 'Beekeeper', 'Molly', 'Rewards'];
for num := 0 to high(Names) do
if(Pos(Names[num], S) > 0)then
begin
R := Names[num];
break;
end;

Succeeded := Pos('Solved Random', S) > 0;

While(Pos('Current player:', S) > 0)do //Removing usename:
begin
Temp := Copy(S, Pos('Current player:', S) + 13, Length(S));
S := Copy(S, 1, Pos('Current player:', S) + 13) + '**********' + Copy(Temp, Pos(#13#10, Temp), Length(Temp));
end;

S := Replace(S, #13#10, ',,'); //The double commas are replaced by <BR> tags when it is printed
S := Replace(S, #39, '');
S := Replace(S, '"', '');

if(S <> '')then
begin
num := InitializeHTTPClientWrap(False);
AddPostVariable(num, 'log', S);
AddPostVariable(num, 'random', R);
AddPostVariable(num, 'succeeded', BoolToStr(Succeeded));
PostHTTPPageEx(num, '...');//I have removed the website as I would assume you wouldn't want me hosting it, but it works on my site
FreeHTTPClient(num);
end;

end;

And the php:
[PHP]<?PHP

$user_name = "";
$pass_word = "";
$database = "";
$server = "";

$log = $_POST['log'];
$random = $_POST['random'];
$succeeded = $_POST['succeeded'];

$ip = $_SERVER['REMOTE_ADDR']; //This is saved incase of abuse, it can start rejecting posts based on IP

$db_handle = mysql_connect($server, $user_name, $pass_word);
$db_found = mysql_select_db($database, $db_handle);

if ($db_found) {

$SQL = "INSERT INTO `Random Event Logs` (`Random` ,`Succeeded` ,`Log` ,`IP`) VALUES ('".$random."', '".$succeeded."', '".$log."', '".$ip."')";
$result = mysql_query($SQL);
if($result)
print "True";
else
print "False";

}
else
print "DB not Found, please report this";


?>[/PHP]

And then so we can look at the logs:
[PHP]<?PHP

$user_name = "";
$pass_word = "";
$database = "";
$server = "";

$random = $_GET['random'];
$username = $_GET['username'];
$password = $_GET['password'];

$db_handle = mysql_connect($server, $user_name, $pass_word);
$db_found = mysql_select_db($database, $db_handle);

if (($db_found) && ($username == "") && ($password == "")){//Just to keep it private

$SQL = "SELECT * FROM `Random Event Logs`";
$result = mysql_query($SQL);

while ($db_field = mysql_fetch_assoc($result)) {
if($db_field['Random'] == $random){
print "<b>ID:</b>";
print $db_field['ID'] . "<BR>";
print "<b>Random:</b>";
print $db_field['Random'] . "<BR>";
print "<b>Succeeded:</b>";
print $db_field['Succeeded'] . "<BR>";
print "<b>Log:</b>";
print str_replace(",,", "<BR>", $db_field['Log']) . "<BR><BR>";
}
}

}
else
print "Username of Password incorrect";


?>[/PHP]
The viewing could obviously be improved, with record deleting, and choosing to view only failed logs etc.