top of page

Emergency update: GemCraft Labytinth Official Premium hacked bug fix:

Issue: save slots becomes empty when wizard level gets too high

solution: Remove Utils.Calculator.GetPlayerLevelReqArray(paran1:Number): Array

the whole script

package com.giab.games.gcl.gs.util { import com.giab.games.gcl.gs.entity.StageData; public class Calculator { private var playerLevelXpReqs:Array; public function Calculator() { super(); this.playerLevelXpReqs = this.getPlayerlevelReqArray(500); } private function getPlayerlevelReqArray(param1:Number) : Array { var _loc2_:Number = NaN; var _loc3_:Array = new Array(); _loc3_.push(0); var _loc4_:Number = 200; var _loc5_:Number = 200; _loc2_ = 1; while(_loc2_ < param1) { _loc3_.push(_loc4_); _loc4_ = _loc4_ + _loc5_; _loc5_ = _loc5_ + 100; if(_loc2_ % 3 == 0) { _loc5_ = _loc5_ + 100; } if(_loc2_ % 5 == 0) { _loc5_ = _loc5_ + 100; } if(_loc2_ % 11 == 0) { _loc5_ = _loc5_ + 100; } _loc2_++; } return _loc3_; } public function calculatePlayerLevelReq(param1:Number) : Number { if(param1 >= this.playerLevelXpReqs.length) { this.playerLevelXpReqs = this.getPlayerlevelReqArray(param1 + 10); } return this.playerLevelXpReqs[param1]; } public function calculateLevelFromXp(param1:Number) : Number { var _loc2_:Number = 0; var _loc3_:Number = 0; while(_loc3_ <= param1) { _loc2_++; _loc3_ = this.calculatePlayerLevelReq(_loc2_); } return Math.max(0,_loc2_ - 1); } public function calculateStageBaseXp(param1:StageData) : Number { return Math.round(Math.pow(100 * Math.pow(param1.wavesNum * 18.35,0.98) * Math.pow(param1.monsterHpFirstWave * 19.63,0.98),0.425)); } public function calculateXpToGoToNextlevel(param1:Number) : Number { return this.calculatePlayerLevelReq(this.calculateLevelFromXp(param1) + 1) - param1; } } }

we edit this script to package com.giab.games.gcl.gs.util

{

import com.giab.games.gcl.gs.entity.StageData;

public class Calculator

{

public var playerLevelXpReqs:Number = 1;

public function Calculator()

{

super();

}

public function calculatePlayerLevelReq(param1:Number) : Number

{

return Math.pow(param1,2);

}

public function calculateLevelFromXp(param1:Number) : Number

{

return Math.floor(Math.pow(param1,0.5));

}

public function calculateStageBaseXp(param1:StageData) : Number

{

return Math.round(param1.wavesNum * 1836 * param1.monsterHpFirstWave * 1230);

}

public function calculateXpToGoToNextlevel(param1:Number) : Number

{

return this.calculatePlayerLevelReq(this.calculateLevelFromXp(param1) + 1) - param1;

}

}

}

click on "GemGraft Labyrinth hacked" on top of the screen to play

Featured Posts
Check back soon
Once posts are published, you’ll see them here.
Recent Posts
Archive
Search By Tags
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square
bottom of page