Advertisement
Shiftyeyesshady

Simple mirc bidding script

Jan 19th, 2020
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.31 KB | None | 0 0
  1. ; 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.
  2.  
  3. ; 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.
  4. on *:TEXT:!Bet *:*: {
  5.   /write C:\Users\shift\Dropbox\Scripts\bidding.txt $nick bid $2- $+
  6.   /write C:\Users\shift\Dropbox\Scripts\bidder.txt $nick has entered a bet.
  7.   /msg $nick Your bid of $2- has been entered!
  8. }
  9.  
  10. ; Prints out the contents of the bidder file to show who has entered bets without revealing them.
  11. on *:TEXT:!checkbets:*: {
  12.   /msg $chan The following players have entered their bets:
  13.   /play $chan C:\Users\shift\Dropbox\Scripts\bidder.txt 10
  14. }
  15.  
  16. ; Silently reset the betting without revealing bets.
  17. on *:TEXT:!Reset:*: {
  18.   /msg $chan 4,1Betting has been reset!
  19.   /write -c C:\Users\shift\Dropbox\Scripts\bidding.txt
  20.   /write -c C:\Users\shift\Dropbox\Scripts\bidder.txt
  21. }
  22.  
  23. ; Prints out the content of bidding.txt to the channel and clears both text files.
  24. on *:TEXT:!Resolve:*: {
  25.   /msg $chan 4,1Betting is over!
  26.   /play $chan C:\Users\shift\Dropbox\Scripts\bidding.txt 10
  27.   /write -c C:\Users\shift\Dropbox\Scripts\bidding.txt
  28.   /write -c C:\Users\shift\Dropbox\Scripts\bidder.txt
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement