Apps Home
|
Create an App
Test250
Author:
c_eng
Description
Source Code
Launch App
Current Users
Created by:
C_Eng
//Author: c_eng //Date: 03/18/2019 //Subject: First script made by myself //Declaration of var var Naruto_is_hard = 0; var total_tipped = 0; //Function that detects messsages entry cb.onMessage(messageHandler); //Function that analysis the text entry function messageHandler(msg){ if(msg['m'] == 'Naruto'){ cb.chatNotice('O Naruto pode ser um pouco duro as vezes!'); Naruto_is_hard = 1; cb.drawPanel(); }else{ cb.chatNotice('Oh you arent an otaku =(\n'); } } //Function that creates the box menu below the video screen cb.onDrawPanel(function(user) { var text = ''; if(Naruto_is_hard) text += 'O Naruto esta durao!!'; return { 'template': '3_rows_of_labels', 'row1_label': 'Tip Received / Goal :', 'row1_value': total_tipped, 'row2_label': text, 'row2_value': user['user'], 'row3_label': 'Latest Tip Received:', 'row3_value': '0' }; }); //Function that gets the amount tipped by the users cb.onTip(function (tip) { total_tipped += parseInt(tip['amount']); actionSelector(parseInt(tip['amount'])); cb.chatNotice("Total Tipped: " + total_tipped); cb.chatNotice(tip); }); //Function that threats the entry the probabilitys function actionSelector(act){ if( act > 0 && act <= 10){ cb.chatNotice('Level 1 activated!'); }else if( act > 10 && act <= 100){ cb.chatNotice('Level 2 activated! Owow'); }else if( act > 100){ cb.chatNotice('Level 3 activated! I gonna cum aaaaaa!'); } switch(act){ case 5: cb.chatNotice('Hard spank x3'); break; case 33: cb.chatNotice('I touch my pussy!'); break; case 69: cb.chatNotice('Doggy style mode'); break; default: cb.chatNotice('Thanks for like me!'); break; } }
© Copyright Chaturbate 2011- 2025. All Rights Reserved.