mredge73
Member
[SIZE=+1]GambleBot 20100112GAM
Tired of losing your meat to the Penguin Mafia?
Introducing GambleBot, your very own clan run casino!
Now your clan can take your hard earned meat!
Current Games:
CoinFlip
Similar to the MMG game except that all bets are placed against the house (bot). Bet is placed through kmail and the coin is flipped, you call heads or tails. If you win you double your bet -5%, if you lose you get nothing. Simple enough?
Player will kmail the bot. In the text box they will use "50:50" to choose the CoinFlip game and then call either "heads" or "tails", if player does not call it default is heads.
example: 50:50 heads
[/SIZE][SIZE=+1]ShellGame
Very similar to the CoinFlip game but with a 3 sided die or shell game. So the you will have 1/3 chance to win 3*Bet - 5%house cut.
Player will kmail the bot. In the text box they will use "Shell" or "shell" to choose the Shell game and then pick their shell by entering "1", "2", or "3", if player does not call it default is 2 (middle shell).
example: Shell 1
They will include the meat they want to bet in the kmail. The player will be notified of the result through kmail and PM. Clan reply is also used to broadcast result in the clan channel. The house takes a cut of 5% off of all winnings, if this is a clan run bot then you can choose to donate it back to your clan as a fund raiser. Processed kmails are automatically deleted afterward.[/SIZE][SIZE=+1]
[/SIZE][SIZE=+1]
Default Bot Use:
The default logic is that the bot will start up when called and parse your Kmail for players. If it finds players it will execute the game. All processed kmails are deleted upon completion. 0 meat bets and >maxbet bets are sent back. Bot will repeat this every 3 minutes until 5 minutes before rollover. At that time the bot will execute the exit command and terminate mafia. Typing Abort at any time will halt script execution. The script can also be imported into another and the game can be called as a function.
[/SIZE][SIZE=+1]
[/SIZE][SIZE=+1]Player statistics are kept at GambleBotPlayerStats.txt, in the form of: PlayerName Win Loss MeatWon MeatLost
example: MyBot 10 20 20000 100000[/SIZE]
[SIZE=+1]Three vars are used and can be changed in your player_vars.txt:
MrEdge73_CoinFlipMaxBet: this sets the max single bet, default 20k
MrEdge73_ShellGameMaxBet: this sets max single bet, default 20k
MrEdge73_KarmaExempt:if true the bot will use dense meat stacks from the clan stash for backup funding in the case that the bot does not have enough to pay the winner, must be karma exempt to do this, default is false[/SIZE]
[SIZE=+1] Known Issue:
Currently if a player wins and the bot cannot pay them, the bot ignores the kmail and moves to the next one. The Kmail is not flagged as a loser but the kmail has to win again on the next iteration to get paid. This could be considered dishonest because in order for the player to win, the bot has to have the meat to cover the winnings.
If the bot is not karma exempt I recommend that you keep 10xMaxBet in your bot's inventory at all times to eliminate this issue.[/SIZE]
[SIZE=+1][/SIZE]
[SIZE=+1]
Required Scripts that must be placed in you script folder:
[/SIZE]MrEdge73's Support Script -- Item Lists (Beta).ash
MrEdge73's Support Script -- Functions (Beta).ash
MrEdge73's Support Script -- ClanAdministrator(LITE).ash
Zlib.ash
[SIZE=+1]
[/SIZE]
Tired of losing your meat to the Penguin Mafia?
Introducing GambleBot, your very own clan run casino!
Now your clan can take your hard earned meat!
Current Games:
CoinFlip
Similar to the MMG game except that all bets are placed against the house (bot). Bet is placed through kmail and the coin is flipped, you call heads or tails. If you win you double your bet -5%, if you lose you get nothing. Simple enough?
Player will kmail the bot. In the text box they will use "50:50" to choose the CoinFlip game and then call either "heads" or "tails", if player does not call it default is heads.
example: 50:50 heads
[/SIZE][SIZE=+1]ShellGame
Very similar to the CoinFlip game but with a 3 sided die or shell game. So the you will have 1/3 chance to win 3*Bet - 5%house cut.
Player will kmail the bot. In the text box they will use "Shell" or "shell" to choose the Shell game and then pick their shell by entering "1", "2", or "3", if player does not call it default is 2 (middle shell).
example: Shell 1
They will include the meat they want to bet in the kmail. The player will be notified of the result through kmail and PM. Clan reply is also used to broadcast result in the clan channel. The house takes a cut of 5% off of all winnings, if this is a clan run bot then you can choose to donate it back to your clan as a fund raiser. Processed kmails are automatically deleted afterward.[/SIZE][SIZE=+1]
[/SIZE][SIZE=+1]
Default Bot Use:
The default logic is that the bot will start up when called and parse your Kmail for players. If it finds players it will execute the game. All processed kmails are deleted upon completion. 0 meat bets and >maxbet bets are sent back. Bot will repeat this every 3 minutes until 5 minutes before rollover. At that time the bot will execute the exit command and terminate mafia. Typing Abort at any time will halt script execution. The script can also be imported into another and the game can be called as a function.
[/SIZE][SIZE=+1]
[/SIZE][SIZE=+1]Player statistics are kept at GambleBotPlayerStats.txt, in the form of: PlayerName Win Loss MeatWon MeatLost
example: MyBot 10 20 20000 100000[/SIZE]
[SIZE=+1]Three vars are used and can be changed in your player_vars.txt:
MrEdge73_CoinFlipMaxBet: this sets the max single bet, default 20k
MrEdge73_ShellGameMaxBet: this sets max single bet, default 20k
MrEdge73_KarmaExempt:if true the bot will use dense meat stacks from the clan stash for backup funding in the case that the bot does not have enough to pay the winner, must be karma exempt to do this, default is false[/SIZE]
[SIZE=+1] Known Issue:
Currently if a player wins and the bot cannot pay them, the bot ignores the kmail and moves to the next one. The Kmail is not flagged as a loser but the kmail has to win again on the next iteration to get paid. This could be considered dishonest because in order for the player to win, the bot has to have the meat to cover the winnings.
If the bot is not karma exempt I recommend that you keep 10xMaxBet in your bot's inventory at all times to eliminate this issue.[/SIZE]
[SIZE=+1][/SIZE]
[SIZE=+1]
Required Scripts that must be placed in you script folder:
[/SIZE]MrEdge73's Support Script -- Item Lists (Beta).ash
MrEdge73's Support Script -- Functions (Beta).ash
MrEdge73's Support Script -- ClanAdministrator(LITE).ash
Zlib.ash
[SIZE=+1]
[/SIZE]
Attachments
Last edited: