Apps Home
|
Create an App
CumShow Game
Author:
captain_suave
Description
Source Code
Launch App
Current Users
Created by:
Captain_Suave
/* * Application * Update v2: Added spin timer limit on succesive spins * Update v3: Added session climax timer */ cb.settings_choices = [ {name:'cost_per_spin', type:'int', minValue:0, maxValue:999, defaultValue:0, label: 'Cost Per Spin Of The Wheel (0-999): '}, {name:'advertise_in_chat', type:'int', minValue:1, maxValue:999, defaultValue:1, label: 'How Often To Advertise The App Controls: (min)'}, {name:'multispin_count', type:'int', minValue:0, maxValue:5, defaultValue:0, label: 'How Many Multi-Spins To Allow? (0-1)'}, {name:'pos1', type:'str', minLength: 1, maxLength: 255, label: 'Dare #1 '}, {name:'pos2', type:'str', minLength: 1, maxLength: 255, label: 'Dare #2 '}, {name:'pos3', type:'str', minLength: 1, maxLength: 255, label: 'Dare #3 '}, {name:'pos4', type:'str', minLength: 0, maxLength: 255, label: 'Dare #4 ', required: false}, {name:'pos5', type:'str', minLength: 0, maxLength: 255, label: 'Dare #5 ', required: false}, {name:'pos6', type:'str', minLength: 0, maxLength: 255, label: 'Dare #6 ', required: false}, {name:'pos7', type:'str', minLength: 0, maxLength: 255, label: 'Dare #7 ', required: false}, {name:'pos8', type:'str', minLength: 0, maxLength: 255, label: 'Dare #8 ', required: false}, {name:'pos9', type:'str', minLength: 0, maxLength: 255, label: 'Dare #9 ', required: false}, {name:'pos10', type:'str', minLength: 0, maxLength: 255, label: 'Dare #10 ', required: false}, {name:'pos11', type:'str', minLength: 0, maxLength: 255, label: 'Dare #X ', required: false}, {name:'pos12', type:'str', minLength: 0, maxLength: 255, label: 'Dare #X ', required: false}, {name:'pos13', type:'str', minLength: 0, maxLength: 255, label: 'Dare #X ', required: false}, {name:'roomSubject', type:'str', minLength: 0, maxLength: 255, label: 'Room Subject ', required: false}, {name:'advertise_dares', type:'int', minValue:1, maxValue:999, defaultValue:1, label: 'How Often To Advertise The Dares: (min)'}, {name:'spin_time_diff', type:'int', minValue:1, maxValue:999, defaultValue:1, label: 'Spin Time Difference (in seconds)'}, {name:'sessionDuration', type:'int', minValue:0, maxValue:999, defaultValue:1, label: 'Session Duration (in minutes)'} ]; var total_tipped = 0; var reminderCount = 100; var multiMessage = 'Disabled!'; var temp = new Array(cb.settings.pos1,cb.settings.pos2,cb.settings.pos3,cb.settings.pos4,cb.settings.pos5,cb.settings.pos6,cb.settings.pos7,cb.settings.pos8,cb.settings.pos9,cb.settings.pos10); var temp_actual = new Array(cb.settings.pos1,cb.settings.pos2,cb.settings.pos3,cb.settings.pos4,cb.settings.pos5,cb.settings.pos6,cb.settings.pos7,cb.settings.pos8,cb.settings.pos9,cb.settings.pos10,cb.settings.pos11,cb.settings.pos12,cb.settings.pos13); var rewards = new Array(); var rewards_actual = new Array(); var spinners = new Map(); var startDate = new Date(); var startTime = startDate.getTime(); for(var i = 0; i<temp.length; i++) { if(temp[i] != '') { rewards.push(temp[i]); } } for(var i = 0; i<temp_actual.length; i++) { if(temp_actual[i] != '') { rewards_actual.push(temp_actual[i]); } } if(cb.settings.multispin_count > 0) { multiMessage = 'Enabled! x ' + cb.settings.multispin_count; } cb.changeRoomSubject( cb.settings.roomSubject); cb.sendNotice('------------------------------------','', '', '#E74C3C', 'normal'); cb.sendNotice('Cum Show: Playing Edging Dare Wheel!','', '', '#E74C3C', 'normal'); cb.sendNotice('------------------------------------','', '', '#E74C3C', 'normal'); cb.sendNotice(' -= Dares Active =- ','', '', '#E74C3C', 'normal'); for(var x = 0; x < rewards.length; x++) { cb.sendNotice(rewards[x],'', '', '#E74C3C', 'normal'); } cb.sendNotice('---------------------------------------','', '', '#E74C3C', 'normal'); cb.sendNotice(' Good Luck, don\'t chicken out! ','', '', '#E74C3C', 'normal'); cb.sendNotice('---------------------------------------','', '', '#E74C3C', 'normal'); cb.onEnter(function(user) { cb.sendNotice('**************************************',user['user'], '', '#E74C3C', 'bold'); cb.sendNotice('Welcome to My Cum Show, ' + user['user'] + '. Please use English and say hello. Thank you!', user['user'], '', '#E74C3C', 'bold'); cb.sendNotice('**************************************',user['user'], '', '#E74C3C', 'bold'); }); function spinWheel(userName) { cb.sendNotice('********* Spinning the Wheel! ********','', '', '#E74C3C', 'bold'); var randomnumber = Math.floor(Math.random()*(rewards_actual.length)); cb.sendNotice('$$$$$ Wheel Spun By ' + userName + ' $$$$$','', '', '#E74C3C', 'bold'); cb.sendNotice('The Wheel Stopped On: ','', '', '#E74C3C', 'bold'); cb.sendNotice('****** -: ' + rewards_actual[randomnumber] + ' :- ******','', '', '#2471A3', 'bold'); cb.sendNotice('**************************************','', '', '#E74C3C', 'bold'); } cb.onTip(function (tip) { var tipJar = tip['amount']; var spinCount = 0; //While the Tip Jar Has More In it Then The Spin Cost... while(tipJar >= cb.settings.cost_per_spin) { //And If We Have A SpinCount Left... if(spinCount <= (cb.settings.multispin_count)) { //Spin The Wheel. if(spinCount > 0) { cb.sendNotice('! Multi-Spin Bonus Activated !'); } //Spin The Wheel in 3 seconds. //cb.setTimeout(spinWheel, 3000); spinWheel(); } //Remove The Spin Amount From The Tip Jar. tipJar -= cb.settings.cost_per_spin; //And Increase The SpinCount. spinCount++; } total_tipped += parseInt(tip['amount']) cb.drawPanel(); }); cb.onMessage(function (msg) { var userName = msg['user']; if(msg['m'] == '/spin') { var de = new Date(); var te = de.getTime(); if (spinners.has(userName)){ var ts = spinners.get(userName); diff = ( te - ts ) / 1000; if (diff > cb.settings.spin_time_diff){ spinners.set(userName, te); spinWheel(userName); cb.sendNotice('----------------------------------------', userName,'', '#F5B041', 'bold'); cb.sendNotice(' The broadcaster must now do it! ', userName,'', '#F5B041', 'bold'); cb.sendNotice('----------------------------------------', userName,'', '#F5B041', 'bold'); }else{ cb.sendNotice('----------------------------------------', userName,'', '#F5B041', 'bold'); cb.sendNotice(' Wait for another... ' + Math.round(cb.settings.spin_time_diff - diff) + ' seconds to spin.', userName,'', '#F5B041', 'bold'); cb.sendNotice('----------------------------------------', userName,'', '#F5B041', 'bold'); } }else{ spinners.set(userName, te); spinWheel(userName); cb.sendNotice('----------------------------------------', userName,'', '#F5B041', 'bold'); cb.sendNotice(' The broadcaster must now do it! ', userName,'', '#F5B041', 'bold'); cb.sendNotice('----------------------------------------', userName,'', '#F5B041', 'bold'); } } else if(msg['m'] == '/dares') { cb.sendNotice('---------------------------------------','','', '#2471A3', 'normal'); cb.sendNotice(' -= Dares Active =- ','','', '#2471A3', 'normal'); cb.sendNotice('---------------------------------------','','', '#2471A3', 'normal'); for(var x = 0; x < rewards.length; x++) { cb.sendNotice('Dare ' + x + ': ' + rewards[x], userName,'', '#2471A3', 'normal'); } } else{ if(cb.settings.sessionDuration == 0){} else{ var currDate = new Date(); var currTime = currDate.getTime(); currDiff = Math.round((currTime - startTime)/60000) cb.sendNotice('----------------------------------------', '','', '#F5B041', 'bold'); cb.sendNotice(' Cum CountDown Running! ' + (cb.settings.sessionDuration - currDiff) + ' minutes remaining...!', '','', '#F5B041', 'bold'); cb.sendNotice('----------------------------------------', '','', '#F5B041', 'bold'); } } return msg; }); cb.onDrawPanel(function(user) { return { 'template': '3_rows_of_labels', 'row1_label': 'Type Of Spin', 'row1_value': 'FREE', 'row2_label': 'Spin Cost', 'row2_value': cb.settings.cost_per_spin + ' tokens.', 'row3_label': 'Multi-Spin:', 'row3_value': multiMessage }; }); function advert() { cb.sendNotice('***************************************','','', '#AF7AC5', 'normal'); cb.sendNotice('Dare Wheel is ACTIVE! Type \'/spin\' and make the broadcaster do what it says! Type \'/dares\' to get the dare listing','','', '#AF7AC5', 'bold'); cb.sendNotice('***************************************','','', '#AF7AC5', 'normal'); cb.sendNotice(' Good Luck, don\'t chicken out! ','','', '#AF7AC5', 'bold'); cb.sendNotice('***************************************','','', '#AF7AC5', 'normal'); cb.setTimeout(advert, (cb.settings.advertise_in_chat * 60000)); } function advertdares() { cb.sendNotice('---------------------------------------','','', '#138D75', 'normal'); cb.sendNotice('Cum Show: Playing Edging Dare Wheel!!! ','','', '#138D75', 'normal'); cb.sendNotice('---------------------------------------','','', '#138D75', 'normal'); cb.sendNotice(' -= Dares Active =- ','','', '#138D75', 'normal'); cb.sendNotice('---------------------------------------','','', '#138D75', 'normal'); for(var x = 0; x < rewards.length; x++) { cb.sendNotice('Dares are :' + x + ': ' + rewards[x],'','', '#138D75', 'normal'); } cb.setTimeout(advertdares, (cb.settings.advertise_dares * 60000)); } cb.setTimeout(advert, (cb.settings.advertise_in_chat * 60000)); cb.setTimeout(advertdares, (cb.settings.advertise_dares * 60000));
© Copyright Chaturbate 2011- 2026. All Rights Reserved.