Bots Home
|
Create an App
MR2
Author:
hethro1
Description
Source Code
Launch Bot
Current Users
Created by:
Hethro1
var Players = new Array; var Horde= new Array; var Boss=0; var Bosses = new Array; var MChance = new Array; var Wave=0; var WaveArray=new Array; var MinionHealth= new Array; var MinoinPlayerDmg=new Array; var population= 0;//population in array var nam=1; //name in array var health=2; //health in array var reward=3; //reward in array var attack=4; var defence=5; var xp=6; var kills=7; var weapon=8; var armor=9; var playerdmg=10; var THorde=0; var TMnumber=10; var TBnumber=5; var TWnumber=5; var Bossbuilt=0; var Hordebuilt=0; var RepeatGaolActive='Off'; var RepeatgoalCurrent=0; var RepeatGoalMax=0; var RepeatGoalReward=''; var RepeatGoalCount=0; var TipMenu=''; var FullTipMenu=''; var TipKeywords=''; var SoloTipCount=0; var SoloTipMax=10; var RewardQ= new Array; var CumCounter=0; var ChamActive='Off'; var cs = JSON.parse(JSON.stringify(cb.settings)); cb.settings_choices = [ {name:'Minionsnote', type:'str', required: false,label:'1________________Minions_____',defaultValue: '---------------'}, {name:'ATMChance', type:'int', label:'Chance for all tips to summon minion(0-100)',defaultValue: 5}, {name:'MinionAdEndMsg', type:'str', required: false, label:'Minion Ad End Message<>=',defaultValue: 'Defeat the minion and claim your prize, hero!'}, //============Minon Rewards============== {name:'minioncolor', type:'str', label:'Minion ad color (html code default red #FF0000)',defaultValue: '#F985EE'}, {name:'M1', type:'str', label:'----level 1 Minion Name=',defaultValue: 'Peeping Spider'}, {name:'MR1', type:'str', required: false,label:'Level 1 Minon Rewards=',defaultValue: 'Spanks'}, {name:'MH1', type:'int', required: false,label:'Level 1 Minon Health(Set To 0 To Remove Minoin)=',defaultValue: 10}, {name:'MS1', type:'int', label:'Level 1 Minon in Horde =',defaultValue: 100}, {name:'M2', type:'str', label:'----level 2 Minion Name=',defaultValue: 'Lerking Mouse'}, {name:'MR2', type:'str', required: false,label:'Level 2 Minon Rewards=',defaultValue: 'Flash Ass'}, {name:'MH2', type:'int',required: false, label:'Level 2 Minon Health(Set To 0 To Remove Minoin)=',defaultValue: 30}, {name:'MS2', type:'int', label:'Level 2 Minon in Horde =',defaultValue: 50}, {name:'M3', type:'str', label:'----level 3 Minion Name=',defaultValue: 'Loud kobold'}, {name:'MR3', type:'str', required: false,label:'Level 3 Minon Reward=',defaultValue: 'Flash Boobs'}, {name:'MH3', type:'int', required: false,label:'Level 3 Minon Health(Set To 0 To Remove Minoin)=',defaultValue: 30}, {name:'MS3', type:'int', label:'Level 3 Minon in Horde =',defaultValue: 40}, {name:'M4', type:'str', label:'----level 4 Minion Name=',defaultValue: 'Spamming Gobin'}, {name:'MR4', type:'str', required: false,label:'Level 4 Minon Reward=',defaultValue: 'Flash Pussy'}, {name:'MH4', type:'int', required: false,label:'Level 4 Minon Health(Set To 0 To Remove Minoin)=',defaultValue: 40}, {name:'MS4', type:'int', label:'Level 4 Minon in Horde =',defaultValue: 20}, {name:'M5', type:'str', label:'----level 5 Minion Name=',defaultValue: 'Rude Orc'}, {name:'MR5', type:'str', required: false,label:'Level 5 Minon Reward=',defaultValue: 'Dildo BJ'}, {name:'MH5', type:'int', required: false,label:'Level 5 Minon Health(Set To 0 To Remove Minoin)=',defaultValue: 60}, {name:'MS5', type:'int', label:'Level 5 Minon in Horde =',defaultValue: 20}, {name:'M6', type:'str', label:'----level 6 Minion Name=',defaultValue: 'Slamming Blue Lizard'}, {name:'MR6', type:'str', required: false,label:'Level 6 Minon Reward=',defaultValue: 'Vibrator Tease'}, {name:'MH6', type:'int', required: false,label:'Level 6 Minon Health(Set To 0 To Remove Minoin)=',defaultValue: 70}, {name:'MS6', type:'int', label:'Level 6 Minon in Horde =',defaultValue: 15}, {name:'M7', type:'str', label:'----level 7 Minion Name=',defaultValue: 'Directing Warlock'}, {name:'MR7', type:'str', required: false,label:'Level 7 Minon Reward=',defaultValue: 'Short Dldo ride'}, {name:'MH7', type:'int', required: false,label:'Level 7 Minon Health(Set To 0 To Remove Minoin)=',defaultValue: 100}, {name:'MS7', type:'int', label:'Level 7 Minon in Horde =',defaultValue: 10}, {name:'M8', type:'str', label:'----level 8 Minion Name=',defaultValue: 'The Baned Hydra'}, {name:'MR8', type:'str', required: false, label:'Level 8 Minon Reward=',defaultValue: 'Lotion Boobs'}, {name:'MH8', type:'int', required: false,label:'Level 8 Minon Health(Set To 0 To Remove Minoin)=',defaultValue: 150}, {name:'MS8', type:'int', label:'Level 8 Minon in Horde =',defaultValue: 5}, {name:'M9', type:'str', label:'----level 9 Minion Name=',defaultValue: 'Black Dragon of Nonsence'}, {name:'MR9', type:'str', required: false, label:'Level 9 Minon Reward=',defaultValue: 'Naked 10 minutes'}, {name:'MH9', type:'int', required: false,label:'Level 9 Minon Health(Set To 0 To Remove Minoin)=',defaultValue: 250}, {name:'MS9', type:'int', label:'Level 9 Minon in Horde =',defaultValue: 3}, {name:'M10', type:'str', label:'----level 10 Minion Name=',defaultValue: 'Stalking Ark Mage of Seeking'}, {name:'MR10', type:'str', required: false, label:'Level 10 Minon Reward=',defaultValue: 'mini Cum Show'}, {name:'MH10', type:'int', required: false,label:'Level 10 Minon Health(Set To 0 To Remove Minoin)=',defaultValue: 500}, {name:'MS10', type:'int', label:'Level 10 Minon in Horde =',defaultValue: 1}, //============Goals/bosses Enabled============== {name:'Bossnote', type:'str', required: false,label:'2________________Bosses_____',defaultValue: '---------------'}, {name:'BossEnable', type:'choice', choice1:'On', choice2:'Off', label:'Have Main Bosses(goals) enabled', defaultValue:'Off'}, {name:'BossAdEndMsg', type:'str', required: false, label:'Boss Ad End Message<>=',defaultValue: 'Be my hero and save me from the evil monster!'}, {name:'bosscolor', type:'str', label:'Boss ad color (html code default red #FF0000)',defaultValue: '#F985EE'}, //============Goals/bosses Rewards============== {name:'B1', type:'str', label:'----Level 1 Boss Name=',defaultValue: 'The Scamming Rat'}, {name:'BR1', type:'str', required: false, label:'Level 1 Boss Reward=',defaultValue: 'Shirt Off'}, {name:'BH1', type:'int',required: false, label:'Level 1 Boss health(Set To 0 To Remove Boss)=',defaultValue: 500}, {name:'B2', type:'str', label:'----Level 2 Boss Name=',defaultValue: 'The Gray Troll'}, {name:'BR2', type:'str', required: false, label:'Level 2 Boss Reward=',defaultValue: 'Pants Off'}, {name:'BH2', type:'int',required: false, label:'Level 2 Boss health(Set To 0 To Remove Boss)=',defaultValue: 500}, {name:'B3', type:'str', label:'----Level 3 Boss Name=',defaultValue: 'The Leaking Vampire'}, {name:'BR3', type:'str', required: false, label:'Level 3 Boss Reward=',defaultValue: 'Bra Off'}, {name:'BH3', type:'int',required: false, label:'Level 3 Boss health(Set To 0 To Remove Boss)=',defaultValue: 750}, {name:'B4', type:'str', label:'----Level 4 Boss Name=',defaultValue: 'The Demanding Giant '}, {name:'BR4', type:'str', required: false, label:'Level 4 Boss Reward=',defaultValue: 'Panties Off'}, {name:'BH4', type:'int',required: false, label:'Level 4 Boss health(Set To 0 To Remove Boss)=',defaultValue: 750}, {name:'B5', type:'str', label:'----Level 5 Boss Name=',defaultValue: 'The Dragon Of Complete Silence '}, {name:'BR5', type:'str', required: false, label:'Level 5 Boss Reward=',defaultValue: 'Cum Show'}, {name:'BH5', type:'int',required: false, label:'Level 5 Boss health(Set To 0 To Remove Boss)=',defaultValue: 1000}, //============Weapon Cost============== {name:'Weaoponnote', type:'str', required: false,label:'3________________Weapons_____',defaultValue: '---------------'}, {name:'WeaponsActive', type:'choice', choice1:'On', choice2:'Off', label:'Weapons Enabled?', defaultValue:'On'}, {name:'W1', type:'str', label:'----level1 Weapon Name=',defaultValue: 'Silencing Club'}, {name:'WC1', type:'int', label:'Level 1 Weapon Cost=',defaultValue: 2}, {name:'WA1', type:'int', label:'Level 1 Weapon Summon Chance Add=',defaultValue: 25}, {name:'W2', type:'str', label:'----level2 Weapon Name=',defaultValue: 'Boots of Kicking'}, {name:'WC2', type:'int', label:'Level 2 Weapon Cost=',defaultValue: 52}, {name:'WA2', type:'int', label:'Level 2 Weapon Summon Chance Add=',defaultValue: 50}, {name:'W3', type:'str', label:'----level3 Weapon Name=',defaultValue: 'Paddle of Pleasure '}, {name:'WC3', type:'int', label:'Level 3 Weapon Cost)=',defaultValue: 102}, {name:'WA3', type:'int', label:'Level 3 Weapon Summon Chance Add=',defaultValue: 100}, {name:'W4', type:'str', label:'----level4 Weapon Name=',defaultValue: 'Flail of Buzzing'}, {name:'WC4', type:'int', label:'Level 4 Weapon Cost=',defaultValue: 252}, {name:'WA4', type:'int', label:'Level 4 Weapon Summon Chance Add=',defaultValue: 200}, {name:'W5', type:'str', label:'----level5 Weapon Name=',defaultValue: 'Vibrating Sward Of Glory'}, {name:'WC5', type:'int', label:'Level 5 Weapon Cost=',defaultValue: 502}, {name:'WA5', type:'int', label:'Level 5 Weapon Summon Chance Add=',defaultValue: 300}, //============Champion============== {name:'ChampionActive', type:'choice', choice1:'Off', choice2:'Off', label:'', defaultValue:'Off'}, {name:'ChampTipActive', type:'int', label:'',defaultValue: 21}, {name:'RaidTimer', type:'int', label:'',defaultValue: 5}, {name:'RepeatGoalnote', type:'str', required: false,label:'4________________Repeat Gaol_____',defaultValue: '---------------'}, {name:'RepeatGoalActive', type:'choice', choice1:'On', choice2:'Off', label:'4)Repeat Goal-----------Activate a Repeating Goal?', defaultValue:'Off'}, {name:'repeatcolor', type:'str', label:'Repeat ad color (html code default red #FF0000)',defaultValue: '#F985EE'}, {name:'RepeatGoalTarget', type:'int', label:'Target Goal Amount=',defaultValue: 200}, {name:'RepeatGoalReward', type:'str', label:'What you want said when goal reached=',defaultValue: 'Cum At Every Goal'}, {name:'CumCountNote', type:'str', required: false,label:'5________________Cum Counter_____',defaultValue: '---------------'}, {name:'CumEnabled', type:'choice', choice1:'On', choice2:'Off', label:'Cum Counter', defaultValue:'Off'}, {name:'CumRecord', type:'int', required: false,label:'Record number of cums in on day=',defaultValue: 0}, {name:'CumAdTimer', type:'int', label:'Cum Ad Display Timer(Minutes)',defaultValue: 5}, {name:'TMnote', type:'str', required: false,label:'6________________TIP MENU_____',defaultValue: '---------------'}, {name:'TipMenuActive', type:'choice', choice1:'On', choice2:'Off', label:'Tip Menu Enabled?', defaultValue:'Off'}, {name:'tipcolor', type:'str', label:'Tip ad color (html code default red #FF0000)',defaultValue: '#F985EE'}, {name:'TM1', type:'str', required: false,label:'Tip Request Option 1=',defaultValue: ''}, {name:'TC1', type:'int', required: false,label:'(1)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA1', type:'choice', choice1:'On', choice2:'Off', label:'(1)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TK1', type:'str', required: false,label:'KeyWords to display msage(seporated my ,)=',defaultValue: ''}, {name:'TM2', type:'str', required: false,label:'Tip Request Option 2=',defaultValue: ''}, {name:'TC2', type:'int', required: false,label:'(2)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA2', type:'choice', choice1:'On', choice2:'Off', label:'(2)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM3', type:'str', required: false,label:'Tip Request Option 3=',defaultValue: ''}, {name:'TC3', type:'int', required: false,label:'(3)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA3', type:'choice', choice1:'On', choice2:'Off', label:'(3)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM4', type:'str', required: false,label:'Tip Request Option 4=',defaultValue: ''}, {name:'TC4', type:'int', required: false,label:'(4)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA4', type:'choice', choice1:'On', choice2:'Off', label:'4()Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM5', type:'str', required: false,label:'Tip Request Option 5=',defaultValue: ''}, {name:'TC5', type:'int', required: false,label:'(5)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA5', type:'choice', choice1:'On', choice2:'Off', label:'(5)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM6', type:'str', required: false,label:'Tip Request Option 6=',defaultValue: ''}, {name:'TC6', type:'int', required: false,label:'(6)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA6', type:'choice', choice1:'On', choice2:'Off', label:'(6)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM7', type:'str', required: false,label:'Tip Request Option 7=',defaultValue: ''}, {name:'TC7', type:'int', required: false,label:'(7)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA7', type:'choice', choice1:'On', choice2:'Off', label:'(7)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM8', type:'str', required: false,label:'Tip Request Option 8=',defaultValue: ''}, {name:'TC8', type:'int', required: false,label:'(8)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA8', type:'choice', choice1:'On', choice2:'Off', label:'(8)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM9', type:'str', required: false,label:'Tip Request Option 9=',defaultValue: ''}, {name:'TC9', type:'int', required: false,label:'(9)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA9', type:'choice', choice1:'On', choice2:'Off', label:'(9)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM10', type:'str', required: false,label:'Tip Request Option 10=',defaultValue: ''}, {name:'TC10', type:'int', required: false,label:'(10)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA10', type:'choice', choice1:'On', choice2:'Off', label:'(10)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM11', type:'str', required: false,label:'Tip Request Option 11=',defaultValue: ''}, {name:'TC11', type:'int', required: false,label:'(11)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA11', type:'choice', choice1:'On', choice2:'Off', label:'(11)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM12', type:'str', required: false,label:'Tip Request Option 12=',defaultValue: ''}, {name:'TC12', type:'int', required: false,label:'(12)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA12', type:'choice', choice1:'On', choice2:'Off', label:'(12)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM13', type:'str', required: false,label:'Tip Request Option 13=',defaultValue: ''}, {name:'TC13', type:'int', required: false,label:'(13)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA13', type:'choice', choice1:'On', choice2:'Off', label:'(13)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM14', type:'str', required: false,label:'Tip Request Option 14=',defaultValue: ''}, {name:'TC14', type:'int', required: false,label:'(14)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA14', type:'choice', choice1:'On', choice2:'Off', label:'(14)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM15', type:'str', required: false,label:'Tip Request Option 15=',defaultValue: ''}, {name:'TC15', type:'int', required: false,label:'(15)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA15', type:'choice', choice1:'On', choice2:'Off', label:'(15)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM16', type:'str', required: false,label:'Tip Request Option 16=',defaultValue: ''}, {name:'TC16', type:'int', required: false,label:'(16)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA16', type:'choice', choice1:'On', choice2:'Off', label:'(16)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM17', type:'str', required: false,label:'Tip Request Option 17=',defaultValue: ''}, {name:'TC17', type:'int', required: false,label:'(17)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA17', type:'choice', choice1:'On', choice2:'Off', label:'(17)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM18', type:'str', required: false,label:'Tip Request Option 18=',defaultValue: ''}, {name:'TC18', type:'int', required: false,label:'(18)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA18', type:'choice', choice1:'On', choice2:'Off', label:'(18)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM19', type:'str', required: false,label:'Tip Request Option 19=',defaultValue: ''}, {name:'TC19', type:'int', required: false,label:'(19)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA19', type:'choice', choice1:'On', choice2:'Off', label:'(19)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM20', type:'str', required: false,label:'Tip Request Option 20=',defaultValue: ''}, {name:'TC20', type:'int', required: false,label:'(20)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA20', type:'choice', choice1:'On', choice2:'Off', label:'(20)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM21', type:'str', required: false,label:'Tip Request Option 21=',defaultValue: ''}, {name:'TC21', type:'int', required: false,label:'(21)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA21', type:'choice', choice1:'On', choice2:'Off', label:'(21)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM22', type:'str', required: false,label:'Tip Request Option 22=',defaultValue: ''}, {name:'TC22', type:'int', required: false,label:'(22)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA22', type:'choice', choice1:'On', choice2:'Off', label:'(22)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM23', type:'str', required: false,label:'Tip Request Option 23=',defaultValue: ''}, {name:'TC23', type:'int', required: false,label:'(23)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA23', type:'choice', choice1:'On', choice2:'Off', label:'(23)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM24', type:'str', required: false,label:'Tip Request Option 24=',defaultValue: ''}, {name:'TC24', type:'int', required: false,label:'(24)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA24', type:'choice', choice1:'On', choice2:'Off', label:'(24)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM25', type:'str', required: false,label:'Tip Request Option 25=',defaultValue: ''}, {name:'TC25', type:'int', required: false,label:'(25)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA25', type:'choice', choice1:'On', choice2:'Off', label:'(25)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM26', type:'str', required: false,label:'Tip Request Option 26=',defaultValue: ''}, {name:'TC26', type:'int', required: false,label:'(26)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA26', type:'choice', choice1:'On', choice2:'Off', label:'(26)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM27', type:'str', required: false,label:'Tip Request Option 27=',defaultValue: ''}, {name:'TC27', type:'int', required: false,label:'(27)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA27', type:'choice', choice1:'On', choice2:'Off', label:'(27)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM28', type:'str', required: false,label:'Tip Request Option 28=',defaultValue: ''}, {name:'TC28', type:'int', required: false,label:'(28)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA28', type:'choice', choice1:'On', choice2:'Off', label:'(28)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM29', type:'str', required: false,label:'Tip Request Option 29=',defaultValue: ''}, {name:'TC29', type:'int', required: false,label:'(29)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA29', type:'choice', choice1:'On', choice2:'Off', label:'(29)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM30', type:'str', required: false,label:'Tip Request Option 30=',defaultValue: ''}, {name:'TC30', type:'int', required: false,label:'(30)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA30', type:'choice', choice1:'On', choice2:'Off', label:'(30)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM31', type:'str', required: false,label:'Tip Request Option 31=',defaultValue: ''}, {name:'TC31', type:'int', required: false,label:'(31)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA31', type:'choice', choice1:'On', choice2:'Off', label:'(31)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM32', type:'str', required: false,label:'Tip Request Option 32=',defaultValue: ''}, {name:'TC32', type:'int', required: false,label:'(32)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA32', type:'choice', choice1:'On', choice2:'Off', label:'(32)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM33', type:'str', required: false,label:'Tip Request Option 33=',defaultValue: ''}, {name:'TC33', type:'int', required: false,label:'(33)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA33', type:'choice', choice1:'On', choice2:'Off', label:'(33)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM34', type:'str', required: false,label:'Tip Request Option 34=',defaultValue: ''}, {name:'TC34', type:'int', required: false,label:'(34)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA34', type:'choice', choice1:'On', choice2:'Off', label:'(34)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM35', type:'str', required: false,label:'Tip Request Option 35=',defaultValue: ''}, {name:'TC35', type:'int', required: false,label:'(35)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA35', type:'choice', choice1:'On', choice2:'Off', label:'(35)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM36', type:'str', required: false,label:'Tip Request Option 36=',defaultValue: ''}, {name:'TC36', type:'int', required: false,label:'(36)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA36', type:'choice', choice1:'On', choice2:'Off', label:'(36)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM37', type:'str', required: false,label:'Tip Request Option 37=',defaultValue: ''}, {name:'TC37', type:'int', required: false,label:'(37)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA37', type:'choice', choice1:'On', choice2:'Off', label:'(37)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM38', type:'str', required: false,label:'Tip Request Option 38=',defaultValue: ''}, {name:'TC38', type:'int', required: false,label:'(38)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA38', type:'choice', choice1:'On', choice2:'Off', label:'(38)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM39', type:'str', required: false,label:'Tip Request Option 39=',defaultValue: ''}, {name:'TC39', type:'int', required: false,label:'(39)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA39', type:'choice', choice1:'On', choice2:'Off', label:'(39)Tip Item enabled in ad?', defaultValue:'On'}, {name:'TM40', type:'str', required: false,label:'Tip Request Option 40=',defaultValue: ''}, {name:'TC40', type:'int', required: false,label:'(40)Tip Cost(Set To 0 To Remove)=',defaultValue: 0}, {name:'TMA10', type:'choice', choice1:'On', choice2:'Off', label:'(40)Tip Item enabled in ad?', defaultValue:'On'}, //============Color============== {name:'Adnote', type:'str', required: false,label:'7________________Ad_____',defaultValue: '---------------'}, {name:'noticecolor', type:'str', label:'Notice color (html code default red #FF0000)',defaultValue: '#F985EE'}, {name:'rewardcolor', type:'str', label:'Reward color (html code default red #FF0000)',defaultValue: '#FF0000'}, //============Ads============== {name:'ReducedAdd', type:'choice', choice1:'On', choice2:'Off', label:'Use reduced text option for Ad', defaultValue:'Off'}, {name:'MaxSoloTip', type:'int', label:'Number of 1 token tips until diplay',defaultValue: 10}, {name:'AdMsgTimer', type:'int', label:'Ad Display Timer(Minutes)',defaultValue: 5} ] //>>>>>>>>>>>>>>>>>>>>>>>>>=Speed Functions=<<<<<<<<<<<<<<<<<<<<< function M(lvl){return(cs['M'+lvl]);} function MR(lvl){return(cs['MR'+lvl]);} function MS(lvl){return(cs['MS'+lvl]);} function MH(lvl){return(cs['MH'+lvl]);} function H(lvl){return(Horde[lvl][nam]);} function HR(lvl){return(Horde[lvl][reward]);} function HS(lvl){return(Horde[lvl][population]);} function HH(lvl){return(Horde[lvl][health]);} function HXP(lvl){return(Horde[lvl][xp]);} function HK(lvl){return(Horde[lvl][kills]);} function HA(lvl){return(Horde[lvl][attack]);} function HD(lvl){return(Horde[lvl][defence]);} function HW(lvl){return(Horde[lvl][weapon]);} function HA(lvl){return(Horde[lvl][armor]);} function WM(wavenum){return(H(WaveArray[wavenum]));} function WMR(wavenum){return(HR(WaveArray[wavenum]));} function WMS(wavenum){return(HS(WaveArray[wavenum]));} function WMH(wavenum){return(MinionHealth[wavenum]);} function B(lvl){return(cs['B'+lvl]);} function BR(lvl){return(cs['BR'+lvl]);} function BH(lvl){return(cs['BH'+lvl]);} function BA(lvl){return(Bosses[lvl][nam]);} function BAR(lvl){return(Bosses[lvl][reward]);} function BAS(lvl){return(Bosses[lvl][population]);} function BAH(lvl){return(Bosses[lvl][health]);} function W(lvl){return(cs['W'+lvl]);} function WC(lvl){return(cs['WC'+lvl]);} function WA(lvl){return(cs['WA'+lvl]);} function TM(lvl){return(cs['TM'+lvl]);} function TC(lvl){return(cs['TC'+lvl]);} function TMA(lvl){return(cs['TMA'+lvl]);} function TK(lvl){return(cs['TK'+lvl]);} function P(rank){return(Players[rank][nam]);} function PS(rank){return(Players[rank][population]);} function PH(rank){return(Players[rank][health]);} function PXP(rank){return(Players[rank][xp]);} function PK(rank){return(Players[rank][kills]);} function PA(rank){return(Players[rank][attack]);} function PD(rank){return(Players[rank][defence]);} function PW(rank){return(Players[rank][weapon]);} function PA(rank){return(Players[rank][armor]);} //============MsgAll============== // shortends a simple message sent function MsgAll(msg){cb.sendNotice(msg,'','',cs.noticecolor,'bold');} //============MsgAllc============== // shortends a simple message sent function MsgAllc(msg,color){cb.sendNotice(msg,'','',color,'bold');} //============MsgUser============== function MsgUser(msg,user){cb.sendNotice(msg,user)};//cb.settings['noticecolor'],'bold',user)}; //============MsgCmd============== function MsgCmd(msg,user){ if(cb.room_slug){cb.sendNotice(msg,cb.room_slug ,cb.settings['noticecolor'],'bold',cb.room_slug);} else{cb.sendNotice(msg,msg['is_mod'] ,cb.settings['noticecolor'],'bold',msg['is_mod']);}} //============MsgAllReward============== // shortends a simple message sent function MsgAllReward(msg){cb.sendNotice(msg,'','',cs.rewardcolor,'bold');} //============BigNoteMsg============== function BigNoteMsg(title,Msg){var message='__________'+title+'__________\n'; message+=Msg+'\n________________________________________';MsgAll(message);} //============BigRewardMsg============== function BigRewardMsg(title,Msg){var message='__________'+title+'__________\n';message+=Msg+'\n________________________________________';MsgAllReward(message);} //============RandomNum============== function RandomNum(min, max){var range = (max - min) + 1;var rndnum =(Math.random()* range)+min;rndnum=Math.round(rndnum);return (rndnum);} //......................................... //============TMnumbercelc============== function TMnumbercelc(){var TMN=0;for(i=1;i<=10;i++){if(MH(i)!='0'){TMN=TMN+1;}}return(TMN);} //============TBnumbercelc============== function TBnumbercelc(){var TBN=0;for(i=1;i<=10;i++){if(BH(i)!='0'){TBN=TBN+1;}}return(TBN);} //>>>>>>>>>>>>>>>>>>>>>>>>>=Player Functions=<<<<<<<<<<<<<<<<<<<<< function ChampOnOff(selcetion){if(selcetion=='on'||selcetion=='On'){ChampActive='On';MsgCmd('Champions has been set to on');}if(selcetion=='off'||selcetion=='Off'){ChampActive='Off';MsgCmd('Champions has been set to off');}} function buildPlayers(){ Players[0]=new Array; Players[0][population]=1; Players[0][nam]=cb.room_slug; Players[0][health]=100000; Players[0][reward]='none'; Players[0][attack]=10000; Players[0][defence]=10000; Players[0][xp]=0; Players[0][kills]=0; Players[0][weapon]='none'; Players[0][armor]='none'; } function AddPlayer(user){ var inlist=false; var Plength=(Players.length); if(Players.length!=0){for(i=0;i<Players.length;i++){ if(user==Players[Plength]){inlist=true;}}} if(inlist==false){ Plength+=1; Players[Plength]=new Array; Players[Plength][population]=1; Players[Plength][nam]=user; Players[Plength][health]=20; Players[Plength][reward]='none'; Players[Plength][attack]=1; Players[Plength][defence]=1; Players[Plength][xp]=0; Players[Plength][kills]=0; Players[Plength][weapon]='none'; Players[Plength][armor]='none';; MsgCmd(Players[Plength][nam]+'('+Plength+') added to players list'); }} function BuildMPDA(){MinoinPlayerDmg[0]=new Array;MinoinPlayerDmg[0][0]=new Array;MinoinPlayerDmg[0][0][0]=0;MinoinPlayerDmg[0][0][1]=0;} function AddWaveMinionPLayerDmg(){ MinoinPlayerDmg[MinoinPlayerDmg.length]=new Array; MinoinPlayerDmg[MinoinPlayerDmg.length][0]=new Array; MinoinPlayerDmg[MinoinPlayerDmg.length][0][0]=0; MinoinPlayerDmg[MinoinPlayerDmg.length][0][1]=0;} function FindMinionPlayerDmg(user,wavenum){for(i=0;i<=MinoinPlayerDmg.length;i++){if(MinoinPlayerDmg[wavenum][i][0]==user){return(i);}} return(0);} function DiplayPlayers(){MsgAllReward('Rank_Player_Health()_XP<>');var msg='~~~~~~~~~~~~~~~~~~~~~~~~~\n';for(i=0;i<Players.length;i++){msg+='----'+i+'____'+P(i)+'____('+PH(i)+')__<'+PXP(i)+'>\n';}MsgAll(msg);return(msg);} function FindPlayer(user){for(i=0;i<Players.length;i++){if(Players[i][nam]==user){return(i);}}} function setPlayerStatus(user){var pranktemp=FindPlayer(user);if(Players[pranktemp][population]==0){Players[pranktemp][population]=1;}else{Players[pranktemp][population]=0;}} function HitCheck(att,def){var rnuma=RandomNum(0,100);rnumd=RandomNum(0,100);if(rnum+att>=rnum+def){return(true);}else{return(false);}} //>>>>>>>>>>>>>>>>>>>>>>>>>=Horde Functions=<<<<<<<<<<<<<<<<<<<<< //============buildHorde============== function buildHorde(){ TMnumber=0; THorde=0; Horde[0]=new Array; for(x=0;x<=9;x++){Horde[0][x]=0;} for(i=1;i<=10;i++){ if(MH(i)!=0){ TMnumber++; Horde[TMnumber]=new Array; Horde[TMnumber][population]=MS(i); Horde[TMnumber][nam]=M(i); Horde[TMnumber][reward]=MR(i);if(MR(i)==null){Horde[TMnumber][reward]='';} Horde[TMnumber][health]=MH(i); Horde[TMnumber][attack]=i; Horde[TMnumber][defence]=MH(i); Horde[TMnumber][xp]=MH(i); Horde[TMnumber][kills]=0; Horde[TMnumber][weapon]='none'; Horde[TMnumber][armor]='none'; THorde=THorde+ parseInt(HS(TMnumber)); }}Hordebuilt=1;} //============setminionpop============== function SetMinionPop(lvl,pop){if(Horde[lvl][population]!=null){Horde[lvl][population]=pop;}} //============addminion============== function AddMinion(lvl){if(Horde[lvl][population]!=null){Horde[lvl][population]++;}} //============subminion============== function SubMinion(lvl){if(Horde[lvl][population]!=null){if(Horde[lvl][population]>0){Horde[lvl][population]--;THorde--;}}} //============setminionhcance============== function SetMinionChance(){var topnum=0;MChance[0]=0;for(i=1;i<=TMnumber;i++){topnum=topnum+Horde[i][population];MChance[i]=topnum;}} //>>>>>>>>>>>>>>>>>>>>>>>>>=Wave Functions=<<<<<<<<<<<<<<<<<<<<< //============Summonminion============== function SummonMinion(lvl){Wave++; MinionHealth[Wave]=HH(lvl); WaveArray[Wave]=lvl; if(Wave>1){ WaveAddMsg(lvl);} else{EnterMinionMsg(lvl);}SubMinion(lvl);SetMinionChance();} //============AddRWave============== function AddRWave(){if(THorde>0){var randnum=RandomNum(1,THorde); var lownum=0; for(i=1;i<=TMnumber;i++){if(lownum!=MChance[i]){Lownum=MChance[i-1];} if(randnum>lownum&&randnum<=MChance[i]){ SummonMinion(i); }}}else{MsgAll('Horde is Depeated')}} //============SubWave============== function SubWave(WN){ for(i=WN;i<=Wave;i++){WaveArray[i]=WaveArray[(i+1)];MinionHealth[i]=MinionHealth[(i+1)];} WaveArray.length=WaveArray.length-1;Wave--;if(Wave!=0){EnterMinionMsg(1);}} //============BuildWave============== function BuildWave(MW){for(x=0;x<=MW;x++){AddRWave();}} //============Dmgminion============== function Dmgminion(Dmg){MinionHealth[1]-=Dmg;if(MinionHealth[1]<=0){ var rq=WM(1)+' ('+WMR(1)+')';DefMinionMsg(AddRewardQ(rq));var MHi=MinionHealth[1];SubWave(1);return(MHi);}} //============Healminion============== function Healminion(Heal){MinionHealth[1]+=Heal;} //>>>>>>>>>>>>>>>>>>>>>>>>>=Boss Functions=<<<<<<<<<<<<<<<<<<<<< //============BuildBoss============== function BuildBoss(){ TBnumber=0; Bosses[0]=new Array; for(x=0;x<=9;x++){Bosses[0][x]=0;} for(i=1;i<=5;i++){ if(BH(i)!=0){ TBnumber++; Bosses[TBnumber]=new Array; Bosses[TBnumber][population]=1; Bosses[TBnumber][nam]=B(i); Bosses[TBnumber][reward]=BR(i);if(BR(i)==null){Bosses[TBnumber][reward]='';} Bosses[TBnumber][health]=BH(i); Bosses[TBnumber][attack]=i; Bosses[TBnumber][defence]=BH(i); Bosses[TBnumber][xp]=BH(i); Bosses[TBnumber][kills]=0; Bosses[TBnumber][weapon]='none'; Bosses[TBnumber][armor]='none'; Bosses[TBnumber][playerdmg]=new Array; Bosses[TBnumber][playerdmg][0]=new Array; Bosses[TBnumber][playerdmg][0][0]=0; Bosses[TBnumber][playerdmg][0][1]=0; } }} //============DmgBoss============== function DmgBoss(lvl,dmg){if(Boss>0&&Boss<=TBnumber){Bosses[lvl][health]=BAH(lvl)-dmg;HitBossMsg(lvl,dmg); if(BAH(lvl)<=0){var BLactive=lvl;var rq=B(lvl)+' ('+BR(lvl)+')';DefBossMsg(lvl,AddRewardQ(rq));if(Boss<TBnumber){Boss++;EnterBossMsg(Boss);} else if(Boss==TBnumber){Boss++}return(BAH(BLactive));}}} //>>>>>>>>>>>>>>>>>>>>>>>>>=Weapon Functions=<<<<<<<<<<<<<<<<<<<<< //============WeaponLolGet============== function WeaponLvlGet(Tok){for(i=1;i<=TWnumber;i++){if(parseInt(WC(i))==Tok){return(i);}}return(0);} //============WeaponAddGet============== function WeaponAddGet(lvl){if(lvl>0){return(parseInt(WA(lvl)));}else{return(0);}} //============WeaponaddSummon============== function WeaponaddSummon(lvl){ var SC=cs.ATMChance; SC+=WeaponAddGet(lvl); if(SC>100){ var AS=Math.round(SC/100)-1; SC=SC-(AS*100); BuildWave(AS); } return(SC); } //>>>>>>>>>>>>>>>>>>>>>>>>>=Message Functions=<<<<<<<<<<<<<<<<<<<<< function HelpMsg(user){ var msg='--Tips without a minion persent will have a chance to summon a random minion out of the horde.'; if(cs.WeaponsActive=='On'){msg+='\n========================\n--Weapons==>A weapon adds an extra chance to add a minion be summined or to the wave.\n'; msg+='--This is the only way to get more then one minion lined up. For each 100% on a weapon chance is a auto summon to the q in the list.';} if(cs.BossEnable=='On'){msg+='\n========================\n--Bosses==>These are big. Normaly have big rewards.All tips go to defeting this';} if(ChampActive=='On'){msg+='\n========================\n--Champions==>This is you! Join the raid that will happen periodically.'; msg+='--Minions must be killed befor hitting bosses.\n--When you join you will be givin health,attack,and defence stats.\n'; msg+='--When a minion/boss is killed; you will gain a kill mark and XP.and a chance to gain some extra loot for you champ.\n'; msg+='--There will be rounds set in the raid that evey players will get chance to swing at the current minion/boss;but for evey swing the minion will swing back.\n'; msg+='--At any time you may buy heal pots to heal you champ to help him survive. Once dead you may rez him for a cost depending on his lvl or start over.\n';} msg+=BuildCmdAdMsg();MsgUser(msg,user);} function HelpMsgBroad(user){ var msg ='?clam # ==> adds * on to the ?reward comand to indacate that it was clamed << ?clam 3 >> *reward*\n'; msg+='\n---Boss comands(Broadcaster/mod)---\n'; msg+='?setbhealth # # ==> set boss health of level to health -- lvl 1 boss << ?setbhealth 1 200 >>\n'; msg+='?setboss # ==> sets the boss the second level boss<< ?setboss 2 >>\n'; msg+='?resetboss ==> resests all bossses back to full health and starts at lvl 1\n'; msg+='\n---Minion comands(Broadcaster/mod)---\n'; msg+='?setmhealth # # ==> set minion health in wave if only one minion << ?setmhealth 1 200 >>\n'; msg+='?subwave # ==> subtract a minion of that wave number from wave<< ?subwave 1 >>\n'; msg+='?addrwave ==> adds a random minion to the wave\n'; msg+='?addminion # ==> adds a minion of that level form the horde total << ?addminion 4 >>\n'; msg+='?subminion # ==> subtracts a minion of that level form the horde total << ?subminion 4 >>\n'; msg+='\n---Cum Counter comands(Broadcaster/mod)---\n'; msg+='?addcum ==> adds a cum to the count\n'; msg+='?subcum ==> subtracts a cum from the count'; msg+='?setcum # ==> sets a cum to the # << ?setcum 4 >>\n'; msg+='\n---Repeat Goal comands(Broadcaster/mod)---\n'; msg+='?setgoalcurrent # ==> sets the current goal to the # << ?setgoalcurrent 223 >>\n'; msg+='?setgoalcount # ==> sets the goal count to the number << ?setgoalcount 3 >>\n'; msg+='?setgoal # ==> sets the goal target to # << ?setgoal 250 >>\n'; msg+='?setsolotipmax # ==> sets the max solo tip will not display # << ?setsolotipmax 20 >>'; msg+=BuildCmdAdMsg();MsgUser(msg,user);} function BigMsg(action,title,msg){ var message = msg.split('\n'); var arrl=parseInt(message.length) var maxl=parseInt(message[0].length) for(i=0;i<arrl;i++){ if(parseInt(message[i].length)>maxl){maxl=parseInt(message[i].length)} } if(parseInt(title.length)>maxl){maxl=parseInt(title.length)} for(i=0;i<arrl;i++){ if(parseInt(message[i].length)<=maxl){ var dif=maxl-parseInt(message[i].length) var spc=Math.round(dif/2); var tempm=''; for(y=0;y<spc;y++){tempm+=' -';} tempm+=message[i]; // for(y=0;y<spc;y++){tempm+='- ';} message[i]=tempm; }} var MsgL=parseInt(msg.length); var tempmsg=''; cb.sendNotice('--------Minion Run(Type "?help" for help)--------'); cb.sendNotice('--------'+action); tempmsg+='---===<<<'+title; //for(i=0;i<maxl;i++){tempmsg+='-';} tempmsg+=' >>>===---\n'; for(x=0;x<arrl;x++){ tempmsg+='--'+message[x]+'\n'; } tempmsg+='------------------------------------------------'; return(tempmsg); } //============BuildMinionMsg============== function BuildMinionMsg(lvl,PreMsg,PostMsg,wavenum){var mhealth=0;if(wavenum!=null){mhealth=MinionHealth[wavenum];}else{mhealth=HH(lvl)} lvl=parseInt(lvl);if(PreMsg==null){PreMsg='';}if(PostMsg==null){PostMsg='';}var tempMsg=PreMsg+H(lvl)+' ('+mhealth+') Reward= <'+HR(lvl)+'> '+PostMsg;return(tempMsg);} //============EnterMinionMsg============== function EnterMinionMsg(lvl){MsgAll(BigMsg('Minion has Entered the room',H(lvl)+'('+HH(lvl)+' Health)('+Wave+' In Wave)',' - - - - - -Reward<' +HR(lvl)+'>If defeated- - - - - - --'));} //============WaveAddMsg============== function WaveAddMsg(lvl){ tempmsg=' Has Joined thet battle.('+Wave+' in Minion Wave now)'; MsgAll(BuildMinionMsg(lvl,'',tempmsg,1));} //============HitMinionMsg============== function HitMinionMsg(){if(tip_amount==1&&SoloTipCount<SoloTipMax){}else{MsgAll(M(WaveArray[1])+' Was hit for '+tip_amount+' now at ('+MinionHealth[1]+')('+HR(WaveArray[1])+')');}} //============DefMinionMsg============== function DefMinionMsg(Qnum){MsgAllReward(BigMsg('Minion Has Been Vanquished',M(WaveArray[1])+'('+HR(WaveArray[1])+')','-===<<<('+Qnum+')Reward='+HR(WaveArray[1])+'>>>==---\n Needs To Be Clamed'));} //============ShowMinionsMsg============== function ShowMinionsMsg(user){for(i=1;i<=TMnumber;i++){MsgUser('--lvl '+i+')'+BuildMinionMsg(i,HS(i)+' Left of '),user);}} //============DisplayMinionMsg============== function DisplayMinionMsg(wa){{MsgAll(BuildMinionMsg(wa,'',' <'+cs.MinionAdEndMsg+'>'));}} //============BuildMinionMsg============== function BuildBossMsg(lvl,PreMsg,PostMsg){lvl=parseInt(lvl);if(PreMsg==null){PreMsg='';}if(PostMsg==null){PostMsg='';}var tempMsg=PreMsg+BA(lvl)+' ('+BAH(lvl)+') Reward= <'+BAR(lvl)+'> '+PostMsg;return(tempMsg);} //============EnterBossMsg============== function EnterBossMsg(lvl){MsgAll(BigMsg('Boss has Entered the room','Boss['+Boss+'] '+BA(lvl)+'('+BAH(lvl)+' Health)',' - - - - - -Reward<'+BAR(lvl)+'> If defeated- - - - - - --'));} //============HitBossMsg============== function HitBossMsg(lvl,dmg){if(tip_amount==1&&SoloTipCount<SoloTipMax){}else{MsgAll(BA(lvl)+' Was hit for '+dmg+' now at ('+BAH(lvl)+')('+BAR(lvl)+')');}} //============DefBossMsg============== function DefBossMsg(lvl,Qnum){MsgAllReward(BigMsg('Boss Has Been Vanquished',B(lvl)+'('+BAR(lvl)+')','-===<<<('+Qnum+')Reward='+BAR(lvl)+'>>>===---\n Needs To Be Clamed'));} //============ShowBossesMsg============== function ShowBossesMsg(user){for(i=1;i<=TBnumber;i++){MsgUser('--'+BuildBossMsg(i),user);}} //============DisplayMinionMsg============== function DisplayBossMsg(wa){{MsgAll(BuildBossMsg(wa,'Wanted==>'));}} //============WeaponMsg============== function WeaponMsg(lvl){var tempmsg='';tempmsg+=W(lvl)+'('+WA(lvl)+'%) Chance to get a minion';return(tempmsg);} //============WeaponAdMsg============== function WeaponAdMsg(){var tempmsg='';for(i=1;i<=TWnumber;i++){tempmsg+='--'+W(i)+'('+WC(i)+")|";}return(tempmsg);} function ShowWeaponsMsg(user){for(i=1;i<=TWnumber;i++){MsgUser('--('+WC(i)+') Tokens for '+WeaponMsg(i),user);}} //============BuildMinionAdMsg============== function BuildMinionAdMsg(){var msg='>';if(Wave>0){for(i=1;i<=Wave;i++){msg+=i+'<'+HR(WaveArray[i])+'>--Minion--Lvl['+WaveArray[i]+']____'+H(WaveArray[i])+'('+MinionHealth[i]+')'; if(i==1){msg+=cs.MinionAdEndMsg}if(i!=Wave){msg+='\n'}}return(msg);}} //============BuildBossAdMsg============== function BuildBossAdMsg(){ var msg='';msg+='<'+BAR(Boss)+'>--Boss----Lvl['+Boss+']--'+BA(Boss)+'('+BAH(Boss)+')'+cs.BossAdEndMsg;return(msg);} //============BuildCmdAdMsg============== function BuildCmdAdMsg(){ var msg='\n--Commands--\n--?rewards==> Shows rewards that have been reached\n--?minions==> Shows the list of minions '; if(cs.BossEnable=='On'){msg+='\n--?boss==>Shows the list of bosses';} if(cs.WeaponsActive=='On'){msg+='\n--?weapons==>Shows the list of weapons';} if(ChampActive=='On'){msg+='\n--?players==>Shows the list of players';} return(msg); } //============BuildTipMenu============== function BuildTipMenu(){ var msg ='TIP MENU|'; for(i=1;i<41;i++){ if(TMA(i)=='On'){ if(TC(i)!=0){ msg+=TM(i)+'-'+TC(i) +'| ';}}} msg+=' ?menu for full tip menu'; TipMenu=msg; } //============BuildFullTipMenu============== function BuildFullTipMenu(){ var msg ='TIP MENU|'; for(i=1;i<41;i++){ if(TC(i)!=0){ msg+=TM(i)+'-'+TC(i) +'| ';}} FullTipMenu=msg; } //============ReducedAdMsg============== function ReducedAdMsg(){ cb.sendNotice('--------Minion Run(Type "?help" for help)--------'); var msg=''; if(RepeatGoalActive=='On'){msg+='***'+(RepeatGoalReward+' ('+RepeatgoalCurrent+'/'+RepeatGoalMax+') Reached ('+RepeatGoalCount+') times***');} if(Wave>0){msg+=' ';msg+='***MinionLvl['+WaveArray[1]+']'+H(WaveArray[1])+'('+MinionHealth[1]+')<'+HR(WaveArray[1])+'>***';} if(cs.BossEnable=='On'&&Boss>0&&Boss<=TBnumber){msg+='***Boss-Lvl['+Boss+']--'+BA(Boss)+'('+BAH(Boss)+')<'+BAR(Boss)+'>***';} if(cs.CumEnabled=='On'){msg+=('***Cum Count='+CumCounter+' (Record='+cs.CumRecord+')***');} if(cs.TipMenuActive=='On'){msg+='\n'+TipMenu;} MsgAll(msg); } //============AdMsg============== function AdMsg(){ if(cs.ReducedAdd=='On'){ReducedAdMsg();} else{ cb.sendNotice('--------Minion Run(Type "?help" for help)--------'); if(RepeatGoalActive=='On'){MsgAllc(RepeatGoalReward+' ('+RepeatgoalCurrent+'/'+RepeatGoalMax+') Reached ('+RepeatGoalCount+') times',cs.repeatcolor);;} if(Wave>0){;MsgAllc(BuildMinionAdMsg(),cs.minioncolor);} if(cs.BossEnable=='On'&&Boss>0&&Boss<=TBnumber){MsgAllc(BuildBossAdMsg(),cs.bosscolor);} if(cs.TipMenuActive=='On'){MsgAllc(TipMenu,cs.tipcolor);} } cb.setTimeout(AdMsg, (cs.AdMsgTimer* 60000));} cb.setTimeout(AdMsg, (cs.AdMsgTimer* 60000)); function CumAdMsg(){if(cs.ReducedAdd=='Off'){if(cs.CumEnabled=='On'){MsgAll('Cum Count='+CumCounter+' (Record='+cs.CumRecord+')'); cb.setTimeout(CumAdMsg, (cs.CumAdTimer* 60000))};}} cb.setTimeout(CumAdMsg, (cs.CumAdTimer* 60000)); //>>>>>>>>>>>>>>>>>>>>>>>>>=Tip Functions=<<<<<<<<<<<<<<<<<<<<< //============TipMsummon============== function TipMsummon(SumChance){var randnum=RandomNum(1,100) ; if(randnum<=SumChance){ AddRWave();}} //============TipMenuCheck============== function TipMenuCheck(Tip,User){ for(i=1;i<41;i++){ if(Tip==parseInt(TC(i))){ MsgAll('('+User+')TIP REQUEST FOR --'+TM(i)+'--'); AddRewardQ('('+User+')Tip request- '+TM(i)); } } } //============TipManager============== cb.onTip(function (tip) { tip_amount=parseInt(tip['amount']); if(tip_amount==1&&SoloTipCount<SoloTipMax){ SoloTipCount++;} if(RepeatGoalActive=='On'){addTipRepeatGoal(tip_amount);} if(ChampActive=='On'&&tip_amount==parseInt(cs.ChampTipActive)){AddPlayer(tip['from_user']);} var tempsumchance=0; if(Wave>0){var MLactive= WaveArray[1]; if(Dmgminion(parseInt(tip_amount))<=0){MsgAll(HS(MLactive)+' Left in Horde');}; if(WaveArray[1]!=null){HitMinionMsg();} if(cs.WeaponsActive=='On'&&WeaponLvlGet(tip_amount)!=0){TipMsummon(WeaponaddSummon(WeaponLvlGet(tip_amount)));} if(cs.BossEnable=='On'){if(Boss<=TBnumber){DmgBoss(Boss,tip_amount)};} } else if(Wave<=0){ if(cs.WeaponsActive=='On'&&WeaponLvlGet(tip_amount)!=0){MsgAll('A weapon of '+W(WeaponLvlGet(tip_amount))+' Was used that might attact an opponent'); TipMsummon(WeaponaddSummon(WeaponLvlGet(tip_amount)));} else{TipMsummon(cs.ATMChance);} if(cs.BossEnable=='On'){if(Boss<=TBnumber){DmgBoss(Boss,tip_amount)};}} if(cs.TipMenuActive=='On'){TipMenuCheck(tip_amount,tip['from_user'])} if(SoloTipCount>=SoloTipMax){ SoloTipCount=0; } }); //>>>>>>>>>>>>>>>>>>>>>>>>>=Repeat Goal Functions=<<<<<<<<<<<<<<<<<<<<< function buildRepeatGoal(){ RepeatGoalMax=cs.RepeatGoalTarget; RepeatGoalReward=cs.RepeatGoalReward; } function addTipRepeatGoal(tip){ tip +=RepeatgoalCurrent; var multigoal=0; if(tip>=RepeatGoalMax){multigoal=tip/RepeatGoalMax;multigoal=Math.floor(multigoal);RepeatgoalCurrent=tip-(multigoal*RepeatGoalMax);} else{RepeatgoalCurrent =tip;} while(multigoal>0){ RepeatGoalCount++; var Qnum =RewardQ.length; AddRewardQ('GOAL!!!!'); MsgAllReward(BigMsg('Repeating Goal Was Met','('+Qnum+') GOAL '+ RepeatGoalCount, 'Needs To Be Clamed')); multigoal--; } if(tip_amount==1&&SoloTipCount<SoloTipMax){}else{MsgAll(RepeatGoalReward+' ('+RepeatgoalCurrent+'/'+RepeatGoalMax+') Reached('+RepeatGoalCount+') times');} } function AddRewardQ(reward){ if(RewardQ.length>0){RewardQ[RewardQ.length]=reward;} else{RewardQ[0]=reward;} return(RewardQ.length-1); } function DisplayRewardQ(user,unclamed){ var msg=''; msg+='*Rewards Reached*\n'; for(var i=0;i<=RewardQ.length-1;i++){ if(unclamed==true){ if(RewardQ[i][0]!='*'&&RewardQ[i][-1]!='*'){ msg+=i+') '+RewardQ[i]+'\n';} } else{msg+=i+') '+RewardQ[i]+'\n';} } MsgUser(msg,user); } //>>>>>>>>>>>>>>>>>>>>>>>>>=message Functions=<<<<<<<<<<<<<<<<<<<<< cb.onMessage(function (msg){ var message = msg['m'].split(' ');// 0 is comand, 1 variable for comand if(message[0].charAt(0) == '?') { switch(message[0]) { //========================== case '?help':{if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){HelpMsgBroad(msg['user'])} HelpMsg(msg['user']);msg['X-Spam']=true;break;} case '?rewards':{DisplayRewardQ(msg['user']);msg['X-Spam']=true;break;} case '?unclam':{DisplayRewardQ(msg['user'],true);msg['X-Spam']=true;break;} case '?clam':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){ if(parseInt(message[1])<=RewardQ.length-1){RewardQ[message[1]]='*'+RewardQ[message[1]]+'*';MsgUser('cmd=reward clamed LOOK WHAT I CAN DO im still helping<Hethro>',msg['user']);}} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?minions':{ShowMinionsMsg(msg['user']);msg['X-Spam']=true;break;} case '?boss':{ShowBossesMsg(msg['user']);msg['X-Spam']=true;break;} case '?weapons':{ShowWeaponsMsg(msg['user']);msg['X-Spam']=true;break;} case '?champactive':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){ChampOnOff(message[1]);} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?players':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){DiplayPlayers();} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?setmhealth':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){ if((message[1]!=''&&message[2]!='')||message[1]!=''){ {MinionHealth[parseInt(message[1])]=parseInt(message[2]); MsgUser('cmd='+M(WaveArray[parseInt(message[1])])+' Minion added to horde.Now('+MinionHealth[parseInt(message[1])]+')',msg['user']);}} else{MsgUser('use ?setmhealth <minion wave number> <anount want set to> one in front EXP- ?setmhealth 1 500');}} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?resetboss':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){BuildBoss();Boss=1;EnterBossMsg(Boss);MsgUser('cmd=Bosses where reset',msg['user']);} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?setboss':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){Boss[parseInt(message[1])]=parseInt(message[2]);MsgUser('cmd='+M(WaveArray[parseInt(message[1])],msg['user'])+' Minion added to horde.Now('+MinionHealth[parseInt(message[1])]+')');} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?setbhealth':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){ if((message[1]!=''&&message[2]!='')||message[1]!=''){ Bosses[parseInt(message[1])][parseInt(health)]=parseInt(message[2]); MsgUser('cmd='+BA(parseInt(message[1]),msg['user'])+' health is now set to('+BAH(parseInt(message[1]))+')');} else{MsgUser('use ?setbhealth <boss lvl> <anount want set to> EXP- ?setbhealth 1 500');}} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?addrwave':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){AddRWave();} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?subwave':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){SubWave(parseInt(message[1]));MsgUser('Minion removed from Wave Vs cmd',msg['user']);} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?addminion':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){AddMinion(parseInt(message[1]));MsgUser('cmd='+H(parseInt(message[1]),msg['user'])+' Minion added to horde.Now('+HS(parseInt(message[1]))+')');} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?subminion':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){SubMinion(parseInt(message[1]));MsgUser('cmd='+H(parseInt(message[1]),msg['user'])+' Minion Subtracted from horde.Now('+HS(parseInt(message[1]))+')');} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?setminion':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){SetMinionPop(parseInt(message[1]),parseInt(message[2]));MsgUser('cmd=Minion hoard set',msg['user']);} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?cums':{ MsgUser('Cum Count is= '+CumCounter,msg['user']);msg['X-Spam']=true;break;} case '?setcum':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){CumCounter=parseInt(message[1]);MsgUser('cmd=Cum set',msg['user']);MsgAll('Cum Set to('+CumCounter+')');} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?addcum':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){CumCounter++;MsgUser('cmd=Cum added to counter',msg['user']);MsgAll('Hethro says :sparkles Cum Added to count('+CumCounter+')');} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?subcum':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){CumCounter--;MsgUser('cmd=Cum removed from counter',msg['user']);MsgAll('Cum subtracted from count('+CumCounter+')');} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?setgoalcurrent':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){RepeatgoalCurrent=parseInt(message[1]);MsgUser('cmd=current set',msg['user']);} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?setgoalcount':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){RepeatGoalCount=parseInt(message[1]);MsgUser('cmd=count set',msg['user']);} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?setgoal':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){RepeatGoalMax=parseInt(message[1]);MsgUser('cmd=goal set',msg['user']);} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?setsolotipmax':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){SoloTipMax=parseInt(message[1]);MsgUser('cmd=solo tip max set',msg['user']);} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?menu':{ MsgUser(FullTipMenu,msg['user']);msg['X-Spam']=true;break;} case '?menuall':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){MsgAll(FullTipMenu);} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?hethro':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){MsgAll('---===<<<~~~~~~>>>===---\n---===<<<HETHRO>>>===---\n---===<<<~~~~~~>>===---');} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?finish':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){MsgAllReward('---===<<<~~~~~~~~~>>>===---\n---===<<<FINISH HER>>>===---\n---===<<<BIG TIP NOW>>>===---\n---===<<<~~~~~~~~~>>===---');} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} case '?tag':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){MsgAllReward('---===<<<~~~~~~~~~>>>===---\n---===<<<'+message[1]+'>>>===---\n---===<<<~~~~~~~~~>>===---');} else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} //......................................... }}}) //============inti============== function inti(){ ChampActive=cs.ChampionActive; RepeatGoalActive=cs.RepeatGoalActive; buildPlayers(); buildHorde(); buildRepeatGoal(); if(cs.BossEnable=='On'&&Bossbuilt==0){BuildBoss();Boss=1;EnterBossMsg(Boss);}; SetMinionChance(); BuildMPDA(); BuildTipMenu(); BuildFullTipMenu(); SoloTipMax= cs.MaxSoloTip; } inti();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.