Buy Brownie Points
Forumwarz is the first "Massively Single-Player" online RPG completely built around Internet culture.

You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.

You need to be logged in to post and to see the uncensored versions of these forums.

Log in or Learn about Forumwarz

Civil Discussion
Switch to Role-Playing Civil Discussion
Business blackjack-o-matic

FalconFour

Avatar: 69421 Wed Aug 12 05:13:59 -0400 2009
6

Level 35 Troll

Minty Fresh

This may prove useful, perhaps to log which function it’s going into and out of, and what internal data it’s thinking.

http://diveintogreasemonkey.org/debug/gm_log.html

I use a function like that in debugging my PHP scripts, but in PHP, I can just kill execution and dump internal information with one simple line. Javascript isn’t so simple…

Inertia

Avatar: 60995 Fri Apr 03 12:59:05 -0400 2009
34

[Shii is gay]

Level 35 Troll

also wow i have no male reproductive organ

Does it automatically stop playing after 20 wins?

FalconFour

Avatar: 69421 Wed Aug 12 05:13:59 -0400 2009
6

Level 35 Troll

Minty Fresh

Supposed to. But it really ends up stopping after maybe 1 or 2.

FalconFour edited this message on 12/08/2008 12:46AM

meeeeeeeeee

Avatar: 15443 2010-04-04 18:27:25 -0400
49

[Brainfreeze]

Level 35 Troll

Sneakily vicious and filled with virtuous pit bulls.

I suggest the antifreeze reward for blackjack is removed.

FalconFour

Avatar: 69421 Wed Aug 12 05:13:59 -0400 2009
6

Level 35 Troll

Minty Fresh

Just crashed again at the initial hand display, with the two errors pasted earlier.

It almost always seems to stop at the hand display, possibly due to delay in loading the images. Do you have it waiting to load, or does it just rapid fire commands? Too lazy to check the code, but that may be the problem… server is responding too slow and the script is crashing when what it’s expecting isn’t right under its nose…

Neona

Avatar: 88117 Sat Feb 07 19:37:29 -0500 2009
15

[Board of Directors]

Level 43 Camwhore

Serious future peenwhore. XO!

read the updated main post. unedited, the script plays to a max of FIVE wins, not the full 20 for antifreeze. Though due to not working it usually doesn’t get there. and it’s just betting 1 flezz too so it’s safe to try. I will not ever change it, since it is my opinion that if you can’t change the values yourself (they are not that hard to find), then you don’t deserve to benefit from it.

Hopefully i can release an updated version that at least plays correctly soon.

Neona

Avatar: 88117 Sat Feb 07 19:37:29 -0500 2009
15

[Board of Directors]

Level 43 Camwhore

Serious future peenwhore. XO!

FalconFour Posted:

Just crashed again at the initial hand display, with the two errors pasted earlier.

It almost always seems to stop at the hand display, possibly due to delay in loading the images. Do you have it waiting to load, or does it just rapid fire commands? Too lazy to check the code, but that may be the problem… server is responding too slow and the script is crashing when what it’s expecting isn’t right under its nose…

it’s waiting, but i think there is a bug in how it waits, though i haven’t figured it out yet. Also, it would be impossible to really do it too fast, since the method the script uses is to trick the browser into thinking you have actually clicked the links, and you can’t click something that’s not there. But the whole “command is null” thing seems to indicate that. If anyone has any idea what the heck that error is, that would be really helpful, since i don’t even really know where the error is occuring properly.

Neona

Avatar: 88117 Sat Feb 07 19:37:29 -0500 2009
15

[Board of Directors]

Level 43 Camwhore

Serious future peenwhore. XO!

meeeeeeeeee Posted:

I suggest the antifreeze reward for blackjack is removed.

I think it should just be that the minimum bet is level scaled, so you have to bet like ~10% of your flezz to get antifreeze. The problem is more that 10,000 becomes relatively insignificant at higher levels.

FalconFour

Avatar: 69421 Wed Aug 12 05:13:59 -0400 2009
6

Level 35 Troll

Minty Fresh

Well, yeah, it can only click an item that exists, but it’s not going to wait on it… it’s just going to throw an error and crash out. So if it tries to find and click an element that doesn’t exist…

I think you should add “GM_log(‘Taking choice: ‘+text);” to function takeChoice(text), then keep the error log on top while it runs, see where your error lies.

Neona

Avatar: 88117 Sat Feb 07 19:37:29 -0500 2009
15

[Board of Directors]

Level 43 Camwhore

