◢███◤      ◢██◤                            ◢██◤                            
     ◢██◤       ◢██◤                            ◢██◤                             
    ◢██◤       ◢██◤                            ◢██◤                              
   ◢██◤       ◢██◤                            ◢██◤                               
  ◢██◤       ◢██◤                            ◢██◤                                
◢███◤       ◢██◤                            ◢██◤                          ◥██◣   
◥███       ◢█████◣    ◢████████◤ ◢███████◤ ◢██◤ ◢██◤                 ◢██◤   ██◣  
 ███      ◢███████◣        ◢██◤ ◢██◤ ◢██◤ ◢███████◤                 ◢██◤    ███  
 ███     ◢██◤  ◢██◤ ◢████████◤ ◢██◤      ◢█████◣                   ◢██◤     ███  
 ███    ◢██◤  ◢██◤ ◢██◤  ███◤ ◢██◤ ◢██◤ ◢██◤◥███◣                 ◢██◤      ███  
 ◥██   ◢██◤  ◢██◤ ◢████████◤ ◢███████◤ ◢██◤  ◥███◣               ◢██◤       ███◣ 
  ◥██◣                                                          ◢██◤       ◢███◤ 
                                 ◢███◤ ◢███◤ ◢██◤  ◢██◤ ◢█████████◤       ◢██◤   
                                ◢█████████◤ ◢██◤  ◢██◤ ◢██◤  ████◤       ◢██◤    
                               ◢██◤◢█◤◢██◤ ◢██◤  ◢██◤ ◢██◤   ███◤       ◢██◤     
                              ◢██◤   ◢██◤ ◢████████◤ ◢█████████◤       ◢██◤      
                             ◢██◤   ◢██◤ ◢████████◤ ◢█████████◤      ◢███◤       

0002
HOW 2 MAKE A CASINO
n7ngqh
HELLO. THIS IS CAPITALISM SPEAKING, WELCOME TO MAKING A CASINO function(context, args) { ///prevent bad folks from doing bad things args = JSON.parse(JSON.stringify(args)); ///if the user has passed in an {amount:whatever} string if(args && args.amount) { ///Get a number. Math.random() is the only direct source of ~52-bit pseudo-randomness in the game var coin_flip = Math.random() < 0.5; ///eg if this script is i20k.casino, returns i20k var script_host = context.this_script.split('.')[0]; if(coin_flip) { ///transfer money from the person calling this script, to the script_host (that's you!) var res = #ms.accts.xfer_gc_to({to:script_host, amount:args.amount}); if(!res.ok) return "RUH ROH.\n\nLOOKS LIKE AYN RAND WAS RIGHT ALL ALONG\n\nGET MORE CAPITAL YOU LAZY ARSE"; return "OH NO!\n\nYOU LOSE!\n\nWHO COULD HAVE POSSIBLY GUESSED THAT CAPITAL WOULD FLOW FROM THE PROLETARIAT TO THE BOURGOISE!" } else { #fs.accts.xfer_gc_to_caller({amount:args.amount}); return "MY GOODNESS!\n\nYOU MANAGED TO FOREVER DEFEAT THE FORCES OF CAPITALISM!\n\nBET MORE NEXT TIME AND WIN ON THE MERITS OF YOUR OWN INDIVIDUALISTIC ACHIEVEMENTS!!"; } } return "HELLO THERE!!\n\nI AM A CASINO!!\n\nIF YOU'VE COME TO UNDERSTAND CAPITALISM, YOU HAVE REACHED THE CORRECT PLATFORM\n\nPLEASE ENTER amount:\"1234GC\" TO WASTE"; } THIS IS A SAMPLE CASINO SCRIPT. IT FLIPS A VIRTUAL COIN AND YOU WIN OR LOSE DEPENDING ON WHETHER OR NOT MATH.RANDOM() IS >= or < 0.5 HAPPY GAMBLING. LET ME KNOW IF YOU USE THIS SAMPLE SO I CAN ADMIRE YOUR ACQUISITION OF CAPITAL
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I LIKE GAMBLING. THIS IS GREAT EXAMPLE OF SCRIPT FOR GAMBLING. I HIGHLY RECOMMEND IT.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -