SRL Archive - Other Scripts

FreeRice Donator


nielsie95

2009-05-19 18:24:54

Hey,

This is a script which plays the English Vocabulary game on FreeRice. It keeps a dictionary so that every new word gets stored and answered correctly the next time. It is able to make a dictionary from Freddy's database.

The script setup should speak for itself.

Here's a nice report from Shuttleu:

[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 18 hours, 52 minutes and 27 seconds
You have answered 27112 questions
You have donated 214370 grains of rice
Accuracy: 79.0683092357628%
[/code]
and here's one even better:
[code]
[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 34 hours, 52 minutes and 1 seconds
You have answered 48829 questions
You have donated 488280 grains of rice
Accuracy: 99.9979520366995%
[/code]

And from from Frt:
[code]
[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 2 hours, 40 minutes and 41 seconds
You have answered 15452 questions
You have donated 154510 grains of rice
Accuracy: 99,9935283458452%

You'll need Appa to run this. Download it and extract the plugin in your SCAR/Plugins folder.

Dynamite

2009-05-19 18:30:54

Will use this now ;)

cheers again

T|M

Dynamite

2009-05-19 20:04:44

Wait do i need to download the Dictionary file thing? or does it make it?

T~M

Floor66

2009-05-19 20:07:22

Appa = like SMART but then for browser?

ShowerThoughts

2009-05-19 20:17:33

AFAIK, it is sounds pretty cool ^^.

nielsie95

2009-05-19 20:39:56

From: The Man
Wait do i need to download the Dictionary file thing? or does it make it?

T~M


You should get a dialog asking if you want to download the dictionary.

Dynamite

2009-05-19 20:41:13

Yeh it was hidden behind Appa
BTW what does Appa stand for?
Its running ATM here proggy so far:
[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 31 minutes and 55 seconds
You have answered 777 questions
You have donated 7760 grains of rice
Accuracy: 99.8712998712999%

T~M

nielsie95

2009-05-19 20:46:20

Nothing yet, really :p
To some people it may sound familiar, but it's no abbreviation (yet).

Thanks for testing! Looking good :)

Laur€ns

2009-05-19 21:23:22


Appa: Already showing!
WARNING: Updating the dictionary may take some time!
Socket Error # 11001
Host not found.
Updated dictionary!
ERROR!!
Successfully executed


I did allow access.

Frt

2009-05-19 21:26:35

[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 2 hours, 40 minutes and 41 seconds
You have answered 15452 questions
You have donated 154510 grains of rice
Accuracy: 99,9935283458452%[/quote]

Still running :p

EDIT: New Proggy.

nielsie95

2009-05-19 21:43:02

From: Laur€ns
I did allow access.


That's pretty weird.. I have no idea what's causing it :(
Nice Frt! :)

ShowerThoughts

2009-05-19 21:58:24

Hmm, let's own some flash games!
NOT! :p.
IMO, there is no point in autoing flash games, since you can hack them.
You can't hack rs so you auto it, AFAIK.

Though autoing p0wnz, since scripting p0wnz.
Could I use the since and the p0wnz more? :p.

GJ!

Dynamite

2009-05-19 22:15:39

From: Frt
Still running :p


How did you get it to run so fast?

Also i am stupid… How do you auto the flash games with this?

T~M

ShowerThoughts

2009-05-19 22:17:31

/me wants tut!

Frt

2009-05-19 22:17:46

From: The Man
How did you get it to run so fast?

Also i am stupid… How do you auto the flash games with this?

T~M


Just set SpeedHack = True and the WaitTime to 1.

nielsie95

2009-05-19 22:18:18


WaitTime = 5; //WaitTime in ms between questions
SpeedHack = True; //If you have a waittime under 2 seconds, you should turn this on for better results

That'll make it run fast.

I'll write up an example soon on how to use it with a flash game. :)

Dynamite

2009-05-19 22:19:00

OK cheers Niels :)
Your the best ;)

T~M

ShowerThoughts

2009-05-19 22:20:04

Lol, Nielsie is getting a lot of attention ;).
I will stop posting because Nielsie can't handle it.
In the way of speaking ofc(Dutchies can handle all).
j/k

Dynamite

2009-05-19 22:21:27

Also Niels, do i have to download dic.ini every time?

T~M

nielsie95

2009-05-19 22:22:22

No, you should be fine after the first time. :)

Shady?

2009-05-19 23:02:47

I'm waiting for that tutorial Nielsie! :) Cool plugin, thanks a lot!

