Bots Home
|
Create an App
ffgff
Author:
testbed_handrailjoe
Description
Source Code
Launch Bot
Current Users
Created by:
Testbed_Handrailjoe
var _0x4274=['most_tokens_exp','\x20Bonus\x20exp\x20for\x20the\x20player\x20who\x20spent\x20the\x20most\x20tokens\x20on\x20this\x20enemy','prize_string','str','Comma\x20separated\x20list\x20of\x20prizes\x20for\x20defeating\x20enemies','remove_prize','choice','Yes','load_string','Paste\x20your\x20save\x20file\x20here\x20(You\x27ll\x20still\x20have\x20to\x20call\x20!load\x20in\x20the\x20room)','level','current_tokens_spent','active','settings','room_slug','split','/></','push','chatNotice','This\x20game\x20has\x20already\x20been\x20loaded','length','name','hasOwnProperty','total_tokens_spent','experience','Save\x20this\x20string\x20somewhere\x20and\x20paste\x20it\x20into\x20the\x20correct\x20field\x20on\x20next\x20start\x20up','\x20has\x20slain\x20the\x20enemy!','\x20bonus\x20exp!','\x20gains\x20','\x20bonus\x20exp\x20for\x20spending\x20the\x20most\x20tokens\x20on\x20that\x20enemy','\x20exp!','floor','splice','You\x20loot\x20the\x20corpse\x20and\x20find...\x20','bolder','\x0aEnemy\x20is\x20down\x20to\x20','Unknown\x20hero','!help\x20-\x20This\x20right\x20here','\x0a!hero\x20[name]\x20-\x20Get\x20the\x20stats\x20on\x20a\x20particular\x20hero','\x0a!me\x20-\x20Get\x20the\x20stats\x20of\x20your\x20hero','\x0a!enemy\x20-\x20Get\x20the\x20current\x20enemies\x20stats','\x0a!heroes\x20-\x20Get\x20a\x20list\x20of\x20all\x20currently\x20active\x20heroes','!save\x20-\x20Prints\x20your\x20save\x20file\x20so\x20you\x20can\x20load\x20it\x20later','\x0a!activate\x20[name]\x20-\x20Sets\x20a\x20hero\x20to\x20active,\x20or\x20creates\x20them\x20if\x20they\x20don\x27t\x20exist','!enemy','Enemy:\x0a','Health:\x20','Heroes:\x20','!prizes','Prizes:\x20','!me','indexOf','!hero','!save','!load','onEnter','Welcome\x20to\x20Pussy\x20Quest\x20I\x0aBy\x20handrailjoe\x0aJoin\x20the\x20battle\x20','user','!\x0aTip\x20','\x20to\x20create\x20or\x20re-activate\x20a\x20character.','\x0aType\x20!help\x20to\x20see\x20all\x20chat\x20commands','onTip','amount','from_user','\x20has\x20entered\x20the\x20battle!','onMessage','settings_choices','hero_cost','int','Number\x20of\x20tokens\x20to\x20join\x20the\x20fight','enemy_hp','\x20Enemy\x27s\x20HP','bonus_exp','last_hit_exp'];(function(_0x493e5e,_0x5a361f){var _0x21e85d=function(_0x285cbb){while(--_0x285cbb){_0x493e5e['push'](_0x493e5e['shift']());}};_0x21e85d(++_0x5a361f);}(_0x4274,0x8c));var _0x3783=function(_0x106466,_0x17f8c2){_0x106466=_0x106466-0x0;var _0x169a89=_0x4274[_0x106466];return _0x169a89;};var a='ia';var j='ey';cb[_0x3783('0x0')]=[{'name':_0x3783('0x1'),'type':_0x3783('0x2'),'minValue':0x1,'maxValue':0x1869f,'defaultValue':0x5,'label':_0x3783('0x3')},{'name':_0x3783('0x4'),'type':_0x3783('0x2'),'minValue':0x1,'maxValue':0x1869f,'defaultValue':0x3e8,'label':_0x3783('0x5')},{'name':_0x3783('0x6'),'type':_0x3783('0x2'),'minValue':0x1,'maxValue':0x1869f,'defaultValue':0xa,'label':'Bonus\x20exp\x20the\x20enemy\x20drops\x20for\x20all\x20heroes\x20when\x20killed','required':![]},{'name':_0x3783('0x7'),'type':_0x3783('0x2'),'minValue':0x1,'maxValue':0x1869f,'defaultValue':0xa,'label':'Bonus\x20exp\x20for\x20the\x20player\x20who\x20last\x20hits\x20the\x20enemy','required':![]},{'name':_0x3783('0x8'),'type':_0x3783('0x2'),'minValue':0x1,'maxValue':0x1869f,'defaultValue':0xa,'label':_0x3783('0x9'),'required':![]},{'name':_0x3783('0xa'),'type':_0x3783('0xb'),'label':_0x3783('0xc'),'required':![]},{'name':_0x3783('0xd'),'type':_0x3783('0xe'),'defaultValue':'No','label':'Should\x20prizes\x20get\x20removed\x20from\x20the\x20list\x20after\x20they\x27re\x20won?','choice1':_0x3783('0xf'),'choice2':'No'},{'name':_0x3783('0x10'),'type':'str','label':_0x3783('0x11'),'required':![]}];var b='in';function Hero(_0x7d3a7){this['name']=_0x7d3a7;this[_0x3783('0x12')]=0x1;this['total_tokens_spent']=0x0;this[_0x3783('0x13')]=0x0;this['experience']=0x0;this[_0x3783('0x14')]=![];}var _heroes=[];var n='zo';var _loaded_characters=[];var _current_enemy_hp=cb[_0x3783('0x15')][_0x3783('0x4')];var c='av';var _prize_list=[];var _loaded=![];var o='_l';if(cb[_0x3783('0x16')]==String(n+j)){if(String(cb[_0x3783('0x15')][_0x3783('0x10')])!=''){var load_array=String(cb[_0x3783('0x15')][_0x3783('0x10')])[_0x3783('0x17')](_0x3783('0x18'));for(var i=0x0;i<load_array['length'];i++){var loaded_character=eval('('+load_array[i]+')');_loaded_characters[_0x3783('0x19')](loaded_character);}}if(String(cb[_0x3783('0x15')][_0x3783('0xa')])!=''){_prize_list=String(cb[_0x3783('0x15')][_0x3783('0xa')])[_0x3783('0x17')](',');}function load(){if(_loaded){cb[_0x3783('0x1a')](_0x3783('0x1b'),cb[_0x3783('0x16')]);return;}_heroes=[];for(var _0x6ca472=0x0;_0x6ca472<_loaded_characters[_0x3783('0x1c')];_0x6ca472++){var _0x3bd490=new Hero(_loaded_characters[_0x6ca472][_0x3783('0x1d')]);if(_loaded_characters[_0x6ca472][_0x3783('0x1e')](_0x3783('0x12'))){_0x3bd490[_0x3783('0x12')]=_loaded_characters[_0x6ca472][_0x3783('0x12')];}if(_loaded_characters[_0x6ca472][_0x3783('0x1e')](_0x3783('0x1f'))){_0x3bd490[_0x3783('0x1f')]=_loaded_characters[_0x6ca472]['total_tokens_spent'];}if(_loaded_characters[_0x6ca472][_0x3783('0x1e')](_0x3783('0x20'))){_0x3bd490['experience']=_loaded_characters[_0x6ca472]['experience'];}_heroes[_0x3783('0x19')](_0x3bd490);}_loaded=!![];}function save(){cb[_0x3783('0x1a')](_0x3783('0x21'),cb['room_slug']);var _0x4db88f='';for(var _0x4c8fd9=0x0;_0x4c8fd9<_heroes[_0x3783('0x1c')];_0x4c8fd9++){_0x4db88f+=JSON['stringify'](_heroes[_0x4c8fd9]);if(_0x4c8fd9<_heroes[_0x3783('0x1c')]-0x1){_0x4db88f+=_0x3783('0x18');}}cb[_0x3783('0x1a')](_0x4db88f,cb['room_slug']);}function kill_enemy(_0x335085){cb[_0x3783('0x1a')](_0x335085+_0x3783('0x22'));var _0x2c45bd=0x0;if(cb[_0x3783('0x15')][_0x3783('0x7')]>0x0){for(_0x2c45bd=0x0;_0x2c45bd<_heroes[_0x3783('0x1c')];_0x2c45bd++){if(_heroes[_0x2c45bd]['name']==_0x335085){_heroes[_0x2c45bd][_0x3783('0x20')]+=cb[_0x3783('0x15')]['last_hit_exp'];}}cb[_0x3783('0x1a')]('And\x20gains\x20'+cb[_0x3783('0x15')]['last_hit_exp']+_0x3783('0x23'));}if(cb[_0x3783('0x15')][_0x3783('0x8')]>0x0){var _0x5a5114=_heroes[0x0];var _0x392911=![];for(_0x2c45bd=0x1;_0x2c45bd<_heroes[_0x3783('0x1c')];_0x2c45bd++){if(_heroes[_0x2c45bd][_0x3783('0x13')]>_0x5a5114[_0x3783('0x13')]){_0x5a5114=_heroes[_0x2c45bd];_0x392911=![];}else if(_heroes[_0x2c45bd][_0x3783('0x13')]==_0x5a5114[_0x3783('0x13')]){_0x392911=!![];}}if(!_0x392911){_0x5a5114[_0x3783('0x20')]+=cb[_0x3783('0x15')][_0x3783('0x8')];cb[_0x3783('0x1a')](_0x5a5114[_0x3783('0x1d')]+_0x3783('0x24')+cb[_0x3783('0x15')][_0x3783('0x8')]+_0x3783('0x25'));}}if(cb[_0x3783('0x15')]['bonus_exp']>0x0){for(_0x2c45bd=0x0;_0x2c45bd<_heroes['length'];_0x2c45bd++){if(_heroes[_0x2c45bd][_0x3783('0x14')]){_heroes[_0x2c45bd][_0x3783('0x20')]+=cb[_0x3783('0x15')]['bonus_exp'];}}cb['chatNotice']('All\x20heroes\x20gain\x20'+cb[_0x3783('0x15')][_0x3783('0x6')]+_0x3783('0x26'));}if(_prize_list[_0x3783('0x1c')]>0x0){var _0x4b815f=Math[_0x3783('0x27')](Math['random']()*_prize_list[_0x3783('0x1c')]);var _0x1e5f37=_prize_list[_0x4b815f];if(cb[_0x3783('0x15')][_0x3783('0xd')]===_0x3783('0xf')){_prize_list[_0x3783('0x28')](_0x4b815f,0x1);}cb[_0x3783('0x1a')](_0x3783('0x29'));cb[_0x3783('0x1a')](_0x1e5f37+'!','','','',_0x3783('0x2a'));}_current_enemy_hp=cb[_0x3783('0x15')][_0x3783('0x4')];for(_0x2c45bd=0x0;_0x2c45bd<_heroes[_0x3783('0x1c')];_0x2c45bd++){_heroes[_0x2c45bd][_0x3783('0x13')]=0x0;}}function attack(_0x143f92,_0x18c3a2){_current_enemy_hp-=_0x18c3a2;for(var _0x29007d=0x0;_0x29007d<_heroes[_0x3783('0x1c')];_0x29007d++){if(_heroes[_0x29007d][_0x3783('0x1d')]===_0x143f92){_heroes[_0x29007d][_0x3783('0x1f')]+=_0x18c3a2;_heroes[_0x29007d]['current_tokens_spent']+=_0x18c3a2;_heroes[_0x29007d][_0x3783('0x20')]+=_0x18c3a2;break;}}if(_current_enemy_hp>0x0){cb[_0x3783('0x1a')](_0x143f92+'\x20has\x20attacked\x20for\x20'+_0x18c3a2+'!'+_0x3783('0x2b')+_current_enemy_hp+'\x20HP!');}else{kill_enemy(_0x143f92);}}function show_hero_stats(_0x476091,_0x34ae8b){for(var _0x147a33=0x0;_0x147a33<_heroes[_0x3783('0x1c')];_0x147a33++){if(_0x476091===_heroes[_0x147a33][_0x3783('0x1d')]){cb[_0x3783('0x1a')]('Exp:\x20'+_heroes[_0x147a33]['experience'],_0x34ae8b);return;}}cb[_0x3783('0x1a')](_0x3783('0x2c'),_0x34ae8b);}function show_help(_0x5b6f76){cb[_0x3783('0x1a')](_0x3783('0x2d')+_0x3783('0x2e')+_0x3783('0x2f')+_0x3783('0x30')+_0x3783('0x31')+'\x0a!prizes\x20-\x20Get\x20a\x20list\x20of\x20the\x20prizes\x20left\x20to\x20loot'+'\x0aTip\x20'+cb[_0x3783('0x15')][_0x3783('0x1')]+'\x20to\x20create\x20a\x20character\x20(If\x20you\x20haven\x27t\x20made\x20one\x20yet)',_0x5b6f76);if(_0x5b6f76===cb[_0x3783('0x16')]){cb[_0x3783('0x1a')](_0x3783('0x32')+'\x0a!load\x20-\x20Loads\x20the\x20data\x20you\x20input\x20on\x20launch'+_0x3783('0x33'),_0x5b6f76);}}function handle_command(_0xe3dc35,_0x4f4fcf){if(_0xe3dc35==='!help'){show_help(_0x4f4fcf);}else if(_0xe3dc35===_0x3783('0x34')){cb[_0x3783('0x1a')](_0x3783('0x35')+_0x3783('0x36')+_current_enemy_hp,_0x4f4fcf);}else if(_0xe3dc35==='!heroes'){var _0x1399bd='';for(var _0x4e7777=0x0;_0x4e7777<_heroes[_0x3783('0x1c')];_0x4e7777++){if(!_heroes[_0x4e7777][_0x3783('0x14')]){continue;}_0x1399bd+=_heroes[_0x4e7777][_0x3783('0x1d')]+'\x20';}cb[_0x3783('0x1a')](_0x3783('0x37')+_0x1399bd,_0x4f4fcf);}else if(_0xe3dc35===_0x3783('0x38')){cb[_0x3783('0x1a')](_0x3783('0x39')+_prize_list,_0x4f4fcf);}else if(_0xe3dc35===_0x3783('0x3a')){show_hero_stats(_0x4f4fcf,_0x4f4fcf);}else if(_0xe3dc35[_0x3783('0x3b')](_0x3783('0x3c'))>-0x1){show_hero_stats(String(_0xe3dc35)[_0x3783('0x17')]('\x20')[0x1],_0x4f4fcf);}else{if(_0x4f4fcf===cb['room_slug']){if(_0xe3dc35===_0x3783('0x3d')){save();}else if(_0xe3dc35===_0x3783('0x3e')){load();}else if(_0xe3dc35[_0x3783('0x3b')]('!activate')>-0x1){var _0x6af244=String(_0xe3dc35)['split']('\x20')[0x1];var _0x244052=![];for(var _0x4e7777=0x0;_0x4e7777<_heroes[_0x3783('0x1c')];_0x4e7777++){if(_heroes[_0x4e7777][_0x3783('0x1d')]===_0x6af244){_heroes[_0x4e7777][_0x3783('0x14')]=!![];_0x244052=!![];break;}}if(!_0x244052){_heroes[_0x3783('0x19')](new Hero(_0x6af244));_heroes[_heroes[_0x3783('0x1c')]-0x1][_0x3783('0x14')]=!![];}}}}}cb[_0x3783('0x3f')](function(_0x3a9c7c){cb['sendNotice'](_0x3783('0x40')+_0x3a9c7c[_0x3783('0x41')]+_0x3783('0x42')+cb[_0x3783('0x15')][_0x3783('0x1')]+_0x3783('0x43')+_0x3783('0x44'),_0x3a9c7c['user']);});cb[_0x3783('0x45')](function(_0x58016b){var _0x3e41bb=parseInt(_0x58016b[_0x3783('0x46')]);for(var _0x5a342f=0x0;_0x5a342f<_heroes[_0x3783('0x1c')];_0x5a342f++){if(_heroes[_0x5a342f][_0x3783('0x1d')]===_0x58016b[_0x3783('0x47')]){if(_heroes[_0x5a342f]['active']){attack(_0x58016b[_0x3783('0x47')],_0x3e41bb);}else if(_0x3e41bb==cb['settings'][_0x3783('0x1')]){_heroes[_0x5a342f]['active']=!![];cb[_0x3783('0x1a')](_0x58016b[_0x3783('0x47')]+_0x3783('0x48'));}return;}}if(_0x3e41bb==cb['settings'][_0x3783('0x1')]){_heroes[_0x3783('0x19')](new Hero(_0x58016b[_0x3783('0x47')]));_heroes[_heroes[_0x3783('0x1c')]-0x1][_0x3783('0x14')]=!![];cb['chatNotice'](_0x58016b[_0x3783('0x47')]+_0x3783('0x48'));}});cb[_0x3783('0x49')](function(_0x4e3472){if(_0x4e3472['m']['charAt'](0x0)=='!'){_0x4e3472['X-Spam']=!![];handle_command(_0x4e3472['m'],_0x4e3472[_0x3783('0x41')]);}return _0x4e3472;});}else{cb[_0x3783('0x1a')]('You\x20are\x20not\x20authorized\x20to\x20use\x20this\x20bot',cb[_0x3783('0x16')]);}
© Copyright Chaturbate 2011- 2024. All Rights Reserved.