Apps Home
|
Create an App
testyjarwking
Author:
daisy_marz_test
Description
Source Code
Launch App
Current Users
Created by:
Daisy_Marz_Test
// // // // // deepthroat practice // var tipjar = 0; var totaltips = 0; var reducetimer = cb.settings.reduce_tip_jar * 1000; var reduceby = cb.settings.reduce_tips_by; var commandgoing = 0; var commandNum = 0; var commanduser = 0; var timer_number = 0; var kingusername = 'nothing yet!'; var kingamount = 0; var noticecolor = '#6A9CDE'; var altnoticecolor = '#6AC1DE'; cb.settings_choices = [ { name: 'room_title', type: 'str', minlength: '1', maxlength: '255', label: "room subject (optional):", required: false }, {name:'reduce_tip_jar', type:'int', minValue:1, maxValue:60, default:10, label:'reduce the tip jar every x seconds:'}, {name:'reduce_tips_by', type:'int', minValue:1, maxValue:20, default:1, label:'amount to reduce tip jar by:'}, {name:'breathe_tokens', type:'int', minValue:1, maxValue:50, default:1, label:'tokens to take a breath:'}, {name:'deeper_tokens', type:'int', minValue:1, maxValue:100, default:1, label:'tokens to go deeper:'}, {name: 'tip_king_color', type: 'str', label: 'highlight color for highest single tip:'} ] cb.onEnter( function (user) { if (user['has_tokens']) { var notices = "i'll keep a dildo in my throat as long as there are tokens in the jar.\n"; notices += "you can tip " + cb.settings.breathe_tokens + " tokens to let me take a breath,\n"; notices += "or you can tip " + cb.settings.deeper_tokens + " tokens to make me push it deeper!"; cb.chatNotice("hey " + user['user'] + ", we're practicing my deepthroat skills!",user['user'], '', noticecolor, 'bold'); setTimeout(function() { cb.chatNotice(notices, user['user'], '', altnoticecolor, 'bold' ); }, 500); } }); cb.onTip(function (tip) { var commanded = 0; tipjar += parseInt(tip['amount']); totaltips += parseInt(tip['amount']); if(tip['amount'] > kingamount) { kingamount = tip['amount'] kingusername = tip['from_user'] } if(parseInt(tip['amount']) == cb.settings.breathe_tokens) { commandgoing = 'breathe'; commanduser = tip['from_user']; commanded = 1; cb.sendNotice(tip['from_user'] + " tipped to let me take a breath.", '', '', noticecolor, 'bold'); } if(parseInt(tip['amount']) == cb.settings.deeper_tokens) { commandgoing = 'deeper'; commanduser = tip['from_user']; commanded = 1; cb.sendNotice(tip['from_user'] + " tipped to make me go deeper.", '', '', noticecolor, 'bold'); } if ( commanded == 1 ) { if ( commandNum > 0 ) { commandNum = 5; } else { commandNum = 5; commandCounter(); } } cb.drawPanel(); }); cb.onDrawPanel( function( user ) { tipjar_message=tipjar; var info = null; if (timer_number <= 1) { info = "tip " + cb.settings.breathe_tokens + "tk to let me breathe!" } else if (timer_number <= 2) { info = "tip " + cb.settings.deeper_tokens + "tk to make me go deeper!" } else if (timer_number <= 3) { info = 'highest single tip: ' + kingusername + '[' + kingamount + ']' } if ( commandgoing == 0 ) { if (tipjar == 0 && totaltips == 0) { return { "template": "image_template", "layers": [ { 'type': 'image', 'fileID': '8c52db0e-9bb4-4f14-abdf-036dd8730e85'}, { 'type': 'text', 'text': 'tipjar: ' + tipjar_message, 'top': 5, 'left': 5 }, { 'type': 'text', 'text': ' tip to start deepthoat practice!', 'top': 29, 'left': 5 }, { 'type': 'text', 'text': 'highest single tip: ' + kingusername , 'top': 52, 'left': 5, 'color': cb.settings.tip_king_color} ] }; } else if (tipjar == 0) { return { "template": "image_template", "layers": [ { 'type': 'image', 'fileID': '8c52db0e-9bb4-4f14-abdf-036dd8730e85'}, { 'type': 'text', 'text': 'tipjar: ' + tipjar_message, 'top': 5, 'left': 5 }, { 'type': 'text', 'text': ' tip to resume deepthoat practice!', 'top': 29, 'left': 5 }, { 'type': 'text', 'text': 'highest single tip: ' + kingusername + '(' + kingamount + ')' , 'top': 52, 'left': 5, 'color': cb.settings.tip_king_color} ] }; } else { return { "template": "image_template", "layers": [ { 'type': 'image', 'fileID': '8c52db0e-9bb4-4f14-abdf-036dd8730e85'}, { 'type': 'text', 'text': 'tipjar: ' + tipjar_message, 'top': 5, 'left': 5 }, { 'type': 'text', 'text': 'keep it going!', 'top': 29, 'left': 5 }, { 'type': 'text', 'text': info , 'top': 52, 'left': 5, 'color': cb.settings.tip_king_color} ] }; } } else { return { "template": "image_template", "layers": [ { 'type': 'image', 'fileID': '8c52db0e-9bb4-4f14-abdf-036dd8730e85'}, { 'type': 'text', 'text': commanduser + " says " + commandgoing + "!",'top': 29, 'left': 5, 'font-weight': 'bold', 'color': altnoticecolor }, ] }; } }); function commandCounter() { if ( commandNum > 0 ) { commandNum = commandNum - 1; cb.setTimeout(commandCounter, 1000); } else { commandgoing = 0; } } function infotimer() { timer_number = timer_number + 1 if (timer_number > 3) { timer_number = 1 } cb.drawPanel(); cb.setTimeout(infotimer, 5000) } function checkJar() { if(tipjar>0) { tipjar=tipjar-reduceby; if(tipjar<0) { resetApp(); } } else { resetApp(); } cb.setTimeout(checkJar, reducetimer); cb.drawPanel(); } function resetApp() { tipjar = 0; isitgoing =0; } cb.onMessage(function (msg) { if (msg['user'] == kingusername) { msg['background'] = cb.settings.tip_king_color; } return msg; }); function jarEmptynotice(){ if(tipjar == 0) { if (totaltips == 0) { cb.chatNotice("the jar is empty! tip to begin deepthroat practice!", '' , '', noticecolor, 'bold'); } else { cb.chatNotice("the jar is empty! tip to resume deepthroat practice!", '' , '', noticecolor, 'bold'); } cb.setTimeout(jarEmptynotice, 120000) } } function update_subject() { if ( cb.settings.room_title == '' ) { cb.changeRoomSubject( "deepthroat practice! || deeper - " + cb.settings.deeper_tokens + " / breathe - " + cb.settings.breathe_tokens ); } else { cb.changeRoomSubject( "deepthroat practice! || " + cb.settings.room_title ); } } checkJar(); cb.drawPanel(); jarEmptynotice(); update_subject(); infotimer();
© Copyright Chaturbate 2011- 2025. All Rights Reserved.