BustaFollow Script


SUBMITTED BY: Schizophrenia

DATE: April 23, 2016, 6:36 p.m.

UPDATED: April 23, 2016, 6:37 p.m.

FORMAT: Text only

SIZE: 2.4 kB

HITS: 618

  1. //#############################################################
  2. //______ _ ___ ______ _ _
  3. //| ___ \ | | / _ \ | ___| | | |
  4. //| |_/ /_ _ ___| |_ / /_\ \ | |_ ___ | | | _____ __
  5. //| ___ \ | | / __| __| | _ | | _/ _ \| | |/ _ \ \ /\ / /
  6. //| |_/ / |_| \__ \ |_ | | | | | || (_) | | | (_) \ V V /
  7. //\____/ \__,_|___/\__| \_| |_/ \_| \___/|_|_|\___/ \_/\_/
  8. //#############################################################
  9. /** Busta-A-Bit Follow Script
  10. *
  11. * This script will follow whoever you select by typing it as a chat message
  12. *
  13. * Please do not distribute
  14. * Please do not remove any commas
  15. * Please do not sell
  16. * Please do not claim as your own
  17. * Please do not blame me for any bits lost
  18. *
  19. */
  20. /** -------------- Settings -------------- **/
  21. var settings = {
  22. 'baseBet': 1,
  23. //Your base bet, in bits
  24. 'maxMultiplier': 100
  25. //If the person you are following does not cash out, what would you like to cash out on
  26. };
  27. /** -------------- Settings -------------- **/
  28. /** SAFE EDIT LINE
  29. * ------------------------------------------------------------------------------------------------------------------------------------------/
  30. * WARNING: ANY EDITS BEYOND THIS LINE CAN RESULT IN LOSS OF BITS
  31. * DO NOT TOUCH. THIS IS YOUR ONLY WARNING
  32. * IF YOU EDIT ANYTHING BELOW THIS LINE YOU WILL LOSE BITS. I PROMISE
  33. * ------------------------------------------------------------------------------------------------------------------------------------------ **/
  34. var script = {
  35. 'follow': null,
  36. 'cashedOut': false,
  37. 'username': engine.getUsername()
  38. };
  39. engine.on('msg', function(data) {
  40. if(data.username == script.username)
  41. {
  42. if(data.message.indexOf('$follow') > -1)
  43. {
  44. message = data.message;
  45. message = message.replace('$follow ', '');
  46. script.follow = message;
  47. console.log('Script will now follow ' + message);
  48. }
  49. }
  50. });
  51. engine.on('player_bet', function(data)
  52. {
  53. if(data['username'] == script.follow)
  54. {
  55. engine.placeBet(settings.baseBet * 100, Math.round(settings.maxMultiplier * 100), false);
  56. }
  57. });
  58. engine.on('cashed_out', function(resp) {
  59. if(script.follow == resp.username)
  60. {
  61. engine.cashOut();
  62. script.cashedOut = true;
  63. }
  64. });

comments powered by Disqus