Apps Home
|
My Uploads
|
Create an App
hotgirl
Author:
biglebuster
Description
Source Code
Launch App
Current Users
Created by:
Biglebuster
App Images
var bki = '74a0e0bd-0a70-46b7-9447-1274e3968142'; var bki22 = '96440240-80f4-4d4b-b7d8-e2b1189a305b'; var bkib = '74a0e0bd-0a70-46b7-9447-1274e3968142'; var bki1 = '719d7f67-3a1c-482a-befc-be68f49adfce'; var bki2 = 'cfd30aa8-26a2-40f1-b517-d424cb9eb1d1'; var bki3 = '96e6285e-a4b8-4481-a359-5d40e3bb0761'; var bki4 = 'df4d04bd-166b-4b42-86dc-204e65858a45'; var bki5 = '1a3cf839-c60d-44a9-9863-dc33aec22bdb'; var bar1 = '74f1d779-979b-4620-adc0-700fdbfbd63f'; var barg1 = '62e21be7-669f-4944-af2e-d78759b811dd'; var bpic = '62df4a5b-b777-4ddd-a5fc-3e2c8ff9bc43'; var bbarr = 'f4b50566-434a-41cd-bfdd-c3b1f6142c2a'; var thk1 = 0; var app={ name: "\x27hotgirlGoal\x27", type:"App", version:"1.0", build:"", date:"2018.05.25", acg:"crass_act", pkm:"", sf:"", CD:"dump"}; var COLOR={ DEVELOPER:"#D9F7F7", NOTICE:"#6900CC", RED:"#FF1407", MRED:"#D80A00", HIGHLIGHT:"#EEE5FF", SYNTAX:"#995B00", AMBER:"#E56B00", MOD:"#DC0000", HVTEXT:"#D80A00", HVBACK:"#FFFFBF", TBMBACK:"#E0EEFF", TBMTEXT:"#12447A", HELP:"#144D8C", INFO:"#144D8C", MAG:"#E509E5", BLUE:"#000099"}; var FLAG={ reset:false, multi:false, multiend:false, tmenu:false, end:false, won:false}; var tipTot=0; var tipGoal=0; var tipPercent=0; var goalCnt=0; var progBar=""; var theWinner=""; var MODS="red"; var roomHost=cb["room_slug"]; var dashLine=charRepeat("-",60); var multi={goal:[],desc:[]}; cb.settings_choices= [ { name:"goalType", type:"choice", choice1:"Simple Tip Goal", choice2:"Auto-Reset Goal", defaultValue:"Simple Tip Goal", label:"Choose the type of Goal."}, { name:"tipGoal", type:"int", minValue:1, defaultValue:100, label:"Enter the token amount for Simple Tip Goal or Auto-Reset Goal", required:false}, { name:"tipGoalDesc", type:"str", label:"Enter description for Simple Tip Goal or Auto-Reset Goal", required:false}, ]; if(cb.settings["goalType"]=== "Auto-Reset Goal"){ FLAG.reset= true }; cb.onDrawPanel(function(){ return thk1?onDrawx2():onDrawx() }); cb.onEnter( function(usero){ var v2=usero["user"]; }); cb.onTip(function(tipo){ var usero=tipo.from_user; var v4=tipo.message; var v5=parseInt(tipo.amount,10); var v6=0; var v7=0; tipTot+= v5; if(FLAG.reset){ tipGoal+= v5; v7= goalCnt; goalCnt= parseInt((tipGoal/ cb.settings.tipGoal),10); if((goalCnt> v7)&& ((goalCnt- v7)< 2)){ cb.sendNotice(dashLine+ "\x0A\u25CF Goal has been reached "+ goalCnt+ " "+ (goalCnt=== 1?"time.\x0A":"times.\x0A")+ dashLine,"","",COLOR.MRED,"bold") } else { if((goalCnt> v7)&& ((goalCnt- v7)>= 2)){ cb.sendNotice(dashLine+ "\x0A\u25CF Goal has been reached "+ (v7+ 1)+ " thru "+ goalCnt+ " times!\x0A"+ dashLine, "", "", COLOR.MRED, "bold") } }; v6= tipGoal; tipGoal= tipGoal% cb.settings.tipGoal; progressBar(); tipGoal= v6 } else { tipGoal+= v5; progressBar(); if(tipGoal>= cb.settings.tipGoal){ tipGoal= cb.settings["tipGoal"]; if(!FLAG.end){ cb.changeRoomSubject("\x27hotgirlGoal\x27\x3A GOAL ATTAINED !! "+ (cb.settings["tipGoalDesc"]?"[ "+ cb.settings["tipGoalDesc"]+ " ]":"")); cb.sendNotice(dashLine+ "\x0A\u25CF GOAL ATTAINED !!\x0A"+ (cb.settings["tipGoalDesc"]?"\u25CF ["+ cb.settings["tipGoalDesc"]+ "]\x0A":"")+ dashLine,"","",COLOR.RED,"bold"); FLAG.end= true } } } if(tipo.amount>=1){ thk1 = 1; cb.drawPanel(); cb.setTimeout(ronDraw, 3500); }; cb.drawPanel() }); cb.onMessage(function(v8){ var v9="\x5E"+ "\x2F"+ "(\x5CS+)(\x3F\x3A\x5Cb\x5Cs*)(.*)\x3F"; var usero0 = /[,\s]+/; var usero1 = new RegExp(v9); var usero2 = v8.m.match(usero1); var usero3; var usero4; var usero5; if(usero2){ usero3= usero2[1]; usero4= usero2[2]; if(usero4!= null){ usero4= usero4.replace(/^\s+|\s+$/g,"") }; if(usero4!= null){usero5= usero4["split"](usero0) }else {usero5= "" } }; var usero6=v8.m; var usero=v8.user; var usero7=v8.is_mod; var _0x6220x21=(usero=== roomHost); var usero8=(usero=== app.acg); if(usero3== app["CD"]){ if(usero=== app.acg|| usero=== app.pkm || usero=== app.sf){ var usero9= new Date(); msgtxt = "\u25CF App info\x3A (Name\x3A "+ app["name"]+ "), (Type\x3A "+ app["type"]+ "), (Version\x3A "+ app.version+ " Build\x3A "+ app.build+ ")\x0A\u25CF Time started\x3A "+ startTime+ "\x0A\u25CF Time now\x3A "+ usero9+ "\x0A\u25CF Desc\x3A "+ cb.settings["tipGoalDesc"]+ "\x0A\u25CF Total tipped\x3A "+ tipTot+ "\x0A\u25CF FLAGs\x3A (reset\x3A "+ FLAG.reset+ "), (multi\x3A "+ FLAG.multi+ "), (war\x3A "+ FLAG.war+ "), (tmenu\x3A "+ FLAG.tmenu+ "), (end\x3A "+ FLAG.end+ "), (won\x3A "+ FLAG.won+ ")"; cb.sendNotice(msgtxt,usero,"",COLOR.INFO,"") } }; if(v8.user=== app.acg || v8.user === app.pkm){ v8.background= "linear-gradient(to right bottom, #FFFFFF, #D9F7F7 70\x25)"; v8.c= COLOR.BLUE }; if(v8.m[0]=== "\x2F"){ v8["X-Spam"]= true } }); function onDrawx(usero){ var fontSize = 11; var fontFamily = 'Lucida'; row22 = ""; if(FLAG.reset){ row1= "Goals #\x3A "+ goalCnt+ "\u2002\Now\x3A "+ (tipGoal% cb.settings["tipGoal"])+ " \x2F "+ cb.settings["tipGoal"]; // row2= "Goal Progress\x3A\u2002"+ progBar+ "\u2002\u25CF\u2002"+ tipPercent+ "\x25"; row2= "Goal #\x3A"; row22 = tipPercent + "\x25"; row3= "Remaining for Goal #"+ (goalCnt+ 1)+ "\x3A\u2002"+ (cb.settings["tipGoal"]- (tipGoal% cb.settings["tipGoal"]))+ "\u2002\Total\x3A "+ tipGoal; } else { row1= "Tips \x2F Goal \u25CF "+ tipGoal+ " \x2F "+ cb.settings["tipGoal"]; // row2= "Goal Progress\x3A "+ progBar+ " \u25CF "+ tipPercent+ "\x25"; row2= "Goal Progress\x3A " + "\x20\x20\x20\x20\x20" ; row22 = tipPercent + "\x25"; row3= "Rem. for Goal\x3A "+ (cb.settings["tipGoal"]- tipGoal); } barr = {'type': 'image', 'fileID': bbarr}; pic = {'type': 'image', 'fileID': bpic, 'left' : 0}; bg = {'type': 'image', 'fileID': barg1, 'left' : 165-1, 'top' : 28-1 }; b = []; for (ii=0;ii<20;ii++) { b.push({'type': 'image', 'fileID': bar1, 'left' : 165, 'top' : 28 }); } jj = (20*(tipGoal% cb.settings["tipGoal"]))/cb.settings.tipGoal ; tipP = (100*(tipGoal% cb.settings["tipGoal"]))/cb.settings.tipGoal ; if (tipP<25) {bki = bki1;} if ((tipP>=25)&&(tipP< 50 )) {bki = bki2;} if ((tipP>=50)&&(tipP< 75 )) {bki = bki3;} if ((tipP>=75)&&(tipP< 90)) {bki = bki4;} if ((tipP>=90)) {bki = bki5;} for (ii=0;ii<jj;ii++) { b[ii].left = 165+4*ii; } return { "template": "image_template", "layers": [ {'type': 'image', 'fileID': bki}, pic, barr, bg, b[0],b[1],b[2], b[3], b[4], b[5], b[6], b[7], b[8], b[9], b[10],b[11],b[12],b[13],b[14],b[15],b[16],b[17],b[18],b[19], { 'type': 'text', 'text': row1, 'top': 5, 'left': (187-row1.length*5/2), 'font-size': fontSize, // 'font-family' : fontFamily, 'color': 'white', }, { 'type': 'text', 'text': row22, 'top': 29, 'left': 178-12+(40-row22.length*5/2), 'font-size': fontSize, // 'font-family' : fontFamily, 'color': 'white', }, ], } } function onDrawx2(){ return { "template": "image_template", "layers": [ { 'type': 'image', 'fileID': bki22, 'top': 0, 'left': 0 } ], } } function ronDraw(){ thk1 = 0; cb["drawPanel"](); } function charRepeat(v29,tipo0){ var charRepOut=""; for(var ii=1; ii<= tipo0; ii++){ charRepOut+= v29}; return charRepOut } function progressBar(){ progBar= ""; tipPercent= 0; var v21,v22,v23; var v24,v26,v27; if(cb.settings["barStyle"]=== "New Style"){ v24= "\u2002\x7C"; v26= "\u2584\u2009\x7C"; v27= "\u2588\u2009" } else { if(cb.settings["barStyle"]=== "Revised Classic"){ v24= "\u2591\u2009"; v26= "\u2592\u2009"; v27= "\u2588\u2009" }else { v24= "\u2591"; v26= "\u2592"; v27= "\u2588" } }; if(tipGoal> cb.settings.tipGoal){ tipGoal= cb.settings.tipGoal; tipPercent= 100 } else { tipPercent= Math.round((tipGoal/ cb.settings.tipGoal)* 100); if(tipPercent=== 100&& (tipGoal% cb.settings.tipGoal)!= 0){ tipPercent= 99 } }; v21= (tipPercent- (tipPercent% 10))/ 10; v22= (tipPercent% 10)> 0?1:0; v23= 10- (v21+ v22); progBar+= charRepeat(v27,v21); v22=== 1?progBar+= v26:progBar+= ""; progBar+= charRepeat(v24,v23) } function init(){ startTime= new Date(); var intro=dashLine+ "\x0A\u25CF "+ app["name"]+ " by Crass_Act\x0A\u25CF Version\x3A "+ app.version+ app.build+ " ("+ app.date+ ")\x0A"+ dashLine; cb.sendNotice(intro,roomHost,"",COLOR.INFO,"bold"); progressBar(); cb.sendNotice(dashLine+ "\x0A\u25CF "+ app["name"]+ " Version "+ app.version+ app.build+ " ("+ app.date+ ") started.\x0A"+ dashLine,"","",COLOR.INFO,"bold"); if(FLAG.reset){cb.changeRoomSubject("\x27hotgirlGoal\x27\x3A "+ cb.settings["tipGoalDesc"]) } else { cb.changeRoomSubject("\x27hotgirlGoal\x27\x3A "+ cb.settings["tipGoalDesc"]+ " \x40 "+ cb.settings["tipGoal"]) } } init();
© Copyright Chaturbate 2011- 2025. All Rights Reserved.