Apps Home
|
Create an App
dubz
Author:
daisyistestingsomething
Description
Source Code
Launch App
Current Users
Created by:
Daisyistestingsomething
//daisy dice // // // //universal vars var total_tipped = 0; var total_rolls = 0; var timer_number = 0; var last_result = ' nothing yet!'; var msg_color = null; var panel_id = null; var modemsg = null; cb.settings_choices = [ { name: 'dice_type', type: 'choice', choice1: 'spanks', choice2: 'workout', choice3: 'tease', choice4: 'any', defaultValue: 'spanks', label: "dice type:"}, { name:'roll_tokens', type: 'int', minvalue: '1', defaultValue: '123', label: "amount of tokens to roll double dice:" }, ] function set_mode() { if (cb.settings.dice_type == 'spanks'){ msg_color = '#F590AA'; panel_id = 'dbced8bd-e36b-4458-b428-6962f65aeb6f'; modemsg = 'the dice are currently in spank mode.' } else if (cb.settings.dice_type == 'workout'){ msg_color = '#90C0F5'; panel_id = 'aa3bc193-dde6-4499-a811-065788be97cd'; modemsg = 'the dice are currently in workout mode.' } else if (cb.settings.dice_type == 'tease'){ msg_color = '#909DF5'; panel_id= '0f57d0f4-88a0-4e25-8224-c4116a22ae1d'; modemsg = 'the dice are currently in tease mode.' } else if (cb.settings.dice_type == 'any'){ msg_color = '#909DF5'; panel_id= '0f57d0f4-88a0-4e25-8224-c4116a22ae1d'; modemsg = 'the dice are currently in any mode.' } cb.drawPanel(); } set_mode(); cb.onEnter( function(user) { if (user['has_tokens']) { var notices = "hey " + user['user'] + ", i hope you're having a lovely day.\n"; notices += "" + modemsg + "\n"; notices += "you can tip " + cb.settings.roll_tokens + " to roll the dice!" cb.sendNotice( notices , user['user'], '', msg_color, 'bold'); } }); cb.onTip( function( tip ) { if(parseInt(tip['amount']) >= cb.settings.roll_tokens) { total_rolls += 1; cb.drawPanel(); cb.sendNotice("rolling double dice...", '', '', msg_color, 'bold'); cb.sendNotice("..........", '', '', msg_color, 'bold'); cb.sendNotice(".......", '', '', msg_color, 'bold'); cb.sendNotice("....", '', '', msg_color, 'bold'); doublediceroll(); } }); cb.onMessage( function( msg ) { var message = msg['m'].split(' '); if( message[0].charAt(0) == '/' ) { msg['X-Spam'] = true; if (msg['user'] == cb.room_slug) { if(msg['m'].includes("/spankmode")) { cb.settings.dice_type = 'spanks'; cb.sendNotice("the dice are now in spank mode!", '', msg_color, '', 'bold'); set_mode(); } if(msg['m'].includes("/workoutmode")) { cb.settings.dice_type = 'workout'; cb.sendNotice("the dice are now in workout mode!", '', msg_color, '', 'bold'); set_mode(); } if(msg['m'].includes("/teasemode")) { cb.settings.dice_type = 'tease'; cb.sendNotice("the dice are now in tease mode!", '', msg_color, '', 'bold'); set_mode(); } if(msg['m'].includes("/anymode")) { cb.settings.dice_type = 'any'; cb.sendNotice("the dice are now in any mode!", '', msg_color, '', 'bold'); set_mode(); } } } return msg; }); cb.onDrawPanel( function( user ) { var info = null; if (timer_number <= 1) { info = "rolled " + total_rolls + " times so far!" } else if (timer_number <= 2) { info = "last result: " + last_result } return { "template": "image_template", "layers": [ { 'type': 'image', 'fileID': panel_id }, { 'type': 'text', 'text': 'cost per roll: ' + cb.settings.roll_tokens, 'top': 5, 'left': 5 }, { 'type': 'text', 'text': info , 'top': 29, 'left': 5 }, { 'type': 'text', 'text': modemsg , 'top': 52, 'left': 5 } ] }; }); function doublediceroll() { var dice_types = new Array('spanks', 'workout', 'tease'); var new_dice_type = cb.settings.dice_type; if (new_dice_type == 'any') { new_dice_type = dice_types[Math.floor(Math.random()*dice_types.length)]; } if (new_dice_type == 'spanks') { var number = new Array('one spank','two spanks','five spanks','ten spanks','fifteen spanks','thirty spanks','fifty spanks','a fake spank') var implement = new Array('the doom paddle','the thumper','the blackjack','a wooden paddle','a leather paddle','a belt','a flogger','a dragon dick','the closest object within reach','my hand') var number_result = number[Math.floor(Math.random()*number.length)]; var implement_result = implement[Math.floor(Math.random()*implement.length)]; last_result = number_result + ' with ' + implement_result ; cb.sendNotice("i have to do " + number_result + " with " + implement_result + "! ouch!", '', msg_color, '', 'bold'); } else if (new_dice_type == 'workout') { var reps = new Array('two','five','ten','fifteen','thirty','ten seconds of','thirty seconds of') var exercise = new Array('air squats','walking lunges','jumping jacks','sweet dance moves','yoga poses') var reps_result = reps[Math.floor(Math.random()*reps.length)]; var exercise_result = exercise[Math.floor(Math.random()*exercise.length)]; last_result = reps_result + ' ' + exercise_result ; cb.sendNotice("i have to do " + reps_result + " " + exercise_result + "!", '', msg_color, '', 'bold'); } else if (new_dice_type == 'tease') { var kind = new Array('a very fast','a very slow','a very silly','ten seconds of a','a whole minute of a') var tease = new Array('spitty tease','pussy tease','strip tease','blowjob tease','butthole tease','beautiful agony tease') var kind_result = kind[Math.floor(Math.random()*kind.length)]; var tease_result = tease[Math.floor(Math.random()*tease.length)]; last_result = kind_result + ' ' + tease_result ; cb.sendNotice("i have to do " + kind_result + " " + tease_result + "!", '', msg_color, '', 'bold'); } } function paneltimer() { timer_number = timer_number + 1 if (timer_number > 2) { timer_number = 1 } cb.drawPanel(); cb.setTimeout(paneltimer, 15000) } paneltimer(); cb.drawPanel();
© Copyright Chaturbate 2011- 2025. All Rights Reserved.