Serious future peenwhore. XO!

FalconFour Posted:

Well, yeah, it can only click an item that exists, but it’s not going to wait on it… it’s just going to throw an error and crash out. So if it tries to find and click an element that doesn’t exist…

I think you should add “GM_log(‘Taking choice: ‘+text);” to function takeChoice(text), then keep the error log on top while it runs, see where your error lies.

updated it to log that stuff, among other things. Tweaked some other stuff too, though it’s not working much better yet.

EDIT: actually, since it text searches the choices to figue out which one to “click”, i don’t think that’s where the problem lies

Neona edited this message on 12/08/2008 1:55AM

FalconFour

Avatar: 69421 Wed Aug 12 05:13:59 -0400 2009
6

Level 35 Troll

Minty Fresh

Hm. Well, I’m doing my own sort of debugging, but it’s sort of hard to follow Javascript within a function construct like that. It’s quite hard to keep a function chain running…

Perhaps a main loop, and branching out to functions, would be more suitable? Then again, it’s kinda late in the game to restructure the program… I’ll just keep on debuggan’ away.

Neona

Avatar: 88117 Sat Feb 07 19:37:29 -0500 2009
15

[Board of Directors]

Level 43 Camwhore

Serious future peenwhore. XO!

well, yeah

but javascript happens to lack a normal wait function, so that ends up bieng very difficult. I’ll try to reorder the code logically though.

Right now it’s behaving pretty strangely for me…

Neona edited this message on 12/08/2008 2:06AM

FalconFour

Avatar: 69421 Wed Aug 12 05:13:59 -0400 2009
6

Level 35 Troll

Minty Fresh

Tubmail.

CaptainDDL

Avatar: 34340 2009-09-30 16:41:31 -0400
24

[Brainfreeze]

Level 63 Troll

Fran's Beautiful Lover XOXOXOXOXO

The script is hanging at the menu where you choose ‘Blackjack’ for me.

nevkick

Avatar: 16052 Thu Dec 04 03:36:13 -0500 2008
32

[Brainfreeze]

Level 35 Troll

Supports nuclear holocaust in the form of clan love.

Haxploitation?

FalconFour

Avatar: 69421 Wed Aug 12 05:13:59 -0400 2009
6

Level 35 Troll

Minty Fresh

HOLY ****, NEWS FLASH… THIS IS WRITTEN BY A GIRL.

That is so ****ing hot. =o

And damnit, fix one thing and break another, now it won’t run at all. Working on that… =(

Fran

Avatar: 34789 2015-08-06 21:23:09 -0400
40

[A Beautiful Place -
Out in the Country
]

Level 62 Camwhore

I wonder who is the bumbling idiot that still has fake currency on this website and actually spends

nevkick Posted:

Haxploitation?

Not a security hole, so no.

meeeeeeeeee

Avatar: 15443 2010-04-04 18:27:25 -0400
49

[Brainfreeze]

Level 35 Troll

Sneakily vicious and filled with virtuous pit bulls.

Neona Posted:

EDIT: actually, since it text searches the choices to figue out which one to “click”, i don’t think that’s where the problem lies

One solution to preventing your script working is to randomize the card names periodically, and just keep a server side translation table. So your script would work, but it would constantly make bad choices.

The only way around that would be to start recognising the images themselves.

shrtcat

Avatar: 79911 Sat Nov 15 22:45:44 -0500 2008
8

Level 25 Emo Kid

Posting from inside JB's bumhole

FalconFour Posted:

Click Install.

Window pops up saying “hay ur installing an uzerskript, plz wait 3 seconds to b shue u wer paying attneshun”.

You install.

You open sTalk with gamble bot.

Game plays itself.

Nope, I think it just opens up a new tab and shows me the script, maybe it’s because of pop-up blocker?

HAARP

Avatar: Server Hacker
5

Level 35 Hacker

“43 4f 44 45 20 4d 41 53 54 45 52”

Wouldn’t work properly. After the first answer, it would stop doing anything.

I increased both setTimeout in waitforchat to 10x the old amount ( 5000 ). Seems to work reliably now. It just played through a few games flawlessly. Good job! Now make an Incit bot Log in to see images!

I also suggest a cancel bumon.

shrtcat Posted:

Nope, I think it just opens up a new tab and shows me the script, maybe it’s because of pop-up blocker?

Install Greasemonkey first

HAARP edited this message on 12/08/2008 11:23AM
Internet Delay Chat
Have fun playing!
To chat with other players, you must Join Forumwarz or Log In now!