Apps Home
|
Create an App
Abigails FuckMachine / Hitachi
Author:
dirtyat30
Description
Source Code
Launch App
Current Users
Created by:
Dirtyat30
// // App meant to be used with a fuck machine // Version 1.02 // cb.settings_choices = [ {name:'poison', type:'choice',label:'Choose your toy', choice1:'Fuck machine', choice2:'Doxy', defaultValue: 'Doxy'}, {name: 'info1', label: '***These are general settings used by both toys below ***', type: 'choice', choice1:'',choice2:'~', defaultValue: '',required:false}, {name: 'subject', label: 'Room Subject', type: 'str', minLength: 1, maxLength: 255, defaultValue: 'Abigails FuckMachine/Hitachi App! Type /tipmenu to see the menu of options.'}, {name:'cost_speed_up', label: 'Cost to speed up', type:'int', minValue:1, maxValue:9999, defaultValue:30}, {name:'cost_speed_down', label: 'Cost to speed down', type:'int', minValue:1, maxValue:9999, defaultValue:29}, {name:'cost_start', label: 'Cost to start', type:'int', minValue:1, maxValue:9999, defaultValue:25}, {name:'cost_stop', label: 'Cost to stop', type:'int', minValue:1, maxValue:9999, defaultValue:26}, {name:'cost_instant_cum', label: 'Cost to instant cum', type:'int', minValue:1, maxValue:9999, defaultValue:1000}, {name:'cost_instant_cum_deny', label: 'Cost to cancel instant cum', type:'int', minValue:1, maxValue:9999, defaultValue:1001}, {name:'cost_mute', label: 'Cost to mute', type:'int', minValue:1, maxValue:9999, defaultValue:100}, {name:'cost_unmute', label: 'Cost to unmute', type:'int', minValue:1, maxValue:9999, defaultValue:75}, {name:'stop_reset', type:'choice',label:'Reset speed to 0 if someone stops the toy?', choice1:'Yes', choice2:'No', defaultValue: 'Yes'}, {name:'fanclub_perks', type:'choice',label:'FanClub Perks', choice1:'Yes', choice2:'No', defaultValue: 'Yes'}, {name: 'info2', label: '***These are fuck machine settings below ***', type: 'choice', choice1:'',choice2:'~', defaultValue: '',required:false}, {name:'intense_included', type:'choice',label:'Include intense mode', choice1:'Yes', choice2:'No', defaultValue: 'No'}, {name:'cost_speed_up_intense', label: 'Cost to speed up above 10 (Intense Mode)', type:'int', minValue:1, maxValue:9999, defaultValue:250}, {name:'hitachi_included', type:'choice',label:'Include Hitachi', choice1:'Yes', choice2:'No', defaultValue: 'Yes'}, {name:'cost_hitachi_up', label: 'Cost to turn up hitachi', type:'int', minValue:1, maxValue:9999, defaultValue:20}, {name:'cost_hitachi_down', label: 'Cost to turn down hitachi', type:'int', minValue:1, maxValue:9999, defaultValue:21}, {name: 'info3', label: '***These are doxy settings below ***', type: 'choice', choice1:'Coming Soon',choice2:'~', defaultValue: 'Coming Soon',required:false}, ]; var machinespeed; var hitachispeed; var machinestat; var instantcumstat; var mutestat; var fanclubused=[]; var hitachimodes = ["Off", "Low", "High"]; var s_welcome = "Welcome to the Abigails FuckMachine/Hitachi show. Use /tipmenu to see all the options."; var s_tipmenu = "***Tip menu*** \nFaster : " + cb.settings.cost_speed_up + "\nSlower : " + cb.settings.cost_speed_down + "\nStart : " + cb.settings.cost_start + "\nStop : " + cb.settings.cost_stop + "\nMute : " + cb.settings.cost_mute + "\nUnmute : " + cb.settings.cost_unmute + "\nInstant cum : " + cb.settings.cost_instant_cum + "\nInstant cum deny : " + cb.settings.cost_instant_cum_deny; var s_tipmenu_intense = " Speed faster in intense mode : " + cb.settings.cost_speed_up_intense; var s_tipmenu_hitachi = "Hitachi speed up : " + cb.settings.cost_hitachi_up + "\nHitachi speed down : " + cb.settings.cost_hitachi_down; var s_fantipmenu = "*** FanClub Perks***\n Being a fanclub member you get one free settings change with the following exceptions. You cannot use this to do an instant cum or instant cum denial, and you can not use this to turn the machine higher then 10.\nTo use it use the command /fanperk followed by the tip amount you want to use your change on. ex : /fanperk 30"; function newNotification(message,user){ cb.sendNotice(message, user, "#FFFFFF","#02a7ab","bolder","" ); } function tipSettingNotification(message,user,color,symbol){ cb.sendNotice("********************\n** " + symbol + " " + user + " has tipped for " + message + ".\n********************","","#FFFFFF",color,"bolder",""); } function setSettings(tipAmount,tipUser,fanclub){ switch(tipAmount){ case cb.settings.cost_speed_up: if (machinespeed < 10) { tipSettingNotification("faster", tipUser,"#0000FF","\u23ED"); machinespeed++; } break; case cb.settings.cost_speed_down: if (machinespeed > 1) { tipSettingNotification("slower", tipUser,"#FF8000","\u23EE"); machinespeed--; } break; case cb.settings.cost_speed_up_intense: if (machinespeed < 15 && machinespeed > 9 && !fanclub && cb.settings.poison == "Fuck machine" && cb.settings.intense_included == "Yes") { tipSettingNotification("intense mode", tipUser,"#0000FF","\u23ED"); machinespeed++; } break; case cb.settings.cost_start: if (!machinestat){ tipSettingNotification("start", tipUser,"#04B404", "\u23F5"); machinestat = true; } break; case cb.settings.cost_stop: if (machinestat){ tipSettingNotification("stop", tipUser,"#FF0000","\u23F9"); if (cb.settings.stop_reset == "Yes"){ machinespeed = 1; } machinestat = false; } break; case cb.settings.cost_instant_cum: if (!instantcumstat && !fanclub){ tipSettingNotification("instant cum", tipUser,"#FF00BF","\u263A"); instantcumstat = true; } break; case cb.settings.cost_instant_cum_deny: if(instantcumstat && !fanclub){ tipSettingNotification("instant cum cancel", tipUser,"#380B61","\u2639"); instantcumstat = false; } break; case cb.settings.cost_mute: if (!mutestat){ tipSettingNotification("mute", tipUser,"#08088A","\u26A0"); mutestat = true; } break; case cb.settings.cost_unmute: if (mutestat){ tipSettingNotification("unmute", tipUser,"#08088A","\u269F"); mutestat = false; } break; case cb.settings.cost_hitachi_up: if (cb.settings.hitachi_included == "Yes" && hitachispeed < 2){ tipSettingNotification("hitachi speed up", tipUser,"#08088A","\u23F6"); hitachispeed++; } break; case cb.settings.cost_hitachi_down: if (cb.settings.hitachi_included == "Yes" && hitachispeed > 0){ tipSettingNotification("hitachi speed down", tipUser,"#08088A","\u23F7"); hitachispeed--; } break; default: return false; break; } return true; } function showMenu(user){ newNotification(s_tipmenu, user); if (cb.settings.intense_included == "Yes" && cb.settings.poison == "Fuck machine") { newNotification(s_tipmenu_intense,user); } if (cb.settings.hitachi_included == "Yes" && cb.settings.poison == "Fuck machine"){ newNotification(s_tipmenu_hitachi, user); } } function appSetup(){ cb.changeRoomSubject(cb.settings.poison + " Torture Show! " +cb.settings.subject); newNotification(s_welcome, ""); showMenu(""); machinespeed = 1; machinestat = false; instantcumstat = false; mutestat = false; fanclubused = []; hitachispeed = 0; } cb.onDrawPanel(function(user) { var s_speed = 'Speed level : ' + machinespeed.toString(); var s_machinestat = "Off"; var s_mutestat = "No"; if (instantcumstat){ s_speed = 'Instant cum activated!' } if (machinestat || instantcumstat){ s_machinestat = "On"; } if (mutestat){ s_mutestat = "Yes"; } var s_lastline = "Mute : " + s_mutestat if (cb.settings.hitachi_included == "Yes" && cb.settings.poison == "Fuck machine"){ s_lastline = s_lastline + " | Hitachi : " + hitachimodes[hitachispeed] } return { 'template': '3_rows_11_21_31', 'row1_value': s_speed, 'row2_value': 'Power : ' + s_machinestat, 'row3_value': s_lastline }; }); cb.onTip(function(tip){ var tipAmount = tip['amount']; var tipUser = tip['from_user']; setSettings(tipAmount, tipUser, 0); cb.drawPanel(); }); cb.onMessage(function (msg) { //Commands for broadcaster and mods if (msg['is_mod'] || msg['user'] == cb.room_slug){ if (msg['m'] == '/jinxrules') { newNotification("s_rules", ""); msg['X-Spam'] = true; } if (msg['m'] == '/jinxhelp') { newNotification("/tipmenu - Notify the user of the tipping menu", msg['user']); newNotification("Broadcaster only:", msg['user']); newNotification("/jinxreset - Resets the app.", msg['user']); newNotification("Fanclub:", msg['user']); newNotification("/fanperk 0 - Fanclub members can use this to claim thier one free setting change. They need to change the 0 to be the tip amount they are changing. ", msg['user']); msg['X-Spam'] = true; } } //Commands for only the broadcaster if (msg['user'] == cb.room_slug) { if (msg['m'] == '/jinxreset') { appSetup(); msg['X-Spam'] = true; } } //Commands for all if (msg['m'] == "/tipmenu"){ var s_user = msg['user']; if (msg['is_mod']) { s_user = ""; } showMenu(s_user); if (msg["in_fanclub"]){ newNotification(s_fantipmenu, msg['user']); } msg['X-Spam'] = true; } //Commands for fanclub members if (cb.settings.fanclub_perks == "Yes"){ if (msg['in_fanclub']){ var s_msg = msg['m'].split(' '); if(s_msg.length > 1){ if (s_msg[0] == "/fanperk"){ var used = false; for (name in fanclubused){ if (fanclubused[name] == msg['user']){ used = true; } } if(!used){ var successful = setSettings(parseInt(s_msg[1]), msg['user'], 1); cb.drawPanel(); if (successful){ fanclubused.push(msg['user']); } } msg['X-Spam'] = true; } } } } return msg; }); cb.onEnter(function(user) { newNotification(s_welcome, user['user']); showMenu(user['user']); if (user['in_fanclub']){ newNotification(s_fantipmenu, user['user']); } }); function init(){ appSetup(); } init();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.