Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setTimeout(function(){
- document.getElementById("global_header").innerHTML="CLICK HERE TO CHEAT";
- document.getElementById("global_header").setAttribute("style", "color:white; border: 5px solid blue; font-size:130px;");
- document.getElementById("global_header").addEventListener("click", start);
- ; }, 5000);
- function start(){
- setInterval(function(){ doTheCheat(); },3000);
- }
- function autoFire(delay){
- setInterval(function(){
- for(var i=49;i<57;i++){
- var mykey = new Event("keydown");
- mykey.keyCode=i;
- window.dispatchEvent(mykey);
- }
- },delay);
- }
- var doTheCheat = function(){
- //set to whatever
- gPlayerInfo.level=9;
- //freeze enemies
- CEnemy.prototype.Walk = function(){
- this.m_Sprite.textures = this.m_rgWalkFrames;
- this.m_Sprite.loop = true;
- this.m_Sprite.play();
- this.m_Sprite.onComplete = null;
- this.m_bMoving = false;
- };
- //always hit
- CBattleState.prototype.DamageEnemiesAtLocation = function( nAmount, rect ){
- this.m_EnemyManager.m_rgEnemies.forEach( function( enemy ) {
- enemy.Damage( nAmount );
- });
- };
- //instant cooldown
- CCooldownHandler.prototype.BAttack = function(){
- return true;
- };
- //auto fire everything
- autoFire(300);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement