Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; To setup the script for use you need to create a bidding.txt file and a bidder.txt file and point each line that references to them to their location on your computer.
- ; Can receive bets via PM, recording the bet to a file with their nick and also recording their nick without their bet to a seperate file.
- on *:TEXT:!Bet *:*: {
- /write C:\Users\shift\Dropbox\Scripts\bidding.txt $nick bid $2- $+
- /write C:\Users\shift\Dropbox\Scripts\bidder.txt $nick has entered a bet.
- /msg $nick Your bid of $2- has been entered!
- }
- ; Prints out the contents of the bidder file to show who has entered bets without revealing them.
- on *:TEXT:!checkbets:*: {
- /msg $chan The following players have entered their bets:
- /play $chan C:\Users\shift\Dropbox\Scripts\bidder.txt 10
- }
- ; Silently reset the betting without revealing bets.
- on *:TEXT:!Reset:*: {
- /msg $chan 4,1Betting has been reset!
- /write -c C:\Users\shift\Dropbox\Scripts\bidding.txt
- /write -c C:\Users\shift\Dropbox\Scripts\bidder.txt
- }
- ; Prints out the content of bidding.txt to the channel and clears both text files.
- on *:TEXT:!Resolve:*: {
- /msg $chan 4,1Betting is over!
- /play $chan C:\Users\shift\Dropbox\Scripts\bidding.txt 10
- /write -c C:\Users\shift\Dropbox\Scripts\bidding.txt
- /write -c C:\Users\shift\Dropbox\Scripts\bidder.txt
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement