Apps Home
|
Create an App
TESTINGRECOPY
Author:
pow2121
Description
Source Code
Launch App
Current Users
Created by:
Pow2121
var backgroundImage = '36d2bf2a-74db-4f08-b291-3daa06dc935b'; var tipsReceived = 0; var goalTitle = ''; var goalAmount = 0; var fontSize = 11; var title = "Let's Chat"; var tags = "#smallcock #lovense #bottom #gay #chub"; var tip_amt = 0; var separator = " | "; cb.onStart(function(user) { cb.changeRoomSubject(title + separator + "[" + goalAmount + "] till " + goalTitle + separator + tags) cb.drawPanel(); }); cb.onEnter(function(user) { cb.chatNotice('Welcome ' + user['user'] + '! Thanks for stopping by.'); }); cb.settings_choices = [ {name: 'title', type: 'str',label:'Room Title', minLength: 1, maxLength: 255, defaultValue: title}, {name: 'goalTitle', type: 'str',label:'Goal Title', minLength: 1, maxLength: 255, defaultValue: goalTitle}, {name:'goalAmount', type:'int',label:'Goal Amount', minValue:1, maxValue:999, defaultValue: goalAmount}, {name:'tags', type:'string',label:'Tags', minLength: 1, maxLength: 255, defaultValue: tags}, {name:'item1', type:'str', label:'Item 1',defaultValue:'PM'}, {name:'item1price', type:'int', label:'Item 1 Price',defaultValue:15}, {name:'item2', type:'str', required: false, label:'Item 2',defaultValue:'Ass Flash'}, {name:'item2price', type:'int', required: false, label:'Item 2 Price',defaultValue:25}, {name:'item3', type:'str', required: false, label:'Item 3',defaultValue:'Cock Flash'}, {name:'item3price', type:'int', required: false, label:'Item 3 Price',defaultValue:35}, {name:'item4', type:'str', required: false, label:'Item 4',defaultValue:'Underwear Off for 5 Min'}, {name:'item4price', type:'int', required: false, label:'Item 4 Price',defaultValue:45}, {name:'item5', type:'str', required: false, label:'Item 5',defaultValue:'1 Min Jerk'}, {name:'item5price', type:'int', required: false, label:'Item 5 Price',defaultValue:55}, {name:'item6', type:'str', required: false, label:'Item 6',defaultValue:'Lovense In + 3 Minute Private Control'}, {name:'item6price', type:'int', required: false, label:'Item 6 Price',defaultValue:75}, {name: 'chat_ad', type:'int', minValue: 1, maxValue: 999, defaultValue: 1, label: 'Delay in minutes between notice being displayed (minimum 1)'} ]; cb.onDrawPanel(function(user) { return { "template": "image_template", "layers": [ {'type': 'image', 'fileID': backgroundImage}, { 'type': 'text', 'text': 'TIPS RECEIVED', 'top': 5, 'left': 61, 'font-size': fontSize, 'color': 'orange', }, { 'type': 'text', 'text': 'GOAL', 'top': 29, 'left': 73, 'font-size': fontSize, 'color': 'orange', }, { 'type': 'text', 'text': 'AMOUNT TO GOAL', 'top': 52, 'left': 28, 'font-size': fontSize, 'color': 'orange', }, { 'type': 'text', 'text': tipsReceived, 'top': 5, 'left': 147, 'font-size': fontSize, 'color': 'white', }, { 'type': 'text', 'text': goalTitle, 'top': 29, 'left': 147, 'font-size': fontSize, 'color': 'white', }, { 'type': 'text', 'text': goalAmount, 'top': 51, 'left': 147, 'font-size': fontSize, 'color': 'white', }, ], }; }); cb.onTip(function (tip) { tip_amt=parseInt(tip['amount']); tipsReceived += parseInt(tip['amount']) drawPanel(); for (var i = 1; i <= 6; i++) { if (tip_amt == parseInt(cb.settings['item' + i + 'price'])) { cb.sendNotice(tip['from_user'] + ' tipped for ' + cb.settings['item' + i],'','','','bold'); } } }); function chatAd() { var msg = 'Tip Menu: '; for (i=1;i<=6;i++) { if (parseInt(cb.settings['item' + i + 'price'])>0) { if (i>=2) { msg += separator; } msg += cb.settings['item' + i] + '(' + parseInt(cb.settings['item' + i + 'price']) + ') '; } } cb.sendNotice(msg,'','',cb.settings['noticecolor'],'bold'); cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); } cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000));
© Copyright Chaturbate 2011- 2024. All Rights Reserved.