Thanks man, really helpfull. Was wondering if there's a simple way to "beautify" the code? kind of hard to work on it as is.barry wrote: ↑Mon Aug 08, 2022 10:54 amYes you can quite easily, (on chrome) just go to devtools, sources, enable overrides and look for z.js in the "page" panel, right click and add to overrides. Then open the file location of the override and there you can edit the file. Save it, reload the page and it will use your locally stored version.
Legends of Idleon
Re: Legends of Idleon
-
- Novice Cheater
- Posts: 16
- Joined: Mon Aug 08, 2022 12:10 pm
- Reputation: 9
Re: Legends of Idleon
How would you active stuff like autoloot that you buy for money?
Re: Legends of Idleon
Since VSCode's built-in formatter and the popular extension prettier kept crashing on me, the most reliable way I found was to using rome by running
Code: Select all
npx rome@next format --write Z.js
Re: Legends of Idleon
Hey, I tried doing your spice thing, and it just crashes the gametibasichelp wrote: ↑Tue May 03, 2022 8:06 pmManual edit z.jsFFD wrote: ↑Tue May 03, 2022 8:00 pmNice find! but how did you edit that so you can use custom cheats in injectcheat? Did you edit the InjectCheatsF3.exe?tibasichelp wrote: ↑Tue May 03, 2022 6:43 pmBypass Claim spice 100 a day
This is the image encoded in base64traced it to the ID corresponding to this imageCode: Select all
"assets/data/Popup16.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAAAqCAYAAADMBKtkAAAAAXNSR0IArs4c6QAABhlJREFUeJztnT1oHEcUx/8T1MiFSoPXVVzrBFYnFKKTscIl4MZFAhdDuLiTVYVzETAujoSAIlJZbowlAslhu1AbYQvnHGLc2WC5VqdLSDoXTrkpbmc1tzdvvndXZ+YHwvbOzXvv3v13dj7eWQwA0GwfIxI5zQz652fQbB//9POvSd2xRCIqvvkKxzMn//hyWGcwkQgFH0w/qDuQSMSUKNbI1BDFGqmOQT/BoO+8PopijYRBJ8RBP0nT1MtFFGskGGmaQirYAEIFolgjgSEFG4AZZSt32mwPyWuywIptqv4qvyqbMprtYak+KZsq+1XFo+sr2qDaffInkKYpGGMJtxdiVAVUYhWcyBwzxhIeWJFiG9mf+HBNbMpgjOlj9vBJ2STtm+QwRDwG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X/lzwdrw+3/6wu1qvymgG3FsRiRi2ye/TrX7oOgv3ihePgxi8BJjSVX8RbhguWj/OJAcHAiszo7+VAnWfxqQ7QvmjqYIfhpFnUpJRi7p6ZRoz4Sy8lRHUU9Osz3sNLaS3cPRPuvK/BywuYSV+TlsfHYyyq7OjkZRES5UHWHmrGWUB1aESwkhNc+tcs5qg9OxswuZYAHk5X8AsPfb+MKKEqeuziDs1tU0orjRpLUIRJuNGMoq8tbNZ0VKE2+WIy5a8RqVZz7SXlu+iF+e04ItbzfApVgi5OgcqlhD0t+7OAVwfxrpvoAnsRskXls0Txc+il5bHv/OlqoO1l+skuTJklPpfMowJh1VfZ3GFNc5MtW/DlSP+tVZ9VQqyMjqU8hhXexi6NunWENXuGFdnGLo16Zf7mvQT3R2XeMtk5210XEsnrxUfiNWJMhuwK1zZ5WFHNJ2YYtJ2W7qW3y9JqaJPoVrZF/T9+ToV9tP5svQrnOOQ0KUE3J0C6xYyBKpl0E/+bpQvF2ct5ZTyBKJeJBPDUpbYEUiPhSnBgqiWCP1Yzh3jv+LYGRqiGKNTA35NCD+eqHIaWd0BBJ/aVvktDPon/8fcwoUN8aojqQAAAAASUVORK5CYII=",
then found two instances where it occurred as PopupType = 154Code: Select all
"154" == this.actor.getValue("ActorEvents_40", "_Animation") && this.actor.setValue("ActorEvents_40", "_ImgInst", t._customBlock_addImgInst("Popup16.png"))
Scrolled up and found where it checks if the value(daily limit) surpasses 100
Commented out the else statement in both instances and set the value of OptionsListAccount[100] to 0Code: Select all
else { b.engine.getGameAttribute("OptionsListAccount")[100] = 0; } //else { //var Tt = b.engine.gameAttributes; //null != d.PopupType ? Tt.setReserved("PopupType", 154) : Tt.h.PopupType = 154; //var Ut = b.engine.gameAttributes; //null != d.DummyNumber ? Ut.setReserved("DummyNumber", 0) : Ut.h.DummyNumber = 0, //h.createRecycledActor(h.getActorType(40), h.getMouseX(), Math.max(102, h.getMouseY()), 0) //}
viewtopic.php?p=208405#p208405
then you can edit the TotalTrekkingHR(Total Foraging Speed) and have it return a value of 5Band use some auto-clicking software, claim your spice overnightCode: Select all
if ("TotalTrekkingHR" == t) { return 5 * Math.pow(10, 9) }
This is the current line of code, how would I set it up so it would imitate what you had?
Code: Select all
if ("TotalTrekkingHR" == t) {
var ps = a.engine.getGameAttribute("DNSM");
null != e.PetszzDN2 ? ps.setReserved("PetszzDN2", 0) : ps.h.PetszzDN2 = 0;
for (var hs = 0; 4 > hs;) {
var fs = hs++;
if ("none" != a.engine.getGameAttribute("Pets")[fs + (27 + 4 * w._customBlock_Breeding("TerritoryID", "0", r, 42)) | 0]) {
var ys = a.engine.getGameAttribute("DNSM"),
Rs = a.engine.getGameAttribute("DNSM"),
vs = null != e.PetszzDN2 ? Rs.getReserved("PetszzDN2") : Rs.h.PetszzDN2,
bs = ys,
Fs = (null == vs ? 0 : "number" == typeof vs ? d.__cast(vs, k) : "number" == typeof vs && (0 | vs) === vs ? d.__cast(vs, l) : "boolean" == typeof vs ? d.__cast(vs, n) ? 1 : 0 : "string" == typeof vs ? parseFloat(vs) : parseFloat(g.string(vs))) + w._customBlock_PetStuff("Trekking", "0", fs, w._customBlock_Breeding("TerritoryID", "0", r, 42));
null != e.PetszzDN2 ? bs.setReserved("PetszzDN2", Fs) : bs.h.PetszzDN2 = Fs
}
}
Re: Legends of Idleon
Spoiler
pajion wrote: ↑Sun Aug 14, 2022 10:13 amHey, I tried doing your spice thing, and it just crashes the gametibasichelp wrote: ↑Tue May 03, 2022 8:06 pmManual edit z.js
viewtopic.php?p=208405#p208405
then you can edit the TotalTrekkingHR(Total Foraging Speed) and have it return a value of 5Band use some auto-clicking software, claim your spice overnightCode: Select all
if ("TotalTrekkingHR" == t) { return 5 * Math.pow(10, 9) }
This is the current line of code, how would I set it up so it would imitate what you had?
Code: Select all
if ("TotalTrekkingHR" == t) { var ps = a.engine.getGameAttribute("DNSM"); null != e.PetszzDN2 ? ps.setReserved("PetszzDN2", 0) : ps.h.PetszzDN2 = 0; for (var hs = 0; 4 > hs;) { var fs = hs++; if ("none" != a.engine.getGameAttribute("Pets")[fs + (27 + 4 * w._customBlock_Breeding("TerritoryID", "0", r, 42)) | 0]) { var ys = a.engine.getGameAttribute("DNSM"), Rs = a.engine.getGameAttribute("DNSM"), vs = null != e.PetszzDN2 ? Rs.getReserved("PetszzDN2") : Rs.h.PetszzDN2, bs = ys, Fs = (null == vs ? 0 : "number" == typeof vs ? d.__cast(vs, k) : "number" == typeof vs && (0 | vs) === vs ? d.__cast(vs, l) : "boolean" == typeof vs ? d.__cast(vs, n) ? 1 : 0 : "string" == typeof vs ? parseFloat(vs) : parseFloat(g.string(vs))) + w._customBlock_PetStuff("Trekking", "0", fs, w._customBlock_Breeding("TerritoryID", "0", r, 42)); null != e.PetszzDN2 ? bs.setReserved("PetszzDN2", Fs) : bs.h.PetszzDN2 = Fs } }
if ("TotalTrekkingHR" == t) {
return 5 * Math.pow(10, 9)
}
Just replace the whole block below with the return function
Re: Legends of Idleon
hxide666 wrote: ↑Sun Aug 14, 2022 11:33 amSpoiler
pajion wrote: ↑Sun Aug 14, 2022 10:13 amHey, I tried doing your spice thing, and it just crashes the gametibasichelp wrote: ↑Tue May 03, 2022 8:06 pm
Manual edit z.js
viewtopic.php?p=208405#p208405
then you can edit the TotalTrekkingHR(Total Foraging Speed) and have it return a value of 5Band use some auto-clicking software, claim your spice overnightCode: Select all
if ("TotalTrekkingHR" == t) { return 5 * Math.pow(10, 9) }
This is the current line of code, how would I set it up so it would imitate what you had?
Code: Select all
if ("TotalTrekkingHR" == t) { var ps = a.engine.getGameAttribute("DNSM"); null != e.PetszzDN2 ? ps.setReserved("PetszzDN2", 0) : ps.h.PetszzDN2 = 0; for (var hs = 0; 4 > hs;) { var fs = hs++; if ("none" != a.engine.getGameAttribute("Pets")[fs + (27 + 4 * w._customBlock_Breeding("TerritoryID", "0", r, 42)) | 0]) { var ys = a.engine.getGameAttribute("DNSM"), Rs = a.engine.getGameAttribute("DNSM"), vs = null != e.PetszzDN2 ? Rs.getReserved("PetszzDN2") : Rs.h.PetszzDN2, bs = ys, Fs = (null == vs ? 0 : "number" == typeof vs ? d.__cast(vs, k) : "number" == typeof vs && (0 | vs) === vs ? d.__cast(vs, l) : "boolean" == typeof vs ? d.__cast(vs, n) ? 1 : 0 : "string" == typeof vs ? parseFloat(vs) : parseFloat(g.string(vs))) + w._customBlock_PetStuff("Trekking", "0", fs, w._customBlock_Breeding("TerritoryID", "0", r, 42)); null != e.PetszzDN2 ? bs.setReserved("PetszzDN2", Fs) : bs.h.PetszzDN2 = Fs } }
if ("TotalTrekkingHR" == t) {
return 5 * Math.pow(10, 9)
}
Just replace the whole block below with the return function
I tried that, but maybe I was tired and fucked it up somewhere let me try it again.
Edit: Yea, so I tried it again and now the game won't load
Re: Legends of Idleon
Spoiler
pajion wrote: ↑Sun Aug 14, 2022 8:26 pmhxide666 wrote: ↑Sun Aug 14, 2022 11:33 amSpoiler
pajion wrote: ↑Sun Aug 14, 2022 10:13 am
Hey, I tried doing your spice thing, and it just crashes the game
This is the current line of code, how would I set it up so it would imitate what you had?
Code: Select all
if ("TotalTrekkingHR" == t) { var ps = a.engine.getGameAttribute("DNSM"); null != e.PetszzDN2 ? ps.setReserved("PetszzDN2", 0) : ps.h.PetszzDN2 = 0; for (var hs = 0; 4 > hs;) { var fs = hs++; if ("none" != a.engine.getGameAttribute("Pets")[fs + (27 + 4 * w._customBlock_Breeding("TerritoryID", "0", r, 42)) | 0]) { var ys = a.engine.getGameAttribute("DNSM"), Rs = a.engine.getGameAttribute("DNSM"), vs = null != e.PetszzDN2 ? Rs.getReserved("PetszzDN2") : Rs.h.PetszzDN2, bs = ys, Fs = (null == vs ? 0 : "number" == typeof vs ? d.__cast(vs, k) : "number" == typeof vs && (0 | vs) === vs ? d.__cast(vs, l) : "boolean" == typeof vs ? d.__cast(vs, n) ? 1 : 0 : "string" == typeof vs ? parseFloat(vs) : parseFloat(g.string(vs))) + w._customBlock_PetStuff("Trekking", "0", fs, w._customBlock_Breeding("TerritoryID", "0", r, 42)); null != e.PetszzDN2 ? bs.setReserved("PetszzDN2", Fs) : bs.h.PetszzDN2 = Fs } }
if ("TotalTrekkingHR" == t) {
return 5 * Math.pow(10, 9)
}
Just replace the whole block below with the return function
I tried that, but maybe I was tired and fucked it up somewhere let me try it again.
Edit: Yea, so I tried it again and now the game won't load
I'll try it later, and send it if it works
Re: Legends of Idleon
I deleted the whole block and replaced it with what was typed, is there a certain line im supposed to replace?hxide666 wrote: ↑Mon Aug 15, 2022 4:41 amYou probably deleted some line, just revert to the orig Z.jsSpoiler
I'll try it later, and send it if it works
Re: Legends of Idleon
Does any1 know the code to get credits/flurbos for dungeon shop? Thx
Re: Legends of Idleon
Does anyone know how to generate Dead DNA using the console without editing the Z.js file?
Re: Legends of Idleon
Working on a improvement based on @Creater0822's and @iBelg's work. It is an electron app that uses the same logic to launch and intercept Z.js
After that giving a nice UI to enable and disable any settings. I have it working with browser (via puppeteer) and steam (via iBelg's method).
It's still a work in progress but was wondering if there is any interest to make this public, I've seen what happened to iBelg's repo so making it open source probably won't happen. Will need to find a safe place to host it, and make more settings of course. Also if anyone with coding experience wants to collaborate send me a DM.
After that giving a nice UI to enable and disable any settings. I have it working with browser (via puppeteer) and steam (via iBelg's method).
It's still a work in progress but was wondering if there is any interest to make this public, I've seen what happened to iBelg's repo so making it open source probably won't happen. Will need to find a safe place to host it, and make more settings of course. Also if anyone with coding experience wants to collaborate send me a DM.
Re: Legends of Idleon
Was going through cheats.js in an attempt to make post office orders cost 0 but still give their rewards. Thing is I dont really see where he stops them from dropping rewards in the file and was wondering if anyone has had luck with this. ("I can edit Z.js to do this, but would like to learn a bit about cheats.js)
Re: Legends of Idleon
What are you guys using and where can i find these java scripts so that i can also cheat like you guys
Re: Legends of Idleon
Thanks for letting me know. Would you have a video on how to recompile the Z.js back to its original file, the instructions left by Creator0822 were how to be able to unzip, locate, and edit the file only.