connormce10

The Collector

May 6th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. !function() {
  2.  
  3.     SWAM.on("gameRunning", () => {
  4.  
  5.         let UI_newScore = UI.newScore;
  6.         UI.newScore = function (data) {
  7.             if (data.upgrades == parseInt($("#score-upgrades").html()) + 1)
  8.             {
  9.                 // Change this to whatever you want
  10.                 Network.sendSay("Added to my collection...");
  11.             }
  12.            
  13.             return UI_newScore.call(UI, data);
  14.         };
  15.        
  16.     });
  17.  
  18.     SWAM.registerExtension({
  19.         name: "The Collector",
  20.         id: "collector",
  21.         description: "speech bubble messages whenever you pick up an upgrade box",
  22.         author: "Bombita, connormce10",
  23.         version: "2.0"
  24.     });
  25. }();
Add Comment
Please, Sign In to add comment