Apps Home
|
My Uploads
|
Create an App
pdiazqBanner
Author:
pdiazq
Description
Source Code
Launch App
Current Users
Created by:
Pdiazq
App Images
var alegre= '131f0585-12fe-401f-b46a-4fa1d2f7f0f5'; var quieta= '61318775-7f54-4685-86ba-651af9b91d93'; var quietaLinda= '67ae7a22-c3ed-4a5f-9402-cd8cbeac23e0' var orgullosa='988d9988-0c33-4f1e-aefe-2258f387ad34' var cabalgando='8e295d58-4a9c-4f72-863a-690e7cd77056' var caminaOso='c51d6732-1f07-424c-bee7-dfeab0f529be' var comeManzana='5a3c0a28-c586-412a-8194-7d5237410ce2' var pucheros='75840b61-d840-4025-b83c-9de9c75eadb9' var mirandoOso='50922d2b-f928-40fc-b414-2ced5652c95e' var mal='8855becc-9807-484a-88e3-4ab23ab9b2b0' var meneito= 'ef2c414e-eddf-451f-ab35-f71a241e3e22'; var flechazo= 'bc7eda7e-9509-4ee9-a60f-a496f941c87d' var back= '8d783d46-692e-4385-ac28-4b1fc41147de' var think= '16bb71ab-ac8c-40d6-9d2b-abe050d5bf4a' // // var emoji = String.fromCodePoint(0x1F970) var texGift1 ='' var nameModel = 'Sabrina_parks' var fontSize = 18; var textColor1 = 'white' var textColor2 = 'white' var fontStyle = 'bold' var topFoto= -80 var leftFoto= 0 var foto= quieta; var texto='' var texto2= '0' function fquieta (txt){ if (txt){ texto2= txt } texto='' foto= quieta; topFoto= -80 leftFoto= 0 redraw() } fquieta('') function fquietaLinda (txt){ if (txt){ texto2= txt } texto='' foto= quietaLinda; topFoto= -80 leftFoto= 0 redraw() } function forgullosa (txt){ if (txt){ texto2= txt } texto='' foto= orgullosa; topFoto= -80 leftFoto= 0 redraw() } function fcabalgando (txt){ if (txt){ texto2= txt } texto='' foto= cabalgando; topFoto= -30 leftFoto= -100 redraw() } function fcaminaoso (txt){ if (txt){ texto2= txt } texto='' foto= caminaOso; topFoto= -50 leftFoto= 0 redraw() } function fcomemanzana (txt){ if (txt){ texto2= txt } texto='' foto= comeManzana; topFoto= -80 leftFoto= -100 redraw() } function fpucheros (txt){ if (txt){ texto2= txt } texto='' foto= pucheros; topFoto= -80 leftFoto= -80 redraw() } function fmirandooso (txt){ if (txt){ texto2= txt } texto='' foto= mirandoOso; topFoto= -50 leftFoto= 0 redraw() } function fmeneito (txt, txt2){ texto= txt texto2= txt2 fontSize = 22; foto= meneito; topFoto= -30 leftFoto= 0 redraw() } function fback (txt, txt2){ textColor1 = 'black' textColor2 = 'green' texto= txt texto2= txt2 foto= back; topFoto= -30 leftFoto= 0 redraw() } function fthink(txt2){ if (txt2){ texto2= txt2 } texto='' foto=think topFoto= -80 leftFoto= 0 redraw() } function falegre(txt, txt2){ texto=txt texto2= txt2 fontSize = 22; foto=alegre topFoto= -80 leftFoto= 0 redraw() } function fflechazo(txt, txt2){ texto= txt texto2= txt2 foto=flechazo topFoto= -30 leftFoto= 0 redraw() } //Notice: Total Tipped: 1 //Notice: map[from_user_tipped_alot_recently:true from_user_tipped_tons_recently:false to_user:pdiazq from_user_has_tokens:true from_user_in_fanclub:false from_user_gender:m from_user_is_mod:false from_user_tipped_recently:true is_anon_tip:false message: amount:1 from_user:pdiazq1] cb.settings_choices = [ // { // name: 'namemodel', // type: 'str', // minLength: 5, // maxLength: 20, // defaultValue:'', // label: 'Nombre de la modelo:' // }, { name: 'Meta', type: 'int', minValue: 1, masValue: 128, defaultValue:99, label: "Plantear Meta" } ]; var dict = {} var total_tipped = 0; cb.onTip(function (tip) { total_tipped += parseInt(tip['amount']) //cb.chatNotice("Total Tipped: " + total_tipped); //cb.chatNotice("Thanks to " + tip['from_user']) //cb.chatNotice(tip); var tipper= tip['from_user'] if (dict[tipper]){ dict[tipper] = dict[tipper] + parseInt(tip['amount']) } else { dict[tipper] = parseInt(tip['amount']) } var champ = Object.keys(dict).reduce((a, b) => dict[a] > dict[b] ? a : b); if (tip['amount'] >= 10){ fmeneito(emoji+' '+tipper, total_tipped) //fmeneito(emoji+' '+tipper, dict.tipper) } else { falegre(tipper, total_tipped) } if (total_tipped <= cb.settings.Meta/10 ){ setTimeout(moveItem, 2000+tip['amount']*1000) function moveItem(){ fquieta(total_tipped) } } else if (total_tipped <= cb.settings.Meta*2/10 ) { setTimeout(moveItem, 2000+tip['amount']*1000) function moveItem(){ fquietaLinda(total_tipped) } } else if (total_tipped <= cb.settings.Meta*3/10 ) { setTimeout(moveItem, 2000+tip['amount']*1000) function moveItem(){ fthink(total_tipped) } } else if (total_tipped <= cb.settings.Meta*4/10 ) { setTimeout(moveItem, 2000+tip['amount']*1000) function moveItem(){ forgullosa(total_tipped) } } else if (total_tipped <= cb.settings.Meta*5/10 ) { setTimeout(moveItem, 2000+tip['amount']*1000) function moveItem(){ fcabalgando(total_tipped) } } else if (total_tipped <= cb.settings.Meta*6/10 ) { setTimeout(moveItem, 2000+tip['amount']*1000) function moveItem(){ fcaminaoso(total_tipped) } } else if (total_tipped <= cb.settings.Meta*7/10 ) { setTimeout(moveItem, 2000+tip['amount']*1000) function moveItem(){ fcomemanzana(total_tipped) } } else if (total_tipped <= cb.settings.Meta*8/10 ) { setTimeout(moveItem, 2000+tip['amount']*1000) function moveItem(){ fmirandooso(total_tipped) } } else if (total_tipped <= cb.settings.Meta*9/10 ) { setTimeout(moveItem, 2000+tip['amount']*1000) function moveItem(){ fquietaLinda(total_tipped) } } else { setTimeout(moveItem, 2000+tip['amount']*1000) function moveItem(){ fflechazo(emoji+' '+champ, total_tipped) } } }); function redraw() { cb.onDrawPanel(function(user) { return { "template": "image_template", "layers": [ { 'type': 'image', 'fileID': foto, 'left':leftFoto, 'top':topFoto, }, { 'type': 'text', //'text': cb.settings.namemodel, 'text': texto, 'top': 5, 'left': 5, 'font-size': fontSize, 'color': textColor1, 'font-family':'verdana', 'font-style': fontStyle }, { 'type': 'text', 'text': 'Goal: '+ texto2+'/'+cb.settings.Meta , 'top': 38, 'left': 80, 'font-size': fontSize, 'color': textColor2, 'font-style': fontStyle }, ], }; }); cb.drawPanel(); }
© Copyright Chaturbate 2011- 2024. All Rights Reserved.