Apps Home
|
Create an App
_kokkino
Author:
_kokkino_
Description
Source Code
Launch App
Current Users
Created by:
_Kokkino_
cb.settings_choices=[{name:"check",label:" ",type:"str",minLength:0,maxLength:2e3,required:!0},{name:"roomTopic",label:"Room topic",type:"str",minLength:0,maxLength:2e3,required:!1},{name:"hashTags",label:"Hashtags",type:"str",minLength:0,maxLength:2e3,required:!1},{name:"tippersLabel",label:"Tippers label",type:"str",defaultValue:"Lover",minLength:0,maxLength:100,required:!0},{name:"noticeColor",label:"Notice color",type:"choice",choice1:"Navy Blue",choice2:"Purple",choice3:"Dark Red",choice4:"Black",defaultValue:"Dark Red",required:!0},{name:"noticeTimeout",label:"Notice timeout (min)",type:"int",minValue:1,maxValue:99,defaultValue:5,required:!0},{name:"noticeFormat",label:"Notice format",type:"choice",choice1:"Do Not display notice",choice2:"Display as a list",choice3:"Display as a single line",defaultValue:"Display as a list",required:!0},{name:"levelsTitle",label:"Notice Title",type:"str",minLength:0,maxLength:2e3,defaultValue:"Lovense toy reacts to your tips. My levels of intensity and duration:",required:!0},{name:"patternTitle",label:"Pattern Title",type:"str",minLength:0,maxLength:2e3,defaultValue:"Extra kinky patterns to drive me crazy:",required:!0},{name:"displayQueue",label:"Display Queue",type:"choice",choice1:"No",choice2:"Yes",defaultValue:"No",required:!0}];var chatSettings={heart:"\u2665",star:"\u2605",black:"#000000",darkRed:"#990000",notice:null,notice_color:null,getNotice:function(){return this.notice},setNoticeColor:function(e){switch(e){case"Navy Blue":this.notice_color="#0606d2";break;case"Purple":this.notice_color="#6900CC";break;case"Dark Red":this.notice_color="#990000";break;case"Black":this.notice_color="#000000";break;default:this.notice_color="#990000"}},setNoticeFormat:function(e){switch(e){case"Do Not display notice":this.notice;break;case"Display as a list":this.notice=cb.settings.levelsTitle+"\nLevel 1 - Tip (1-14) 1 sec of Low speed\nLevel 2 - Tip (15-49) 3 sec of Medium speed\nLevel 3 - Tip (50-499) 10 sec of Medium speed\nLevel 4 - Tip (500-999) 30 sec of High speed\nLevel 5 - Tip (1000+) 30 sec of Ultra-High speed\n"+cb.settings.patternTitle+"\nWave - 222tk (30 sec), Earthquake - 233tk (30 sec), Fireworks - 244tk (30 sec),\nVolcano - 322tk (30 sec), Pulse - 333tk (30 sec), Thunder - 344tk (30 sec).";break;case"Display as a single line":this.notice=cb.settings.levelsTitle+" Level 1 - Tip (1-14) 1 sec of Low speed; Level 2 - Tip (15-49) 3 sec of Medium speed; Level 3 - Tip (50-499) 10 sec of Medium speed; Level 4 - Tip (500-999) 30 sec of High speed; Level 5 - Tip (1000+) 30 sec of Ultra-High speed.\n"+cb.settings.patternTitle+" Wave - 222tk (30 sec), Earthquake - 233tk (30 sec), Fireworks - 244tk (30 sec),Volcano - 322tk (30 sec), Pulse - 333tk (30 sec), Thunder - 344tk (30 sec)."}},init:function(){chatSettings.setNoticeColor(cb.settings.noticeColor),chatSettings.setNoticeFormat(cb.settings.noticeFormat)}},panel={mainPanel:function(){var e,t=lovers.findBestLover();e=null==t?"Be my first "+cb.settings.tippersLabel+"!":"Best "+cb.settings.tippersLabel+" "+chatSettings.heart+" "+t.name+" "+chatSettings.heart+" "+t.total_tips;var i,s=lovers.getLoversCount();i=0==s?"Let's start the game!":1<s?s+" "+cb.settings.tippersLabel+"s":s+" "+cb.settings.tippersLabel;var n=queue.getLastLover();return{template:"3_rows_11_21_31",row1_value:i,row2_value:e,row3_value:null==n?"":"Last kiss "+chatSettings.star+" "+n.lovers_name+" "+chatSettings.star+" "+n.tip_amount}}},md5={md5cycle:function(e,t){var i=e[0],s=e[1],n=e[2],a=e[3];i=this.ff(i,s,n,a,t[0],7,-680876936),a=this.ff(a,i,s,n,t[1],12,-389564586),n=this.ff(n,a,i,s,t[2],17,606105819),s=this.ff(s,n,a,i,t[3],22,-1044525330),i=this.ff(i,s,n,a,t[4],7,-176418897),a=this.ff(a,i,s,n,t[5],12,1200080426),n=this.ff(n,a,i,s,t[6],17,-1473231341),s=this.ff(s,n,a,i,t[7],22,-45705983),i=this.ff(i,s,n,a,t[8],7,1770035416),a=this.ff(a,i,s,n,t[9],12,-1958414417),n=this.ff(n,a,i,s,t[10],17,-42063),s=this.ff(s,n,a,i,t[11],22,-1990404162),i=this.ff(i,s,n,a,t[12],7,1804603682),a=this.ff(a,i,s,n,t[13],12,-40341101),n=this.ff(n,a,i,s,t[14],17,-1502002290),s=this.ff(s,n,a,i,t[15],22,1236535329),i=this.gg(i,s,n,a,t[1],5,-165796510),a=this.gg(a,i,s,n,t[6],9,-1069501632),n=this.gg(n,a,i,s,t[11],14,643717713),s=this.gg(s,n,a,i,t[0],20,-373897302),i=this.gg(i,s,n,a,t[5],5,-701558691),a=this.gg(a,i,s,n,t[10],9,38016083),n=this.gg(n,a,i,s,t[15],14,-660478335),s=this.gg(s,n,a,i,t[4],20,-405537848),i=this.gg(i,s,n,a,t[9],5,568446438),a=this.gg(a,i,s,n,t[14],9,-1019803690),n=this.gg(n,a,i,s,t[3],14,-187363961),s=this.gg(s,n,a,i,t[8],20,1163531501),i=this.gg(i,s,n,a,t[13],5,-1444681467),a=this.gg(a,i,s,n,t[2],9,-51403784),n=this.gg(n,a,i,s,t[7],14,1735328473),s=this.gg(s,n,a,i,t[12],20,-1926607734),i=this.hh(i,s,n,a,t[5],4,-378558),a=this.hh(a,i,s,n,t[8],11,-2022574463),n=this.hh(n,a,i,s,t[11],16,1839030562),s=this.hh(s,n,a,i,t[14],23,-35309556),i=this.hh(i,s,n,a,t[1],4,-1530992060),a=this.hh(a,i,s,n,t[4],11,1272893353),n=this.hh(n,a,i,s,t[7],16,-155497632),s=this.hh(s,n,a,i,t[10],23,-1094730640),i=this.hh(i,s,n,a,t[13],4,681279174),a=this.hh(a,i,s,n,t[0],11,-358537222),n=this.hh(n,a,i,s,t[3],16,-722521979),s=this.hh(s,n,a,i,t[6],23,76029189),i=this.hh(i,s,n,a,t[9],4,-640364487),a=this.hh(a,i,s,n,t[12],11,-421815835),n=this.hh(n,a,i,s,t[15],16,530742520),s=this.hh(s,n,a,i,t[2],23,-995338651),i=this.ii(i,s,n,a,t[0],6,-198630844),a=this.ii(a,i,s,n,t[7],10,1126891415),n=this.ii(n,a,i,s,t[14],15,-1416354905),s=this.ii(s,n,a,i,t[5],21,-57434055),i=this.ii(i,s,n,a,t[12],6,1700485571),a=this.ii(a,i,s,n,t[3],10,-1894986606),n=this.ii(n,a,i,s,t[10],15,-1051523),s=this.ii(s,n,a,i,t[1],21,-2054922799),i=this.ii(i,s,n,a,t[8],6,1873313359),a=this.ii(a,i,s,n,t[15],10,-30611744),n=this.ii(n,a,i,s,t[6],15,-1560198380),s=this.ii(s,n,a,i,t[13],21,1309151649),i=this.ii(i,s,n,a,t[4],6,-145523070),a=this.ii(a,i,s,n,t[11],10,-1120210379),n=this.ii(n,a,i,s,t[2],15,718787259),s=this.ii(s,n,a,i,t[9],21,-343485551),e[0]=this.add32(i,e[0]),e[1]=this.add32(s,e[1]),e[2]=this.add32(n,e[2]),e[3]=this.add32(a,e[3])},cmn:function(e,t,i,s,n,a){return t=this.add32(this.add32(t,e),this.add32(s,a)),this.add32(t<<n|t>>>32-n,i)},ff:function(e,t,i,s,n,a,r){return this.cmn(t&i|~t&s,e,t,n,a,r)},gg:function(e,t,i,s,n,a,r){return this.cmn(t&s|i&~s,e,t,n,a,r)},hh:function(e,t,i,s,n,a,r){return this.cmn(t^i^s,e,t,n,a,r)},ii:function(e,t,i,s,n,a,r){return this.cmn(i^(t|~s),e,t,n,a,r)},md51:function(e){txt="";var t,i=e.length,s=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)this.md5cycle(s,this.md5blk(e.substring(t-64,t)));e=e.substring(t-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)n[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),55<t)for(this.md5cycle(s,n),t=0;t<16;t++)n[t]=0;return n[14]=8*i,this.md5cycle(s,n),s},md5blk:function(e){var t,i=[];for(t=0;t<64;t+=4)i[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return i},hex_chr:"0123456789abcdef".split(""),rhex:function(e){for(var t="",i=0;i<4;i++)t+=this.hex_chr[e>>8*i+4&15]+this.hex_chr[e>>8*i&15];return t},hex:function(e){for(var t=0;t<e.length;t++)e[t]=this.rhex(e[t]);return e.join("")},md5:function(e){return this.hex(this.md51(e))},add32:function(e,t){return e+t&4294967295}},queue={levels:{level_1:{label:"Low Speed",duration:1,price:15},level_2:{label:"Medium Speed",duration:3,price:50},level_3:{label:"Medium Speed",duration:10,price:500},level_4:{label:"High Speed",duration:30,price:1e3},level_5:{label:"Ultra-High Speed",duration:30,price:1e6}},patterns:{pattern_1:{label:"Wave",duration:30,price:222},pattern_2:{label:"Earthquake",duration:30,price:233},pattern_3:{label:"Fireworks",duration:30,price:244},pattern_4:{label:"Volcano",duration:30,price:322},pattern_5:{label:"Pulse",duration:30,price:333},pattern_6:{label:"Thunder",duration:30,price:344}},_queue:[],_lastLover:null,_isActive:!1,getLastLover:function(){return this._lastLover},matchLevels:function(e){for(var t in e=parseInt(e),this.patterns)if(e==this.patterns[t].price)return Object.assign({},this.patterns[t]);for(var t in this.levels)if(e<this.levels[t].price)return Object.assign({},this.levels[t])},addToQueue:function(e,t){var i=this.matchLevels(t);i.lovers_name=e,this._queue.push(i),this._lastLover={lovers_name:e,tip_amount:t}},isActive:function(){return this._isActive},processQueue:function(){if(0<this._queue.length){this._isActive=!0;var e=this._queue.shift();cb.sendNotice(e.label+"! My toy is now reacting to "+e.lovers_name+"'s tip for "+e.duration+" seconds!","","","#7d0044","",""),setTimeout(function(){queue.processQueue()},1e3*e.duration)}else this._isActive=!1}},lovers={_list:{},bestLover:null,getLoversCount:function(){return Object.keys(this._list).length},createLover:function(e,t){this._list[e]={name:e,total_tips:parseInt(t)}},sumTip:function(e,t){this._list[e].total_tips+=parseInt(t)},hasLover:function(e){return e in this._list},findBestLover:function(){for(var e in this._list)(null==this.bestLover||this._list[e].total_tips>this.bestLover.total_tips)&&(this.bestLover=this._list[e]);return this.bestLover}};if("e59551b8c3d643fa37545b31a003b592"==md5.md5(cb.settings.check+"iammd5salt@#$")){function selfInvoke(){null!=chatSettings.notice&&(cb.sendNotice(chatSettings.notice,"","",chatSettings.notice_color,"bold",""),cb.setTimeout(selfInvoke,6e4*cb.settings.noticeTimeout))}chatSettings.init(),cb.setTimeout(selfInvoke,6e4*cb.settings.noticeTimeout),cb.onTip(function(e){var t=queue.getLastLover(),i=lovers.findBestLover();null!=t&&t.lovers_name==e.from_user&&t.tip_amount==e.amount&&i.name!=e.from_user||cb.drawPanel(),queue.addToQueue(e.from_user,e.amount),queue.isActive()||queue.processQueue(),lovers.hasLover(e.from_user)?lovers.sumTip(e.from_user,e.amount):lovers.createLover(e.from_user,e.amount)}),cb.onDrawPanel(function(e){return panel.mainPanel()}),cb.drawPanel(),cb.changeRoomSubject(cb.settings.roomTopic+" "+cb.settings.hashTags)}else{function warn(){cb.sendNotice(":alert25 You are not authorized to use 'Kitty Lovers' application copy. Please make a fork, if you really need one. :alert25","","#ff6666",chatSettings.black,"bold",""),cb.setTimeout(warn,2e4)}warn()}
© Copyright Chaturbate 2011- 2026. All Rights Reserved.