Jump to content
SubSpace Forum Network

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

  • 2 months later...
  • 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.

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...