Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setTimeout(function(){
  2. document.getElementById("global_header").innerHTML="CLICK HERE TO CHEAT";
  3. document.getElementById("global_header").setAttribute("style", "color:white; border: 5px solid blue; font-size:130px;");
  4. document.getElementById("global_header").addEventListener("click", start);
  5. ; }, 5000);
  6. function start(){
  7.     setInterval(function(){ doTheCheat(); },3000);
  8. }
  9.  
  10. function autoFire(delay){
  11.     setInterval(function(){
  12.         for(var i=49;i<57;i++){
  13.                 var mykey = new Event("keydown");
  14.                 mykey.keyCode=i;
  15.                 window.dispatchEvent(mykey);
  16.         }
  17.     },delay);
  18. }
  19.  
  20.  
  21. var doTheCheat = function(){
  22.        
  23.         //set to whatever
  24.         gPlayerInfo.level=9;
  25.  
  26.         //freeze enemies
  27.         CEnemy.prototype.Walk = function(){
  28.             this.m_Sprite.textures = this.m_rgWalkFrames;
  29.             this.m_Sprite.loop = true;
  30.             this.m_Sprite.play();
  31.             this.m_Sprite.onComplete = null;
  32.             this.m_bMoving = false;
  33.         };
  34.  
  35.         //always hit
  36.         CBattleState.prototype.DamageEnemiesAtLocation = function( nAmount, rect ){
  37.             this.m_EnemyManager.m_rgEnemies.forEach( function( enemy ) {
  38.                     enemy.Damage( nAmount );
  39.             });
  40.         };
  41.  
  42.         //instant cooldown
  43.         CCooldownHandler.prototype.BAttack = function(){
  44.             return true;
  45.          };
  46.  
  47.         //auto fire everything
  48.         autoFire(300);
  49.  
  50. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement