Bak Posted October 21, 2006 Report Posted October 21, 2006 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.javaIf 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 Quote
»D1st0rt Posted October 22, 2006 Report Posted October 22, 2006 Tweaked one to run from a console, it should now be up all the time as Casino.bot Quote
Fat Cat Posted October 22, 2006 Report Posted October 22, 2006 Oh great, d1's gonna rig it so BW members always lose Quote
Deathboy-evil Posted October 22, 2006 Report Posted October 22, 2006 Thanks tips but I already told him if he does that than I'm going to hax it and make it malfunction into giving me all the cash Quote
JoWie Posted October 22, 2006 Report Posted October 22, 2006 /me waits for 20 different bots to show up Quote
Deathboy-evil Posted October 22, 2006 Report Posted October 22, 2006 Well that's if people are smart enough to know how to configure them, and if they shall succeed. Than it will be chaos. Quote
Animate Dreams Posted October 24, 2006 Report Posted October 24, 2006 Woo, checking this out now. Bak, you own at this kind of thing. Quote
Deathboy-evil Posted October 25, 2006 Report Posted October 25, 2006 Yeppers, lol too bad we can't get the casino bot to host its own trivia for everyone through a command lol. Quote
WallBomb Posted October 26, 2006 Report Posted October 26, 2006 well if you wanna waste your money thats good way Quote
Shia' Tan Posted January 9, 2007 Report Posted January 9, 2007 LOL i decided to bump this super old topic back into existance so what IS a casino bot?? Quote
Evil Doom Posted January 9, 2007 Report Posted January 9, 2007 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 ) and the bot also stored moneyfor players Quote
2d spaceship gamer Posted February 14, 2007 Report Posted February 14, 2007 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. Quote
Bak Posted February 14, 2007 Author Report Posted February 14, 2007 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. Quote
2d spaceship gamer Posted February 14, 2007 Report Posted February 14, 2007 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? Quote
Shia' Tan Posted February 15, 2007 Report Posted February 15, 2007 wow. what r u guys even talking about??? anyway, how do u place bets? i didnt know u could do that :/ Quote
2d spaceship gamer Posted February 16, 2007 Report Posted February 16, 2007 I left you a PM Bak, please take a look. Quote
st. killa Posted February 16, 2007 Report Posted February 16, 2007 wow i do not get one word yall said lol it seems your talking in a foreign language Quote
Evil Doom Posted February 16, 2007 Report Posted February 16, 2007 it's all coding related stuff, good idea is not to post if u dont know what's going on Quote
Shia' Tan Posted February 16, 2007 Report Posted February 16, 2007 we r trying to figure out whats going on Quote
Evil Doom Posted February 16, 2007 Report Posted February 16, 2007 you cant really learn how to code in a day... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.