[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 5 minutes and 49 seconds
You have answered 102 questions
You have donated 1010 grains of rice
Accuracy: 99,0196078431373%

Shuttleu

2009-05-20 01:11:50

so far
[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 6 minutes and 36 seconds
You have answered 153 questions
You have donated 910 grains of rice
Accuracy: 59.4771241830065%

~shut

EDIT:
[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 1 hours, 36 seconds
You have answered 1417 questions
You have donated 10000 grains of rice
Accuracy: 70.5716302046577%


im now restarting to see if i can get a better percentage

EDIT2: im gonna leave it on over night to try and get a large ini file

nielsie95

2009-05-20 10:38:35

Nice :)
I take it you didn't download Freddy's database?

Anyway, I reuploaded a new version which doesn't hide the dialog behind Appa :p

Shuttleu

2009-05-20 10:45:05

i did download freddys database but it doesn't seem to work :/

this is what it is now :p
[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 8 hours, 35 minutes and 6 seconds
You have answered 12387 questions
You have donated 97800 grains of rice
Accuracy: 78.953741826108%

~shut

nielsie95

2009-05-20 10:53:07

Oh well, still a nice result in my opinion :D

Shuttleu

2009-05-20 17:28:55

[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 15 hours, 19 minutes and 43 seconds
You have answered 22103 questions
You have donated 174560 grains of rice
Accuracy: 78.9757046554766%

still goin

~shut

EDIT: i accidently closed appa
[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 18 hours, 31 minutes and 10 seconds
You have answered 26571 questions
You have donated 209890 grains of rice
Accuracy: 78.9921342817357%

MylesMadness

2009-05-20 23:20:34

It won't click anything

nielsie95

2009-05-21 01:11:10

So.. it starts, but does nothing? No debug?

MylesMadness

2009-05-21 04:09:59

From: nielsie95
So.. it starts, but does nothing? No debug?
No it starts, the window opens. But it doesn't click anything. It just says Question:Blah Answer:Blah

Sandstorm

2009-05-21 05:17:06

It shouldn't click anything, as it doesn't use the mouse :P.

~Sandstorm

MylesMadness

2009-05-21 05:59:53

From: Sandstorm
It shouldn't click anything, as it doesn't use the mouse :P.

~Sandstorm
I mean the page doesn't change or the rice count go up

Sandstorm

2009-05-21 06:08:54

Oh. No idea then.

~Sandstorm

Shuttleu

2009-05-21 10:24:28

delete these
 if (not FileExists(ScriptPath + DicFile)) then
begin
case GetApplication.MessageBox('Do you want to download the latest dictionary?', 'Confirm', 4) of
mrYes: UpdateDict;
end;
end;

~shut

nielsie95

2009-05-21 15:12:20

From: MylesMadness
I mean the page doesn't change or the rice count go up


That's pretty weird :\

Nice report btw, shuttle! :)

Shuttleu

2009-05-21 21:02:28

From: nielsie95

Nice report btw, shuttle! :)


post it on the first post

~shut

EDIT: came up with a error loading page

[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 18 hours, 52 minutes and 27 seconds
You have answered 27112 questions
You have donated 214370 grains of rice
Accuracy: 79.0683092357628%

mabey make it so if it comes up with a error page then it will refresh the page a few times so it doesnt stop

~shut

Sandstorm

2009-05-22 00:58:12

Got an error loading the page as well:

[-=-=-=-=-=-=- Niels95''s Rice Donator -=-=-=-=-=-=-]
You have been donating for 4 hours, 28 minutes and 46 seconds
You have answered 14297 questions
You have donated 142970 grains of rice
Accuracy: 100%

~Sandstorm

mrpickle

2009-05-22 04:33:08

I'm having the same problem as Sandstorm.
It spams my Debug box with the correct answer non-stop, and it runs… it just wont interact with the page.

Your fix didn't work for me… and it doesn't seem like would either. Just removed a update?

Edit:
here's my progress report so far.

[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 4 minutes and 22 seconds
You have answered -1 questions
You have donated 0 grains of rice

Shuttleu

2009-05-22 10:08:51

oh… i didnt realise it was spamming the debug

~shut

nielsie95

2009-05-22 13:41:19

From: mrpickle
I'm having the same problem as Sandstorm.
It spams my Debug box with the correct answer non-stop, and it runs… it just wont interact with the page.

Your fix didn't work for me… and it doesn't seem like would either. Just removed a update?

Edit:
here's my progress report so far.

[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 4 minutes and 22 seconds
You have answered -1 questions
You have donated 0 grains of rice[/QUOTE]

That's weird :( What version of Windows/Internet Explorer do you have?

Shuttleu

2009-05-22 19:21:05

well just so you know
i use windows 7 and i have IE8
i dont use IE btw

~shut

MylesMadness

2009-05-23 03:34:10

IE 6 here

Sandstorm

2009-05-23 03:37:54

Mozilla Firefox > All.

~Sandstorm

MylesMadness

2009-05-23 03:50:52

From: Sandstorm
Mozilla Firefox > All.

~Sandstorm

He's asking because the plugin uses the IE thingy

Shuttleu

2009-05-23 04:10:18

it keeps closing itself
this time at 13 hours
[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 12 hours, 59 minutes and 50 seconds
You have answered 18710 questions
You have donated 187090 grains of rice
Accuracy: 99.9946552645644%

~shut

mrpickle

2009-05-23 07:11:56

my IE is version 6.0.2900.5512… still has that same problem.

nielsie95

2009-05-23 11:10:48

I'm on IE 7. It would be weird if it didn't work with IE 6 though, I'll look into it. I'll also look into your problem Shuttleu (though I doubt I'll find anything).

Shuttleu

2009-05-23 11:41:19

i shall run it again and see what happens

~shut

EDIT: 27 hours so far

nielsie95

2009-05-24 18:48:55

27 hours! Sounds good =D

Shuttleu

2009-05-24 20:20:19

now its upto 32
its going so much better than before i restarted my computer :D

~shut

EDIT: it was still going but i stopped it because i wanted to install the latest ubuntu
[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 34 hours, 52 minutes and 1 seconds
You have answered 48829 questions
You have donated 488280 grains of rice
Accuracy: 99.9979520366995%

nielsie95

2009-05-25 00:39:31

Nice!

MylesMadness

2009-05-25 05:05:17

I got IE 8 and now it works. I also reformated so I don't know what did it.

Wizzup?

2009-05-25 14:08:12

From: Shuttleu
now its upto 32
its going so much better than before i restarted my computer :D

~shut

EDIT: it was still going but i stopped it because i wanted to install the latest ubuntu
[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 34 hours, 52 minutes and 1 seconds
You have answered 48829 questions
You have donated 488280 grains of rice
Accuracy: 99.9979520366995%[/QUOTE]

Nice!

( Sorry Niels… :p )

MylesMadness

2009-05-25 17:56:39

[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 12 hours, 51 minutes and 25 seconds
You have answered 28631 questions
You have donated 286310 grains of rice
Accuracy: 100%[/quote]
Stopped because my computer was lagging like fuck

mrpickle

2009-05-28 02:03:04

Updated to IE 8. Works now =D. i'll post proggy when it stops.

edit: my internet stopped on me =\. Least it works now =D
You have been donating for 6 minutes and 2 seconds
You have answered 172 questions
You have donated 1720 grains of rice
Accuracy: 100%

nielsie95

2009-05-31 01:15:53

Awesome, thanks guys! I guess it's not compatible with IE 6 then..

mrpickle

2009-06-01 06:23:38

Btw. how do really know that we are getting rice donated to ppl? any site can just claim such.

Shuttleu

2009-06-01 13:42:36

yes they can
you just have to trust them
and even if they aren't donating you can still have a good feeling inside that you may have helped someone

~shut

EDIT: and they also say that they are in partnership with WFP which if they are lying about i'm guessing they can get in a lot of trouble

mrpickle

2009-06-01 23:27:58

[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 12 hours, 20 minutes and 18 seconds
You have answered 25673 questions
You have donated 256730 grains of rice
Accuracy: 100%
internet stopped.

and what about this from their site FAQ?
[QUOTE]
Couldn.t I just write a computer program to play all day and give a lot of rice that way?

There are two problems with this. First, it overloads our servers so that real people can.t play and learn. Second, without real people playing and the resulting company sponsorship, no money would be generated and we could not give any rice at all.[/QUOTE]

nielsie95

2009-06-02 00:53:50

Nice proggy :)

Yeah, well the bots they are talking about (that overload their servers) can get up to 4k grains per minute. This script should be more like a normal person.

Harry

2009-06-02 01:10:23

From: nielsie95
Nice proggy :)

Yeah, well the bots they are talking about (that overload their servers) can get up to 4k grains per minute. This script should be more like a normal person.

You mean like this?
http://www.villavu.com/forum/showpost.php?p=570240&postcount=26
http://i41.tinypic.com/e01pty.png

Shuttleu

2009-06-02 01:13:40

From: Harry
You mean like this?
http://www.villavu.com/forum/showpost.php?p=570240&postcount=26
http://i41.tinypic.com/e01pty.png

foxkeh :)

~shut

nielsie95

2009-06-02 01:15:15

Yup, that one's pretty cool :)

Sandstorm

2009-06-02 23:07:44

Lol @ /f/.

~Sandstorm

Harry

2009-06-02 23:08:34

From: Sandstorm
Lol @ /f/.

~Sandstorm

Where else am I supposed to get my [H]?

Sandstorm

2009-06-03 00:49:41

If you're talking about what I think you are, /h/?

~Sandstorm

Narcle

2009-06-03 02:41:46

appa owns <3 it

You know what I'm talking about. ;)

mrpickle

2009-06-16 20:28:37

[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 4 hours, 57 minutes and 25 seconds
You have answered 11197 questions
You have donated 111950 grains of rice
Accuracy: 99.982138072698%

&

[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 5 hours, 8 minutes and 15 seconds
You have answered 11755 questions
You have donated 117520 grains of rice
Accuracy: 99.9744789451297%

nielsie95

2009-06-16 20:49:00

Nice, thank you :)

Mr.Klean

2009-06-16 21:47:18

Hmm, I think I am going to set this up on my torrent box since it doesn't use that much CPU. Nielsie, 100+ hour proggie coming soon :)

Edit: Bah, I have to fix a few things first. Won't be up till tonight.

samm

2009-06-19 16:57:08

Very nice idea!
I'll get a proggie done soon!
Charitable Autos ftw.

mrpickle

2009-10-01 06:37:45

I've just decided to run your script again… and since i'm dling alot of other stuff atm, i'll aim for 100+ hour proggy (gave up on RS botting). will post it. (I just started).

Sandstorm

2009-10-02 05:50:55

[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 22 hours, 26 minutes and 25 seconds
You have answered 70480 questions
You have donated 704780 grains of rice
Accuracy: 99.9971623155505%[/code]

Still going.

~Sandstorm

mrpickle

2009-10-05 23:54:17

Okok… the 100 hour proggy is a fail. The script kept stopping at 9 hours ish. I restarted it about 4 times. so, about it only ran about 35 hours. =\

Dont think it's a script problem, probably just my computer.

3Garrett3

2009-10-06 00:07:12

I didn't even know about this. Is freerice even legit? :\

Running it anyway.

Heres a proggy

[php]
[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 5 hours, 11 minutes and 50 seconds
You have answered 16719 questions
You have donated 167190 grains of rice
Accuracy: 100%
[/php]

Then I got this:

[code]
Appa: Form is not available!
Appa: Form is not available!
Successfully executed
[/code]

And Appa closed. So I guess it quit maybe. Who knows why..

wesleyxD

2009-11-23 09:44:46

[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 1 hours, 43 minutes and 7 seconds
You have answered 7001 questions
You have donated 69940 grains of rice
Accuracy: 99,9000142836738%

swisspking

2010-03-19 17:01:02

my best so far:

[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 5 hours, 52 minutes and 27 seconds
You have answered 21279 questions
You have donated 212790 grains of rice
Accuracy: 100%[/CODE]

Screen: [URL="http://img46.imageshack.us/img46/5177/ricepic.png"]http://img46.imageshack.us/img46/5177/ricepic.png[/URL]

Which is about.. 5.2kg rice :)

~Swiss

nielsie95

2010-03-19 17:59:35

Nice, nice :)

Andy

2010-08-02 16:39:56

Does anyone have a backup of Freddies dictionary? It is no longer available at that web location :(

(sorry for grave digging, I think it's a great cause)

EDIT:
A few minutes later it appears … ok then ….

EDIT:
The dictionary is quite accurate
[-=-=-=-=-=-=- Niels95's Rice Donator -=-=-=-=-=-=-]
You have been donating for 5 minutes and 34 seconds
You have answered 100 questions
You have donated 1000 grains of rice
Accuracy: 100%[/CODE]

Shuttleu

2010-08-02 16:41:30

i have it somewhere, give me a min

~shut

EDIT: nope, i thought it was in the scripts folder somewhere, but it isnt :(

Sex

2010-08-02 16:49:15

Um, it is available there..? http://freddy1990.com/freerice.php?html=enabled

Shuttleu

2010-08-02 16:51:39

From: Sex
Um, it is available there..? http://freddy1990.com/freerice.php?html=enabled

yes it is, but that wasnt available a couple of mins ago… :(

~shut