Apps Home
|
Create an App
EssaiMadi_01
Author:
grey_madiran
Description
Source Code
Launch App
Current Users
Created by:
Grey_Madiran
var thelist = ""; var bcp = {red: "#FF0000", black: "#000000", white: "#FFFFFF", blue: "#0000FF"}; cb.settings_choices = [ {name: 'tipmin', type: 'int', minValue: 20, maxValue: 20000, defaultValue: 20, label: "Lower Tip Limit "}, {name: 'nbb', type: 'int', minValue: 10, maxValue: 500, defaultValue: 27, label: "Number "}, {name: 'name', type: 'str', minLength: 1, maxLength: 255, label: "Your name "} ]; cb.onDrawPanel(function(user) { return { 'template': '3_rows_11_21_31', 'row1_value': 'To play with ' + cb.settings.name + ', TIP at least ' + cb.settings.tipmin + ' tokens.', 'row2_value': 'In the Tip Note, type one of the numbers below :', 'row3_value': thelist }; }); cb.onMessage(function(msg) { if (!msg['has_tokens']) { cb.chatNotice(msg['user'] + "... buy some tokens to play with me and my balloons...", "", "", bcp.red, "bold"); } return msg; }); cb.onTip(function(tip) { var TipFrom = tip['from_user']; var TipAmount = tip['amount']; var TipBalloon = tip['message']; cb.chatNotice("", "", "", bcp.white); cb.chatNotice(TipFrom + " has tipped " + TipAmount + " tokens...", "", "", bcp.red, "bold"); cb.chatNotice(" he has chosen the prize in balloon number " + TipBalloon, "", "", bcp.red, "bold"); cb.chatNotice("", "", "", bcp.white); }); function ShowIntro() { var TipFrom = "Madiran"; var TipAmount = 43; var TipBalloon = "17"; cb.chatNotice("", "", "", bcp.white); cb.chatNotice(cb.settings.name + " has inflated balloons and has numbered them from 1 to " + cb.settings.nbb + ".", "","",bcp.blue,"bold"); cb.chatNotice("Every balloon contains a paper with a prize written on it by " + cb.settings.name + ".", "","",bcp.blue,"bold"); cb.chatNotice("", "", "", bcp.white); cb.chatNotice("To discover the prize contained in a balloon, " + cb.settings.name + " will have to burst it.", "","",bcp.blue,"bold"); cb.chatNotice("", "", "", bcp.white); cb.chatNotice("If you want to play with " + cb.settings.name + ", you have to tip at least " + cb.settings.tipmin + " tokens and type in the Tip Note the number of the balloon you want " + cb.settings.name + " bursts.", "","",bcp.blue,"bold"); cb.chatNotice("", "", "", bcp.white); cb.chatNotice("Be careful not to write anything else than the number in the Tip Note or your request may be ignored.", "","",bcp.blue,"bold"); cb.chatNotice("", "", "", bcp.white); cb.chatNotice(TipFrom + " has tipped " + TipAmount + " tokens.", "", "", bcp.red, "bold"); cb.chatNotice(" he has chosen the prize in balloon number " + TipBalloon, "", "", bcp.red, "bold"); cb.chatNotice("", "", "", bcp.white); cb.setTimeout(ShowIntro, 90000); } function BuildTheList() { var p; thelist = ""; p = 1; while (p <= cb.settings.nbb) { thelist = thelist + p + " "; p++; } cb.drawPanel(); } function Init() { BuildTheList(); cb.changeRoomSubject("TIP at least " + cb.settings.tipmin + " and choose a number... " + cb.settings.name + " will give you your prize !" ); ShowIntro(); } Init();
© Copyright Chaturbate 2011- 2025. All Rights Reserved.