Apps Home
|
Create an App
vnr-doxy-torture-show
Author:
wicklow
Description
Source Code
Launch App
Current Users
Created by:
Wicklow
var CurrentSetting = 0; var TotalTips = 0; var LastTipper = null; var TipAmount = 0; var LastTipper = null; cb.settings_choices = [ { name: 'LevelDownCost', type: 'int', minValue: 1, required: true, default: 20, label:"Cost to Level Down" }, { name: 'LevelUpCost', type: 'int', minValue: 1, required: true, default: 30, label:"Cost to Turn on / Level Up" }, { name: 'StopCost', type: 'int', minValue: 1, required: true, default: 40, label:"Cost to stop" }, ]; cb.onTip(function (tip) { TipAmount = parseInt(tip['amount']); TotalTips += TipAmount; LastTipper = tip['from_user']; if ( TipAmount === StopCost ) { CurrentSetting = 0; cb.chatNotice(" :( Doxy is Off! Only " + LevelUpCost + " tokens to start it up again! ", "", '#410856', '#FFFFFF'); } if ( TipAmount === LevelDownCost ) { if ( CurrentSetting > 1 ) { CurrentSetting -= 1; cb.chatNotice(" Doxy is currently at level " + CurrentSetting, "", '#410856', '#FFFFFF'); } else if ( CurrentSetting == 1 ) { cb.chatNotice(" Doxy is on the Lowest Setting! Tip " + StopCost + " to turn it off or " + LevelUpCost + " to turn it up! ", "", '#410856', '#FFFFFF'); } else if ( CurrentSetting == 0 ) { cb.chatNotice(" Doxy is currently off :( Tip " + LevelUpCost + " to start Doxy up! ", "", '#410856', '#FFFFFF'); } } if ( TipAmount === LevelUpCost ) { if ( CurrentSetting < 12 ) { CurrentSetting += 1; cb.chatNotice(" Doxy is currently at level " + CurrentSetting, "", '#410856', '#FFFFFF'); } else { cb.chatNotice(" Doxy is on the Highest Setting! OMG! Tip " + LevelDownCost + " to turn it down or " + StopCost + " to turn it off :( ", "", '#410856', '#FFFFFF'); } } cb.drawPanel(); }); cb.onDrawPanel(function(user) { if ( TotalTips == 0 ) { return { 'template': '3_rows_12_22_31', 'row1_label': 'Doxy Level: ', 'row1_value': 'it\'s off! :(', 'row2_label': 'Total Tips: ', 'row2_value': TotalTips, 'row3_value': 'Lets get this party started!', }; } else if( TotalTips > 0 && CurrentSetting == 0 ) { return { 'template': '3_rows_of_labels', 'row1_label': 'Doxy Level: ', 'row1_value': 'it\'s off! :( Start it up!', 'row2_label': 'Total Tips: ', 'row2_value': TotalTips, 'row3_label': 'Last Tipper: ', 'row3_value': LastTipper + ' (' + TipAmount + ')', }; } else if ( TotalTips > 0 && CurrentSetting == 12 ) { return { 'template': '3_rows_of_labels', 'row1_label': 'Doxy Level: ', 'row1_value': '12 OMG!', 'row2_label': 'Total Tips: ', 'row2_value': TotalTips, 'row3_label': 'Last Tipper: ', 'row3_value': LastTipper + ' (' + TipAmount + ')', }; } else { return { 'template': '3_rows_of_labels', 'row1_label': 'Doxy Level: ', 'row1_value': CurrentSetting, 'row2_label': 'Total Tips: ', 'row2_value': TotalTips, 'row3_label': 'Last Tipper: ', 'row3_value': LastTipper + ' (' + TipAmount + ')', }; } }); function init() { LevelUpCost = cb.settings.LevelUpCost; LevelDownCost = cb.settings.LevelDownCost; StopCost = cb.settings.StopCost; cb.changeRoomSubject(' Doxy Torture Show! (12 levels of intensity): Level Down Cost - ' + LevelDownCost + ' // Level Up Cost - ' + LevelUpCost + ' // Stop Cost - ' + StopCost + ' // Start Cost - ' + LevelUpCost ); cb.chatNotice(' Doxy Torture Show! (12 levels of intensity): Level Down Cost - ' + LevelDownCost + ' // Level Up Cost - ' + LevelUpCost + ' // Stop Cost - ' + StopCost + ' // Start Cost - ' + LevelUpCost, "", '#410856', '#FFFFFF'); } init();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.