|
PrestoPimp Apprentice
Joined: 18 Sep 2001 Posts: 175 Location: USA
|
Posted: Tue Dec 18, 2001 5:10 am
Any1 got a gamblin bot? |
Does anyone have a gambling bot that they would be willing to share with me? if so email the .mud to jfarris1@tampabay.rr.com and post the description and functions on this page.. thanks much
-Presto
For tomarrow is another day, and other days come but 6 times a week. |
|
|
|
Acaila Apprentice
Joined: 30 Aug 2001 Posts: 187 Location: Netherlands
|
Posted: Tue Dec 18, 2001 11:55 am |
If you tell us what exactly you want it to do, then we can probably help you a lot better, maybe even create one for you.
Acaila |
|
|
|
PrestoPimp Apprentice
Joined: 18 Sep 2001 Posts: 175 Location: USA
|
Posted: Tue Dec 18, 2001 10:29 pm |
Well.. I want it to have people give my bot gold, and it checks to see if the gold is there.. and then it keeps a toal of the gold they give me.. and will let them cash out their account.. and I want it to deal blackjack.. be a slot machine and poker bot.. maybe one bot per thing with a bank bot to let the bots know if the person has money in it.. any help is appreciated.
For tomarrow is another day, and other days come but 6 times a week. |
|
|
|
Crymson4 Novice
Joined: 20 Nov 2001 Posts: 35 Location: USA
|
Posted: Wed Dec 19, 2001 5:39 pm |
What you are asking for is pretty advanced. Keeping track of gold is simple enough, if you can put your gold amount in your prompt. When someone gives you gold, do a command (I save, so it genereates a CR) and have it check your old gold #VAR vs. the new gold #VAR looks something like this.
#TRIGGER <%dG (rest of prompt here>
which contains #VAR CurGold %1
So now your CurGold is whatever you have.
Then set up another
#TRIGGER %w gives you %d gold coins
It's command list should be something like this:
#VAR Temp %2
#MATH NewGold @CurGold+@Temp
save
Then make yet another for
Saved... (or whatever your save text looks like)
It's command should be
#IF (@CurGold=@NewGold) {Do true stuff} {Do false stuff, like tell them to stop emoting gold}
Basically, the way that works is, Say you have 100,000 GP
Your prompt may look something like this:
<100000G 1455/1455HP 200/200MV>
So when zmud sees your prompt, it assigns 100000 to the variable CurGold
Then, you have a trigger set up when someone gives you some money. It looks like
Crymson gives you 50000 gold coins.
Here, your trigger assigns 50000 to the variable Temp. It then adds 100000 and 50000 (150000) and assigns that to the NewGold variable. Then it saves, to update the prompt.
On my MUD, my save text looks like this:
Saved...
So after it saves, your prompt should now read (if they gave you money)
<150000G 1455/1455HP 200/200MV>
Now the saved trigger is going to execute the following
If the CurGold variable equals the NewGold variable, then it'll do the true stuff, if it doesn't, it'll do the false stuff.
Now that is just to verify that they are giving you gold. Keep in mind, there are a LOT more variables you're going to need to keep track of, like player name, how much that player has given you, etc etc.
I made a casino craps game for Realms of Despair, and it took me 3 weeks to get it working fully to my satisfaction (Speaking of which, thanks to all you guys who helped me along in my time(s) of ignorance and stupidity!!!)
Because it took so long to make, and is quite involved, I wouldn't expect any of us who have made gambling bots to just give the code away.
My suggestion, write out a flow chart of what exactly you want it to do, start small, if you want to add more players, it's easy enough to cut/paste. Keep in mind, if a lot of people play, depending on the MUD, it could flood you off.
But I digress, and have rambled on quite enough.
Hope this helps you, and good luck.
-=Crymson
Reality is the effect of alcohol deficiency |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Dec 20, 2001 8:31 pm |
There have been quite a few attempts at doing gambling bots on this forum. I'd suggest doing a search (there's a link at the top of this page). You might also check the Completed Scripts forum.
LightBulb |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|