This will enable quickref without having to replace source code. It's not perfect, as I would imagine the proxy could be used for many properties, but for now this works.
Sweet, learning new JavaScript stuff everyday xD
Edit:
Holy! This proxy object is soooo powerful: [Link]
Might take me a while to get used to playing with it, but damn it's good!!
"Error: ReferenceError: atkMoveMap is not defined"
Is there something wrong???
Creater0822 is working on fixes, there is a lot of code being changed daily, there is bound to be a few hiccups here and there.
To fix the abilitybuff command with the newest release just edit it to this
// Should be safe as it doesn't modify the character, but I haven't verified.
registerCheat('abilitybuff', function(params){
const atkMoveMap = this["scripts.CustomMaps"].atkMoveMap.h;
castTime = params[0] || .1;
for(const [key, value] of Object.entries(atkMoveMap)){
value.h["cooldown"] = 0;
value.h["castTime"] = castTime;
value.h["manaCost"] = 0;
atkMoveMap[key] = value;
}
this["scripts.CustomMaps"].atkMoveMap.h = atkMoveMap;
return `Cast time set to ${castTime}s, cooldown and mana cost nullified!`;
});
I've created an app that automatically unpacks the .asar archive and there is a menu to select cheats you want to apply. My hope is that some cheats will still work even after updates. Also it's worth to mention that this app will not work well/at all if Z.js was beautifed so if you want to also have your own cheats then run the app first, apply what you want and then beautify and change the code manually.
How to use:
Place it in the same folder as game .exe and run.
Link: [Link]
Currently the supported cheats are:
World1:
CheapBribes - bribes cost 1 copper
CheapRecipes - recipes use no materials
FreeStamps - stamps are free to level up
World 2:
Alchemy:
BetterAlchemyP2W - brewing speed and liquid speed are multiplied by specified factor
FreeBubbles - bubbles are free to level up
GuranteedNewBubbles - brewing new bubble always succeeds
FreeVials - vials are free to level up
GuranteedVial - dropping an item to add new vial always succeeds
StrongerActiveBubbles - active bubbles are much stronger; Can be used multiple times to stack
PostOffice: EasyPostOfficeOrders - orders will only require one piece of item, disabled streak scaling
General:
FreeGemShop - all gem items are free in gem shop
QuickRefAccess - all features are available during quick ref
StrongerCards - cards are much stronger e.g drop rate cards multiply drop rate by x100 - x100000. The idea behind those is to have cheats you can apply "on the fly" depending on your needs
Pack1DropsEventCards - card pack no 1 drops event cards instead of blunder hills ones
I'll might add some more cheats in the future, especially stuff related to world 3 like faster construction/trapping. Worship is already more or less handled by card cheat.
Also, while those cheats should be very safe to use, use them wisely. If you use free bubble/stamps upgrades and then give yourself 1k worth of primary stat like strength other users can still see that and report you.
I just wish it came out with a new version.
It's too cumbersome to edit and change them one by one.
I wish I could reproduce these functions someday.
Oh man talk about a late night struggle
I've literally been working all night, only to improve gga as well as still not finished with another information gathering function. (Psst I thought I would've finished those within 30 minutes, well I thought wrong xD)
Added teleport, quickref and cheats
The two functions that iBelg shared earlier tonight. These functions respectively makes teleports free, unlocks quick ref and shows the amount of existing cheat commands.
Fixed abilitybuff for the new style
Fixed unlock portals for the new style
Added function: errOut
A very simple function that tries to return the input object with .toString('utf8');, if it throws a RangeError, return the input object itself, otherwise return an error message.
Improved gga:
Previously returned the attribute values either with or without .toString('utf8');. Therefore it couldn't always display game attributes. This new version should be able to read most stuff fine. Additionally, there are optional index params that allow for subsetting up to three dimensions down whatever object you're looking at.
Added list gga:
Lists all the attributes that you can use in gga. (No more heavy-duty Regex on Z.js required to make this list possible)
I've created an app that automatically unpacks the .asar archive and there is a menu to select cheats you want to apply. My hope is that some cheats will still work even after updates. Also it's worth to mention that this app will not work well/at all if Z.js was beautifed so if you want to also have your own cheats then run the app first, apply what you want and then beautify and change the code manually.
How to use:
Place it in the same folder as game .exe and run.
Link: [Link]
Currently the supported cheats are:
World1:
CheapBribes - bribes cost 1 copper
CheapRecipes - recipes use no materials
FreeStamps - stamps are free to level up
World 2:
Alchemy:
BetterAlchemyP2W - brewing speed and liquid speed are multiplied by specified factor
FreeBubbles - bubbles are free to level up
GuranteedNewBubbles - brewing new bubble always succeeds
FreeVials - vials are free to level up
GuranteedVial - dropping an item to add new vial always succeeds
StrongerActiveBubbles - active bubbles are much stronger; Can be used multiple times to stack
PostOffice: EasyPostOfficeOrders - orders will only require one piece of item, disabled streak scaling
General:
FreeGemShop - all gem items are free in gem shop
QuickRefAccess - all features are available during quick ref
StrongerCards - cards are much stronger e.g drop rate cards multiply drop rate by x100 - x100000. The idea behind those is to have cheats you can apply "on the fly" depending on your needs
Pack1DropsEventCards - card pack no 1 drops event cards instead of blunder hills ones
I'll might add some more cheats in the future, especially stuff related to world 3 like faster construction/trapping. Worship is already more or less handled by card cheat.
Also, while those cheats should be very safe to use, use them wisely. If you use free bubble/stamps upgrades and then give yourself 1k worth of primary stat like strength other users can still see that and report you.
I just wish it came out with a new version.
It's too cumbersome to edit and change them one by one.
I wish I could reproduce these functions someday.
Yeah, if @Wydra open sources that tool, we can update it to automate whatever modifications that we truly-truly want or must perform manually within Z.js
Using Proxy objects does (for example) allow us to have OptionsListAccount 26 always set to zero, after we run the respective command that we create, but this is typically something that we already want modified before the game even starts running (so that there's no chance to re-shadow ban).
But to be fair: We could obviously still use iBelg's console for pre-String modifications on this particular shadow ban mechanic
I was very concerned about the task like this achievement system,
so I looked it up with Visual Stdio Code, and it worked fine as a result of modifying it.
You can clear it for free if you edit all the values in the light blue circled area to 0.
I marked it once more because I thought people might not see it and pass it by.
You can indeed change items to whatever you want but be careful to not change it to something that has not been released.
In the Z.js search for .MonsterDrops and you'll come across what the mobs are called.
["COIN", "0.5", "15", "N/A"],
This above is an example, I changed the coins on the first ever mobs to 15 coins from 5 coins and I used the first mobs to drop anything I needed.
So as it goes you change "COIN" to any item name, "0.5" is the percentage of getting that item and then finally the amount.
I've used this same method before, but it's too difficult because I have to edit one by one and it happens every time that the item doesn't come out at all by mistake.
Among the abilities of the card, there is an Item Drop rate, so I searched for it and changed it once, and it works better than I expected and I am enjoying it more comfortably than before
In addition to this, there are other functions that make the game easier once you change it.
As for the downside, it was difficult to take all of them in the inventory because too many items spilled out due to the effect of the Item Drop.
I've used this same method before, but it's too difficult because I have to edit one by one and it happens every time that the item doesn't come out at all by mistake.
Among the abilities of the card, there is an Item Drop rate, so I searched for it and changed it once, and it works better than I expected and I am enjoying it more comfortably than before
In addition to this, there are other functions that make the game easier once you change it.
As for the downside, it was difficult to take all of them in the inventory because too many items spilled out due to the effect of the Item Drop.
Ah yeah editing those cards effects used to be the best, but right now we can indeed drop or spawn anything we like through the console (Ohh the power creep xD)