Apps Home
|
Create an App
Lillylol Casino Slot
Author:
cityplay
Description
Source Code
Launch App
Current Users
Created by:
Cityplay
/*~~~~~~~~~~~~~~~~~ ~~Arcade Slots ~~Version: 0.0.1 ~~Author: Pluckysub ~~Date: 2020-09-01 ~~~~~~~~~~~~~~~~~~~ */ cb.settings_choices = [ { name: 'cost', type: 'int', label: 'Token price per spin?', minValue: 1, defaultValue: 50 }, { name: 'slot_no', type: 'choice', label: 'How many number/fruit per wheel?', choice1: 6, choice2: 10, default: 6 }, { name: 'theme', type: 'choice', label: 'Colour theme', choice1: 'Red', choice2: 'Gradient Red', choice3: 'Blue', choice4: 'Gradient Blue', choice5: 'Pink', choice6: 'Gradient Pink', choice7: 'Lilac', choice8: 'Gradient Lilac', choice9: 'Purple', choice10: 'Gradient Purple', choice11: 'Green', choice12: 'Gradient Green', choice13: 'Black', choice14: 'Gradient Black' }, { name: 'grad_dir', type: 'choice', label: 'If using a gradient, which direction would you like it? (dark to light)', choice1: 'to right', choice2: 'to right bottom', choice3: 'to right top', choice4: 'to top', choice5: 'to bottom', choice6: 'to left', choice7: 'to left bottom', choice8: 'to left top' }, { name: 'App_add_time', type: 'choice', label: 'How often should the app advertise itself?', choice1: 2, choice2: 5, choice3: 10, choice4: 15, choice5: 20, choice6: 30, choice7: 45, choice8: 60, defaultValue: 10 }, { name: 'forfeits', type: 'choice', label: 'Forfeits active?', choice1: 'Yes', choice2: 'No', default: 'No' }, {name: 'jackpot_1', type: 'str', label: 'Jackpot 1', default: '3 mins control toy'}, {name: 'jackpot_2', type: 'str', label: 'Jackpot 2', default: 'Dildo Fucking'}, {name: 'jackpot_3', type: 'str', label: 'Jackpot 3', default: 'Titjob'}, {name: 'jackpot_4', type: 'str', label: 'Jackpot 4', default: 'Footjob'}, {name: 'jackpot_5', type: 'str', label: 'Jackpot 5', default: 'Pussy Play'}, {name: 'jackpot_6', type: 'str', label: 'Jackpot 6', default: '10 mins fully nude'}, {name: 'jackpot_7', type: 'str', label: 'Jackpot 7', default: '(Optional)'}, {name: 'jackpot_8', type: 'str', label: 'Jackpot 8', default: '(Optional)'}, {name: 'jackpot_9', type: 'str', label: 'Jackpot 9', default: '(Optional)'}, {name: 'jackpot_10', type: 'str', label: 'Jackpot 10', default: '(Optional)'}, {name: 'dubs_1', type: 'str', label: 'Doubles 1', default: 'Titty flash'}, {name: 'dubs_2', type: 'str', label: 'Doubles 2', default: 'Pussy flash'}, {name: 'dubs_3', type: 'str', label: 'Doubles 3', default: 'Feet tease'}, {name: 'dubs_4', type: 'str', label: 'Doubles 4', default: 'Ass in doggy'}, {name: 'dubs_5', type: 'str', label: 'Doubles 5', default: 'Blowjob tease'}, {name: 'dubs_6', type: 'str', label: 'Doubles 6', default: 'Close up of choice'}, {name: 'dubs_7', type: 'str', label: 'Doubles 7', default: '(Optional)'}, {name: 'dubs_8', type: 'str', label: 'Doubles 8', default: '(Optional)'}, {name: 'dubs_9', type: 'str', label: 'Doubles 9', default: '(Optional)'}, {name: 'dubs_10', type: 'str', label: 'Doubles 10', default: '(Optional)'}, {name: 'forfeit_1', type: 'str', label: 'forfeit 1', default: 'Slap yourself'}, {name: 'forfeit_2', type: 'str', label: 'forfeit 2', default: 'Slap your cock'}, {name: 'forfeit_3', type: 'str', label: 'forfeit 3', default: 'Slap your balls'}, {name: 'forfeit_4', type: 'str', label: 'forfeit 4', default: 'Tip 100'}, {name: 'forfeit_5', type: 'str', label: 'forfeit 5', default: 'Embarrassing confession in chat'}, {name: 'forfeit_6', type: 'str', label: 'forfeit 6', default: 'Wear panties'}, {name: 'forfeit_7', type: 'str', label: 'forfeit 7', default: '(Optional)'}, {name: 'forfeit_8', type: 'str', label: 'forfeit 8', default: '(Optional)'}, {name: 'forfeit_9', type: 'str', label: 'forfeit 9', default: '(Optional)'}, {name: 'forfeit_10', type: 'str', label: 'forfeit 10', default: '(Optional)'}, { name: 'subject_change', type: 'choice', label: 'Would you like the app to change your subject', choice1: 'Yes', choice2: 'No', default: 'No'}, { name: 'subject_words', type: 'str', label: 'Subject (max 105 Characters)', maxLength: 105, default: 'Playing slots! Test your luck and play with me!'}, {name: 'tag_1', type: 'str', label: 'Tags (# included) #', maxLength: 20, default: 'slots'}, {name: 'tag_2', type: 'str', label: 'Tags (# included) #', maxLength: 20, default: 'games'}, {name: 'tag_3', type: 'str', label: 'Tags (# included) #', maxLength: 20, default: 'play'}, {name: 'tag_4', type: 'str', label: 'Tags (# included) #', maxLength: 20, default: 'ass'}, {name: 'tag_5', type: 'str', label: 'Tags (# included) #', maxLength: 20, default: 'pussy'} ] var jackpot = []; var dubs = []; var forfeit = []; var font_size, font_weight, font_colour, light_colour, dark_colour; if (cb.settings.theme == "Red") { font_size = 11; font_weight = "bold"; font_colour = "#CE0000"; light_colour = "#FF5454"; dark_colour = "#990000"; } else if (cb.settings.theme == "Gradient Red") { font_size = 11; font_weight = "bold"; font_colour = "#CE0000"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#FF4D4D,#FF9999)"; dark_colour = "#990000"; } else if (cb.settings.theme == "Blue") { font_size = 11; font_weight = "bold"; font_colour = "#0013CE"; light_colour = "#b8beff"; dark_colour = "#000D89"; } else if (cb.settings.theme == "Gradient Blue") { font_size = 11; font_weight = "bold"; font_colour = "#0013CE"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#6470F7,#CCD0FF)"; dark_colour = "#000D89"; } else if (cb.settings.theme == "Pink") { font_size = 11; font_weight = "bold"; font_colour = "#ff61ab"; light_colour = "#ffdbec"; dark_colour = "#fa0578"; } else if (cb.settings.theme == "Gradient Pink") { font_size = 11; font_weight = "bold"; font_colour = "#ff61ab"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#FF70B8,#FFD1E8)"; dark_colour = "#fa0578"; } else if (cb.settings.theme == "Lilac") { font_size = 11; font_weight = "bold"; font_colour = "#472e47"; light_colour = "#C8A2C8"; dark_colour = "#472e47"; } else if (cb.settings.theme == "Gradient Lilac") { font_size = 11; font_weight = "bold"; font_colour = "#472e47"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#e6bee6,#ab78ab)"; dark_colour = "#472e47"; } else if (cb.settings.theme == "Purple") { font_size = 11; font_weight = "bold"; font_colour = "#8a0ac9"; light_colour = "#e0a1ff"; dark_colour = "#3a0057"; } else if (cb.settings.theme == "Gradient Purple") { font_size = 11; font_weight = "bold"; font_colour = "#8a0ac9"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#C757FF,#F0D1FF)"; dark_colour = "#3a0057"; } else if (cb.settings.theme == "Green") { font_size = 11; font_weight = "bold"; font_colour = "#06c90d"; light_colour = "#abffae"; dark_colour = "#005203"; } else if (cb.settings.theme == "Gradient Green") { font_size = 11; font_weight = "bold"; font_colour = "#06c90d"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#64B967,#D6F0D7)"; dark_colour = "#005203"; } else if (cb.settings.theme == "Black") { font_size = 11; font_weight = "bold"; font_colour = "#292929"; light_colour = "#b5b5b5"; dark_colour = "#000000"; } else if (cb.settings.theme == "Gradient Black") { font_size = 11; font_weight = "bold"; font_colour = "#292929"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#919191,#EBEBEB)"; dark_colour = "#000000"; } cb.onEnter(function (user) { showAppAd(user['user']); }); cb.onDrawPanel(function (user) { return { 'template': '3_rows_11_21_31', 'row1_value': cb.settings.cost + ' tokens', 'row2_value': '#JACKPOTS', 'row3_value': '#DOUBLES', } }); cb.onTip(function (tip) { var roll_1 = Math.floor(Math.random() * cb.settings.slot_no + 1) var roll_2 = Math.floor(Math.random() * cb.settings.slot_no + 1) var roll_3 = Math.floor(Math.random() * cb.settings.slot_no + 1) var roll_4 = Math.floor(Math.random() * cb.settings.slot_no + 1) var msg = " " if (tip['amount'] === cb.settings.cost) { if (roll_1 === roll_2 && roll_1 === roll_3) { msg = (":PSASroll" + roll_1 + " - :PSASroll" + roll_1 + " - :PSASroll" + roll_1 + " - JACKPOT!!! " + cb.settings['jackpot_' + roll_1]); } if ((roll_1 === roll_2 && roll_1 != roll_3) || (roll_1 != roll_2 && roll_2 === roll_3)) { msg = (":PSASroll" + roll_1 + " - :PSASroll" + roll_2 + " - :PSASroll" + roll_3 + " - Doubles! " + cb.settings['dubs_' + roll_2]); } if (roll_1 != roll_2 && roll_1 === roll_3) { msg = (":PSASroll" + roll_1 + " - :PSASroll" + roll_2 + " - :PSASroll" + roll_3 + " - Unlucky, try again..."); } if (roll_1 != roll_2 && roll_1 != roll_3 && roll_2 != roll_3 && cb.settings.forfeits === 'Yes') { msg = (":PSASroll" + roll_1 + " - :PSASroll" + roll_2 + " - :PSASroll" + roll_3 + " - Ouch! Forfeit time! "+ cb.settings['forfeit_' + roll_4]) } cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } }); cb.onMessage (function (msg) { var m = msg.m; var user = msg.user; var isMod = msg.is_mod; var isHost = user === cb.room_slug; var roll_1 = Math.floor(Math.random() * cb.settings.slot_no + 1) var roll_2 = Math.floor(Math.random() * cb.settings.slot_no + 1) var roll_3 = Math.floor(Math.random() * cb.settings.slot_no + 1) var roll_4 = Math.floor(Math.random() * cb.settings.slot_no + 1) var msg = " " // just check once if (m.charAt(0) === '/') { msg['X-Spam'] = true; } if (m.match(/#jackpots/i)) { if (isHost || isMod) { showJackpots(); } else { showJackpots(user); } } if (m.match(/#doubles/i)) { if (isHost || isMod) { showDubs(); } else { showDubs(user); } } if (m.match(/#Spin/i)) { if (isHost) { if (roll_1 === roll_2 && roll_1 === roll_3) { msg += (":PSASroll" + roll_1 + " - :PSASroll" + roll_1 + " - :PSASroll" + roll_1 + " - JACKPOT!!! " + cb.settings['jackpot_' + roll_1]); } if ((roll_1 === roll_2 && roll_1 != roll_3) || (roll_1 != roll_2 && roll_2 === roll_3)) { msg += (":PSASroll" + roll_1 + " - :PSASroll" + roll_2 + " - :PSASroll" + roll_3 + " - Doubles! " + cb.settings['dubs_' + roll_2]); } if (roll_1 != roll_2 && roll_1 === roll_3) { msg += (":PSASroll" + roll_1 + " - :PSASroll" + roll_2 + " - :PSASroll" + roll_3 + " - Unlucky, try again..."); } if ((roll_1 != roll_2 && roll_1 != roll_3 && roll_2 != roll_3) && cb.settings.forfeits === "No") { msg = (":PSASroll" + roll_1 + " - :PSASroll" + roll_2 + " - :PSASroll" + roll_3 + " - Unlucky, try again..."); } if ((roll_1 != roll_2 && roll_1 != roll_3 && roll_2 != roll_3) && cb.settings.forfeits === "Yes") { msg = (":PSASroll" + roll_1 + " - :PSASroll" + roll_2 + " - :PSASroll" + roll_3 + " - Ouch! Forfeit time! "+ cb.settings['forfeit_' + roll_4]) } } else { msg += "Not for you!"; } cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } }); function setJackpots() { for (var i = 1; i <= cb.settings.slot_no; i++) { jackpot.push(cb.settings['jackpot_' + i]); } } function setDoubles() { for (var i = 1; i <= cb.settings.slot_no; i++) { dubs.push(cb.settings['dubs_' + i]); } } function showJackpots(username) { if (jackpot.length) { var msg = "~~~ POSSIBLE JACKPOTS ~~~"; for (var i = 1; i <= (cb.settings.slot_no); i++) { if (jackpot.indexOf(cb.settings['jackpot_' + i]) >= 0) msg += "\n :PSASroll" + i + " - " + cb.settings['jackpot_' + i]; } } cb.sendNotice(msg, username, light_colour, dark_colour, 'bold'); } function showDubs(username) { if (dubs.length) { var msg = "~~~ POSSIBLE Doubles ~~~"; for (var i = 1; i <= (cb.settings.slot_no); i++) { if (dubs.indexOf(cb.settings['dubs_' + i]) >= 0) msg += "\n :PSASroll" + i + " - " + cb.settings['dubs_' + i]; } } cb.sendNotice(msg, username, light_colour, dark_colour, 'bold'); } function showAppAd(username) { var msg = ""; if (username != undefined) { msg += username + ", take a spin on slots and test your luck! Only " + cb.settings.cost + " tokens and you could be a winner!" } else { msg += "Arcade Slots by xPluckySubx \n"; msg += "Test your luck and take a spin on slots! I would love to play.\n"; msg += "Each spin could win one of " + cb.settings.slot_no + " jackpots and prizes!\n"; if (cb.settings.forfeits === 'Yes') { msg += "Be careful though, poor luck and you could have to do a forfeit for me.\n"; } msg += "Type #JACKPOTS or #DOUBLES to see the possible prizes!\n"; } cb.sendNotice(msg, username, light_colour, dark_colour, 'bold'); } function advertise() { showAppAd(); cb.setTimeout(advertise, parseInt(cb.settings.App_add_time) * 60000); } function update_subject() { var new_subject = cb.settings.subject_words + " " var tags = "#" + cb.settings.tag_1 + " #" + cb.settings.tag_2 + " #" + cb.settings.tag_3 + " #" + cb.settings.tag_4 + " #" + cb.settings.tag_5 if (cb.settings.subject_change === 'Yes') { cb.changeRoomSubject(new_subject + tags); } } function init() { setJackpots(); setDoubles(); advertise(); update_subject(); } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.