Jump to content
SSForum.net is back!

Recommended Posts

Posted

Source is attached. If you don't know how to compile Java, don't bother.

 

Put in your bot's name / pw in zoneman.java line 119.

Edit casino settings by editing (static final) values in Casino.java

If you want to use the !admin command, put your name in all caps in Casino.java, line 93. all the command does is print the total amount owed to all players.

 

Some things to watch out for is your bot running out of money (you'll need to seed some money to start out with, I usually tried to make sure that there was always at least 10 times the maximum bet in the bot at all times). If the bot runs out of money, people will !cashout and be disappointed when they lose their credits and never get money.

 

Also, sometimes the bots have no data loaded, you'll need to restart them. They restart automatically when connected, although there's a memory leak somewhere (this behavior was sort of hacked together), so when the !@#$%^&*le of the chatnet says like 20 or more (indicateing it's restarted 20 times), you'll probably want to restart the process, send the message ?quit to actually quit the program. Sometimes when hs goes down I've seen this get into the hundreds, and my computer would run like crap; be careful.

casino_bots.zip

Posted
Tweaked one to run from a console, it should now be up all the time as Casino.bot

_UU___UU__SSSSS____AAA____UU___UU__SSSSS____AAA___

_UU___UU_SS_______AAAAA___UU___UU_SS_______AAAAA__

_UU___UU__SSSSS__AA___AA__UU___UU__SSSSS__AA___AA_

_UU___UU______SS_AAAAAAA__UU___UU______SS_AAAAAAA_

__UUUUU___SSSSS_AA____AA___UUUUU___SSSSS_AA____AA

J.C. Dento> prime example of why america will never be a world super power.

Moscato> d1 is mad he will never have a job outside subspace

I can't see this because I turned signatures off. ps VT

Posted
nice nice

next person to message me about a reset... and i'll reset -Dr Brain

Sushi Bric> yup

cyanyde> heh

Lanvalk> I'm tempted to message Doc just to trigger one...

ok... that's it... blame picano -Dr Brain

Please Stand By. Zone going down for less than 15 seconds.

The server is shutting down now!

picano2.0> o.O

WARNING: Disconnected from server

  • 2 months later...
Posted

LOL

 

i decided to bump this super old topic back into existance biggrin.gif

so what IS a casino bot??

IN HYPERSPACE, WE CARE!!

 

Deathmonger> every man wants a girl with three breasts

BloodVenom> O_o

 

Cerium: more grinding = more gooder

Posted

you use comands that make you use YOUR money to gamble.... like playing heads/tails and blackback... (not too sure since i didn't want to use y money blum.gif )

 

and the bot also stored moneyfor players

http://i466.photobucket.com/albums/rr22/3vilDoom/Evil-BW-Sig.gif
  • 1 month later...
Posted

Found a bug which allows betting less-than-minimum amounts.

 

Whenever you place a bet on a game, the bot does a check to make sure it is within the bet limit. However, in a separate process, if you place a bet larger than your current balance, it would then lower it to your existing balance, but WITHOUT checking whether the newly-lowered amount is also above the minimum.

 

Took a look at source code... The "if (money < MIN_BET || money > MAX_BET)" condition check should be executed after the "if (money > ppd.credits)", not before, or re-executed after.

 

----

 

In other news...

 

I downloaded your bot. I created a java project and included your .java files in it, then compiled the project. It compiles fine, however, it does not produce any binary files, just a lot of .class files. I'm not sure how to execute those. I tried running "java Casino" from my console, when at the project directory, and it didn't work.

 

I was able to execute the project from within my java IDE (didn't manage to find the steps it took so I can re-run it outside of the IDE). Besides, I then encountered the following errors:

 

I <chatnet> Loading v.0.3.9
E <config> chatnet.conf (The system cannot find the file specified)
Error loading: java.io.FileNotFoundException: PlayerData.xml (The system cannot find the file specified)
WARNING: Connection timed out: connect (1TCP)
Reconnecting in 5 seconds...

(Those messages then just keep looping).

 

The GUI does load, and says "type ?exit to exit", but typing anything in it doesn't do anything, and the bot is not showing up in HS or any other zone I try to run it in.

 

Please help.

If you do not bother to read and understand the entirety of my posts, please do not bother to reply to them either.
Posted

you want to run the class with "public static void main(String[] args)" in it, in this case, chatnet

 

also make sure the ip / port / name / pw are correct in zonemain.java

 

void connectToHS()
{
String address = "65.111.166.54";
int	port	= 8500;

String name  = (Casino.IS_LOW ? "FriendlyLow" : "FriendlyBaK");
String p!@#$%^&*  = "";

 

and make sure hs allows chatnet connections by trying to connect on a normal chatnet client.

Posted

I got it running (as in launching the window), but I still can't connect to zones. I tried chatnet, it works fine, I can connect and chat to numerous zones, but connecting to those sames zones with the casino bot (same IP/port, username/p!@#$%^&*) results in the same error message as I posted above.

 

Also, why does it say that it can't find chatnet.conf and PlayerData.xml?

If you do not bother to read and understand the entirety of my posts, please do not bother to reply to them either.
Posted

wow. what r u guys even talking about???

 

anyway, how do u place bets? i didnt know u could do that :/

IN HYPERSPACE, WE CARE!!

 

Deathmonger> every man wants a girl with three breasts

BloodVenom> O_o

 

Cerium: more grinding = more gooder

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...