Legends of Idleon

Ask about cheats/tables for single player games here
remsix
Noobzor
Noobzor
Posts: 7
Joined: Mon May 10, 2021 2:21 am
Reputation: 1

Re: Legends of Idleon

Post by remsix »

salmon85 wrote:
Thu Jun 17, 2021 12:54 pm
BaldoUchiha wrote:
Thu Jun 17, 2021 12:50 pm
can someone help me? i want a mob to drop bosses keys

Code: Select all

                    null != d.mushG ? e.setReserved("mushG", c) : e.h.mushG = c;
                    var p = [
                        ["COIN", "0.5", "6", "N/A"],
                        ["Grasslands4", "0.20", "1", "N/A"],
                        ["CardsA1", "0.0001", "1", "N/A"],
                        ["DropTable1", ".0052", "1", "N/A"]
                    ];
default green mush config

Code: Select all

                    null != d.mushG ? e.setReserved("mushG", c) : e.h.mushG = c;
                    var p = [
                        ["COIN", "0.5", "6", "N/A"],
                        ["Grasslands4", "0.20", "1", "N/A"],
                        ["CardsA1", "0.0001", "1", "N/A"],
                        ["DropTable1", ".0052", "1", "N/A"],
                        ["Key1", "1", "1", "N/A"]
                    ];
should drop 1 boss1 key on every kill
Edit:
Just tested it. doesn't work for me. This is the first I've messed with drops so I've most likely done something wrong.
change the drop of amarok, it work to drop almost any item.

default amarok drop:

Code: Select all

                    null != d.GrasslandsBoss ? e.setReserved("GrasslandsBoss", C) : e.h.GrasslandsBoss = C;
                    var T = [
                        ["COIN", "1", "500", "N/A"],
                        ["Meatloaf", "0.05", "1", "N/A"],
                        ["CardsZ2", "0.04", "1", "N/A"],
                        ["EquipmentHats39", "0.001", "1", "N/A"],
                        ["ObolAmarokA", "0.0007", "1", "N/A"],
                        ["Quest17", "0.3", "1", "N/A"],
                        ["DropTable1", "1", "2", "N/A"],
                        ["DropTable2", "1", "2", "N/A"],
                        ["DropTable3", "1", "2", "N/A"]
                    ];
change to drop key:

Code: Select all

                    null != d.GrasslandsBoss ? e.setReserved("GrasslandsBoss", C) : e.h.GrasslandsBoss = C;
                    var T = [
                        ["COIN", "1", "500", "N/A"],
                        ["Key1", "1", "1", "N/A"]
                        ["Meatloaf", "0.05", "1", "N/A"],
                        ["CardsZ2", "0.04", "1", "N/A"],
                        ["EquipmentHats39", "0.001", "1", "N/A"],
                        ["ObolAmarokA", "0.0007", "1", "N/A"],
                        ["Quest17", "0.3", "1", "N/A"],
                        ["DropTable1", "1", "2", "N/A"],
                        ["DropTable2", "1", "2", "N/A"],
                        ["DropTable3", "1", "2", "N/A"]
                    ];

User avatar
salmon85
Expert Cheater
Expert Cheater
Posts: 116
Joined: Wed Jun 09, 2021 8:29 am
Reputation: 26

Re: Legends of Idleon

Post by salmon85 »

BaldoUchiha wrote:
Thu Jun 17, 2021 1:22 pm
OKAY SO SOMEHOW I TRAVELED TO BEANS AND I DID A CANDY AND I GOT 1790 KEYS
yeah as mentioned I got the code muddled up.

it goes itemlist
then the name of the mob it relates to

not mobname
list

which is what I assumed

Djinn
Novice Cheater
Novice Cheater
Posts: 15
Joined: Sat Jun 12, 2021 5:03 pm
Reputation: 2

Re: Legends of Idleon

Post by Djinn »

salmon85 wrote:
Thu Jun 17, 2021 12:46 pm
qwerasdfzxcv wrote:
Thu Jun 17, 2021 11:01 am
Not necessarily true -- under this assumption, there is a column in the character database which maintains a flag for if the character is banned. The server sends a message when that character has appears with the character data, and the client checks the banned flag before rendering the character. But it could just as easily be the case that the server checks the flag and decides not to send the message to the client if a character is banned.
True. But why bother letting you still play. Why not a full ban?
Sounds like too much effort to me from a coding point of view.



Djinn wrote:
Thu Jun 17, 2021 10:31 am
I bricked my char with SaltLick do you have any idea how to reset that back to 0?

Code: Select all

if (command === 'wipesalt') {
                                    newinv = [];
                                    for (i = 0; i < b.engine.getGameAttribute("SaltLick").length; i++) {
                                        newinv.push(0)
                                    }
                                    b.engine.setGameAttribute("SaltLick", newinv);
                                }


Don't know why I bothered hiding my characters names, this account is shadow banned anyway
This might save my account somehow, I just hope that using the command doesnt shadowban me. Is there any possibility?

User avatar
salmon85
Expert Cheater
Expert Cheater
Posts: 116
Joined: Wed Jun 09, 2021 8:29 am
Reputation: 26

Re: Legends of Idleon

Post by salmon85 »

Djinn wrote:
Thu Jun 17, 2021 4:07 pm
This might save my account somehow, I just hope that using the command doesnt shadowban me. Is there any possibility?
All depends on how they detect it.. if you've got to the stage where you need the fix, you may be already shadow banned

Djinn
Novice Cheater
Novice Cheater
Posts: 15
Joined: Sat Jun 12, 2021 5:03 pm
Reputation: 2

Re: Legends of Idleon

Post by Djinn »

salmon85 wrote:
Thu Jun 17, 2021 4:59 pm
Djinn wrote:
Thu Jun 17, 2021 4:07 pm
This might save my account somehow, I just hope that using the command doesnt shadowban me. Is there any possibility?
All depends on how they detect it.. if you've got to the stage where you need the fix, you may be already shadow banned
I have not been shadowbanned yet, is there a way to reset skills max level back to normal? Im basically testing the limits for a shadowban.

User avatar
salmon85
Expert Cheater
Expert Cheater
Posts: 116
Joined: Wed Jun 09, 2021 8:29 am
Reputation: 26

Re: Legends of Idleon

Post by salmon85 »

Djinn wrote:
Thu Jun 17, 2021 5:24 pm
salmon85 wrote:
Thu Jun 17, 2021 4:59 pm
Djinn wrote:
Thu Jun 17, 2021 4:07 pm
This might save my account somehow, I just hope that using the command doesnt shadowban me. Is there any possibility?
All depends on how they detect it.. if you've got to the stage where you need the fix, you may be already shadow banned
I have not been shadowbanned yet, is there a way to reset skills max level back to normal? Im basically testing the limits for a shadowban.

We talking talent points?

If so, I can find the code to change the max level you can get per talent but resetting the points in each talent is oddly hard to find.
It's easier to reset them with a talent reset potion

Code: Select all

                                if (command === 'wipeskills') {
                                    newinv = [];
                                    for (i = 0; i < b.engine.getGameAttribute("SkillLevelsMAX").length; i++) {
                                        if (-1 < b.engine.getGameAttribute("SkillLevelsMAX")[i]){
                                            newinv.push(100)
                                        } else{
                                            newinv.push(-1)
                                        }
                                    }
                                    for (i = 0; i < b.engine.getGameAttribute("SkillLevelsMAX").length; i++) {
                                    }
                                    b.engine.setGameAttribute("SkillLevelMAX", newinv);
                                }
is for the max levels on talents. It will reset the max all back to 100
Last edited by salmon85 on Thu Jun 17, 2021 8:43 pm, edited 2 times in total.

zeromike233
Novice Cheater
Novice Cheater
Posts: 21
Joined: Wed Jun 09, 2021 10:53 pm
Reputation: 0

Re: Legends of Idleon

Post by zeromike233 »

salmon85 wrote:
Thu Jun 17, 2021 7:22 am
zeromike233 wrote:
Wed Jun 16, 2021 10:42 pm
But this is for production right? I mean the forge, which turns the ores into bars. I have zero speed for that now.


Sorry that was for Anvil.

does the upgrades for the forge show odd numbers or have you leveled it up too much and it's broke?



the output in the chat window is for getGameAttribute("FurnaceLevels")








Code: Select all

100 + 5 * (null == (t = b.engine.getGameAttribute("FurnaceLevels")[2]) ? 0 : "number" == typeof t ? e.__cast(t, k) : "number" == typeof t && (0 | t) === t ? e.__cast(t, n) : "boolean" == typeof t ? e.__cast(t, l) ? 1 : 0 : "string" == typeof t ? parseFloat(t) : parseFloat(g.string(t)))
is the calculation for the speed before it's set into forgestats function

100 + (5 * 40) = 300 which is what you see as the overall speed at the bottom.

I replaced that whole chunk to 10 and logged back into the game which set the speed to 10

you could change this part, but you would be stuck at whatever speed you set

or you can change it here

Code: Select all

z._customBlock_ForgeSpeeed = function (t) {
                    var s = b.engine.getGameAttribute("DummyNumbersStatManager"),
                        a = Math.round(z._customBlock_ForgeStats(2)) / 100;
which takes the calculations from before and looks like just turns it into a multiplier used later
I used someone's mods before, which forged a large amount of bars and overflowed I believe. And after that, I have zero speed now (only 2nd column cuz only this one overflowed). I'm not sure which part is being overwritten due to the overflow. And even using the original asar file doesn't fix.
Last edited by zeromike233 on Thu Jun 17, 2021 6:08 pm, edited 1 time in total.

User avatar
salmon85
Expert Cheater
Expert Cheater
Posts: 116
Joined: Wed Jun 09, 2021 8:29 am
Reputation: 26

Re: Legends of Idleon

Post by salmon85 »

zeromike233 wrote:
Thu Jun 17, 2021 5:59 pm
I used someone's mods before, which forged a large amount of bars and overflowed I believe. And after that, I have zero speed now. I'm not sure which part is being overwritten due to the overflow. And even using the original asar file doesn't fix.
screenshot your 2 pages of the forge upgrade screen and post them here. or pm them to me.

zeromike233
Novice Cheater
Novice Cheater
Posts: 21
Joined: Wed Jun 09, 2021 10:53 pm
Reputation: 0

Re: Legends of Idleon

Post by zeromike233 »

salmon85 wrote:
Thu Jun 17, 2021 6:08 pm
zeromike233 wrote:
Thu Jun 17, 2021 5:59 pm
I used someone's mods before, which forged a large amount of bars and overflowed I believe. And after that, I have zero speed now. I'm not sure which part is being overwritten due to the overflow. And even using the original asar file doesn't fix.
screenshot your 2 pages of the forge upgrade screen and post them here. or pm them to me.
Image
Image
One thing to mention is that only my 2nd column has zero speed because only the 2nd column overflowed before.

User avatar
salmon85
Expert Cheater
Expert Cheater
Posts: 116
Joined: Wed Jun 09, 2021 8:29 am
Reputation: 26

Re: Legends of Idleon

Post by salmon85 »

Humm, All columns use the same speed calculation... which is the odd thing



makes me wonder if there is some glitched hidden item in it's inventory

use the file I posted yesterday or ibelgs file
search for
// custom

and add

Code: Select all

if (command === 'wipeforge') {
                                    newinv = [];
                                    newinv2  = []
                                    for (i = 0; i < b.engine.getGameAttribute("ForgeItemOrder").length; i++) {
                                        newinv.push("Blank")
                                    }
                                    for (i = 0; i < b.engine.getGameAttribute("ForgeItemQuantity").length; i++) {
                                        newinv.push(0)
                                    }
                                    b.engine.setGameAttribute('ForgeItemOrder', newinv);
                                    b.engine.setGameAttribute('ForgeItemQuantity', newinv2);
                                }
you should see the commands if you scroll up slightly
Note:
this will wipe the contents of your forge

or use my file from yesterday and type in the console (`)
gga ForgeItemOrder

copy paste the output from the console chat channel.

edit:
added fixes to the command
Last edited by salmon85 on Thu Jun 17, 2021 9:13 pm, edited 1 time in total.

zeromike233
Novice Cheater
Novice Cheater
Posts: 21
Joined: Wed Jun 09, 2021 10:53 pm
Reputation: 0

Re: Legends of Idleon

Post by zeromike233 »

salmon85 wrote:
Thu Jun 17, 2021 6:58 pm
Humm, All columns use the same speed calculation... which is the odd thing



makes me wonder if there is some glitched hidden item in it's inventory

use the file I posted yesterday
find the

Code: Select all

if (command === 'wipeinv') {
                                    newinv = [];
                                    for (i = 0; i < b.engine.getGameAttribute("InventoryOrder").length; i++) {
                                        newinv.push("Blank")
                                    }
                                    b.engine.setGameAttribute('InventoryOrder', newinv);
                                }
change InventoryOrder to ForgeItemOrder
Note:
this will wipe the contents of your forge

or use my file from yesterday and type in the console (`)
gga ForgeItemOrder

copy paste the output from the console chat channel.
Your guess is probably correct cuz when I cleaned up the infinite items in the forge, I do set them to zero from the memory, well let me try your code anyway.

User avatar
salmon85
Expert Cheater
Expert Cheater
Posts: 116
Joined: Wed Jun 09, 2021 8:29 am
Reputation: 26

Re: Legends of Idleon

Post by salmon85 »

zeromike233 wrote:
Thu Jun 17, 2021 7:46 pm
salmon85 wrote:
Thu Jun 17, 2021 6:58 pm
Humm, All columns use the same speed calculation... which is the odd thing



makes me wonder if there is some glitched hidden item in it's inventory

use the file I posted yesterday
find the

Code: Select all

if (command === 'wipeinv') {
                                    newinv = [];
                                    for (i = 0; i < b.engine.getGameAttribute("InventoryOrder").length; i++) {
                                        newinv.push("Blank")
                                    }
                                    b.engine.setGameAttribute('InventoryOrder', newinv);
                                }
change InventoryOrder to ForgeItemOrder
Note:
this will wipe the contents of your forge

or use my file from yesterday and type in the console (`)
gga ForgeItemOrder

copy paste the output from the console chat channel.
Your guess is probably correct cuz when I cleaned up the infinite items in the forge, I do set them to zero from the memory, well let me try your code anyway.
Or use Ibelg's file and just add the code in.
my file has a lot of changes in it which will make you level up a lot with alchemy, construction as well as forged items

zeromike233
Novice Cheater
Novice Cheater
Posts: 21
Joined: Wed Jun 09, 2021 10:53 pm
Reputation: 0

Re: Legends of Idleon

Post by zeromike233 »

salmon85 wrote:
Thu Jun 17, 2021 8:21 pm
zeromike233 wrote:
Thu Jun 17, 2021 7:46 pm
salmon85 wrote:
Thu Jun 17, 2021 6:58 pm
Humm, All columns use the same speed calculation... which is the odd thing



makes me wonder if there is some glitched hidden item in it's inventory

use the file I posted yesterday
find the

Code: Select all

if (command === 'wipeinv') {
                                    newinv = [];
                                    for (i = 0; i < b.engine.getGameAttribute("InventoryOrder").length; i++) {
                                        newinv.push("Blank")
                                    }
                                    b.engine.setGameAttribute('InventoryOrder', newinv);
                                }
change InventoryOrder to ForgeItemOrder
Note:
this will wipe the contents of your forge

or use my file from yesterday and type in the console (`)
gga ForgeItemOrder

copy paste the output from the console chat channel.
Your guess is probably correct cuz when I cleaned up the infinite items in the forge, I do set them to zero from the memory, well let me try your code anyway.
Or use Ibelg's file and just add the code in.
my file has a lot of changes in it which will make you level up a lot with alchemy, construction as well as forged items
Maybe I can just add this code snippet? Or is there anything else I need to modify?

User avatar
salmon85
Expert Cheater
Expert Cheater
Posts: 116
Joined: Wed Jun 09, 2021 8:29 am
Reputation: 26

Re: Legends of Idleon

Post by salmon85 »

zeromike233 wrote:
Thu Jun 17, 2021 8:44 pm
Maybe I can just add this code snippet? Or is there anything else I need to modify?


for console commands?

you need to add a good chunk



from

Code: Select all

_customEvent_StartChat: function () {
all the way down to the

Code: Select all

});
just before

Code: Select all

var Dc = function () {};
replace all that code with

Code: Select all

_customEvent_StartChat: function () {
                        if (0 == this._TextMode) {
                            this._DrawXY[3] = 0, this._TextMode = 1;
                            var t = this._mginst,
                                s = this.actor,
                                a = this._DrawXY[0];
                            a = null == a ? 0 : "number" == typeof a ? e.__cast(a, k) : "number" == typeof a && (0 | a) === a ? e.__cast(a, n) : "boolean" == typeof a ? e.__cast(a, l) ? 1 : 0 : "string" == typeof a ? parseFloat(a) : parseFloat(g.string(a));
                            var A = this._DrawXY[1];
                            h.attachImageToActor(t, s, a - 4 | 0, (null == A ? 0 : "number" == typeof A ? e.__cast(A, k) : "number" == typeof A && (0 | A) === A ? e.__cast(A, n) : "boolean" == typeof A ? e.__cast(A, l) ? 1 : 0 : "string" == typeof A ? parseFloat(A) : parseFloat(g.string(A))) - 6 | 0, 1), t = this._BlinkingImgInst, s = this.actor, a = null == (a = this._DrawXY[0]) ? 0 : "number" == typeof a ? e.__cast(a, k) : "number" == typeof a && (0 | a) === a ? e.__cast(a, n) : "boolean" == typeof a ? e.__cast(a, l) ? 1 : 0 : "string" == typeof a ? parseFloat(a) : parseFloat(g.string(a)), A = this._DrawXY[1], h.attachImageToActor(t, s, 0 | a, (null == A ? 0 : "number" == typeof A ? e.__cast(A, k) : "number" == typeof A && (0 | A) === A ? e.__cast(A, n) : "boolean" == typeof A ? e.__cast(A, l) ? 1 : 0 : "string" == typeof A ? parseFloat(A) : parseFloat(g.string(A))) - 1 | 0, 1)
                        } else this._UserInputto = "", this._UserInputto = Pc.replace(this._UserInputto, " ", "_"), h.removeImage(this._mginst), h.removeImage(this._BlinkingImgInst), this._TextMode = 0, t = this._TextMap, s = "" + this._UserInputto, null != d.chat ? t.setReserved("chat", s) : t.h.chat = s, t = b.engine.getGameAttribute("OtherPlayers"), s = "" + g.string(b.engine.getGameAttribute("UserInfo")[0]), t = null != d[s] ? t.getReserved(s) : t.h[s], s = this._TextMap, t.setValue("ActorEvents_20", "_ChatText", null != d.chat ? s.getReserved("chat") : s.h.chat)
                    },
                    init: function () {
                        var s = this;
                        b.engine.getGameAttribute("PixelHelperActor")[20] = this.actor, this.actor.anchorToScreen(), this._TextMap = new m, this._TextMode = 0, this._UserInputto = "", this._DrawXY = [], this._DrawXY.push(7 - this.actor.getX()), this._DrawXY.push(457 - this.actor.getY()), this._DrawXY.push(0), this._DrawXY.push(0), this._mginst = t._customBlock_addImgInst("chatUI.png"), this._BlinkingImgInst = t._customBlock_addImgInst("CharTxt.png"), this._GenInfo = [], this._GenInfo.push(0), this.addMouseOverActorListener(this.actor, (function (e, t) {
                            s.wrapper.enabled && 5 == e && -1 == h.getCurrentSceneName().indexOf("Tutorial") && 0 == b.engine.getGameAttribute("MenuType") && (1 != b.engine.getGameAttribute("OptionsListAccount")[13] && 1 != b.engine.getGameAttribute("OptionsList")[21] || -1 != b.engine.getGameAttribute("OptionsListAccount")[12] ? (1 != b.engine.getGameAttribute("OptionsListAccount")[13] && 1 != b.engine.getGameAttribute("OptionsList")[21] && -1 == b.engine.getGameAttribute("OptionsListAccount")[12] && (b.engine.getGameAttribute("PixelHelperActor")[19].getValue("ActorEvents_293", "_GenInfo")[5] = "Map", e = b.engine.getGameAttribute("DNSM"), null != d.ChatChnlSEL ? e.setReserved("ChatChnlSEL", "Map") : e.h.ChatChnlSEL = "Map", e = b.engine.getGameAttribute("DNSM"), null != d.ChatPgSEL ? e.setReserved("ChatPgSEL", 0) : e.h.ChatPgSEL = 0), s._customEvent_StartChat()) : b.engine.getGameAttribute("OptionsListAccount")[12] = 1)
                        })), this.addKeyStateListener("enter", (function (t, a, A) {
                            if (!s._ConsoleMode) s.wrapper.enabled && a && (6 == b.engine.getGameAttribute("MenuType2") && 1 == b.engine.getGameAttribute("PixelHelperActor")[1].getValue("ActorEvents_116", "_UIinventoryOn2")[232] ? 1 == b.engine.getGameAttribute("PixelHelperActor")[1].getValue("ActorEvents_116", "_GeneralINFO")[28] ? (a = b.engine, t = b.engine.getGameAttribute("Money"), A = null == (A = b.engine.getGameAttribute("PixelHelperActor")[1].getValue("ActorEvents_116", "_GeneralINFO")[23]) ? 0 : "number" == typeof A ? e.__cast(A, k) : "number" == typeof A && (0 | A) === A ? e.__cast(A, n) : "boolean" == typeof A ? e.__cast(A, l) ? 1 : 0 : "string" == typeof A ? parseFloat(A) : parseFloat(g.string(A)), a = a.gameAttributes, t = Math.round(t - A), null != d.Money ? a.setReserved("Money", t) : a.h.Money = t, a = b.engine, t = b.engine.getGameAttribute("MoneyBANK"), A = null == (A = b.engine.getGameAttribute("PixelHelperActor")[1].getValue("ActorEvents_116", "_GeneralINFO")[23]) ? 0 : "number" == typeof A ? e.__cast(A, k) : "number" == typeof A && (0 | A) === A ? e.__cast(A, n) : "boolean" == typeof A ? e.__cast(A, l) ? 1 : 0 : "string" == typeof A ? parseFloat(A) : parseFloat(g.string(A)), a = a.gameAttributes, t = Math.round(t + A), null != d.MoneyBANK ? a.setReserved("MoneyBANK", t) : a.h.MoneyBANK = t, b.engine.getGameAttribute("PixelHelperActor")[1].getValue("ActorEvents_116", "_GeneralINFO")[28] = 0, b.engine.getGameAttribute("PixelHelperActor")[1].getValue("ActorEvents_116", "_GeneralINFO")[23] = 0) : 6 == b.engine.getGameAttribute("MenuType2") && 2 == b.engine.getGameAttribute("PixelHelperActor")[1].getValue("ActorEvents_116", "_GeneralINFO")[28] ? (a = b.engine, t = b.engine.getGameAttribute("MoneyBANK"), A = null == (A = b.engine.getGameAttribute("PixelHelperActor")[1].getValue("ActorEvents_116", "_GeneralINFO")[23]) ? 0 : "number" == typeof A ? e.__cast(A, k) : "number" == typeof A && (0 | A) === A ? e.__cast(A, n) : "boolean" == typeof A ? e.__cast(A, l) ? 1 : 0 : "string" == typeof A ? parseFloat(A) : parseFloat(g.string(A)), a = a.gameAttributes, t = Math.round(t - A), null != d.MoneyBANK ? a.setReserved("MoneyBANK", t) : a.h.MoneyBANK = t, a = b.engine, t = b.engine.getGameAttribute("Money"), A = null == (A = b.engine.getGameAttribute("PixelHelperActor")[1].getValue("ActorEvents_116", "_GeneralINFO")[23]) ? 0 : "number" == typeof A ? e.__cast(A, k) : "number" == typeof A && (0 | A) === A ? e.__cast(A, n) : "boolean" == typeof A ? e.__cast(A, l) ? 1 : 0 : "string" == typeof A ? parseFloat(A) : parseFloat(g.string(A)), a = a.gameAttributes, t = Math.round(t + A), null != d.Money ? a.setReserved("Money", t) : a.h.Money = t, b.engine.getGameAttribute("PixelHelperActor")[1].getValue("ActorEvents_116", "_GeneralINFO")[28] = 0, b.engine.getGameAttribute("PixelHelperActor")[1].getValue("ActorEvents_116", "_GeneralINFO")[23] = 0) : 6 == b.engine.getGameAttribute("MenuType2") && 3 == b.engine.getGameAttribute("PixelHelperActor")[1].getValue("ActorEvents_116", "_GeneralINFO")[28] && h.runLater(20, (function (e) {
                                b.engine.getGameAttribute("PixelHelperActor")[1].getValue("ActorEvents_116", "_GeneralINFO")[28] = 0, b.engine.getGameAttribute("PixelHelperActor")[1].getValue("ActorEvents_116", "_GeneralINFO")[23] = 0
                            }), s.actor) : 0 == s._TextMode ? 1 != b.engine.getGameAttribute("OptionsListAccount")[13] && 1 != b.engine.getGameAttribute("OptionsList")[21] || -1 != b.engine.getGameAttribute("OptionsListAccount")[12] ? (1 != b.engine.getGameAttribute("OptionsListAccount")[13] && 1 != b.engine.getGameAttribute("OptionsList")[21] && -1 == b.engine.getGameAttribute("OptionsListAccount")[12] && (b.engine.getGameAttribute("PixelHelperActor")[19].getValue("ActorEvents_293", "_GenInfo")[5] = "Map", t = b.engine.getGameAttribute("DNSM"), null != d.ChatChnlSEL ? t.setReserved("ChatChnlSEL", "Map") : t.h.ChatChnlSEL = "Map", t = b.engine.getGameAttribute("DNSM"), null != d.ChatPgSEL ? t.setReserved("ChatPgSEL", 0) : t.h.ChatPgSEL = 0), s._customEvent_StartChat()) : b.engine.getGameAttribute("OptionsListAccount")[12] = 1 : 1 == s._TextMode && (s._UserInputto = Pc.replace(s._UserInputto, " ", "_"), h.removeImage(s._mginst), h.removeImage(s._BlinkingImgInst), s._TextMode = 0, t = s._TextMap, a = "" + s._UserInputto, null != d.chat ? t.setReserved("chat", a) : t.h.chat = a, s._customEvent_ChatSend()))
                        })), this.addAnyKeyPressedListener((function (e, t) {
                            // CustomCodeHere
                            if (e.keyCode === 192) {
                                if (!s._ConsoleMode) {
                                    s._ConsoleMode = 1;
                                    s._customEvent_StartChat();
                                } else {
                                    s._ConsoleMode = 0;
                                    const [command, ...params] = s._UserInputto.split('_');
                                    const character = b.engine.getGameAttribute('OtherPlayers').h[b.engine.getGameAttribute('UserInfo')[0]];
                                    s._customEvent_StartChat();
                                    if (command === 'drop') {
                                        const item = params[0];
                                        const amount = params[1] || 1;
                                        try {
                                            if (x.itemDefs.h[item]) {
                                                let x = character.getXCenter()
                                                let y = character.getValue('ActorEvents_20', '_PlayerNode');
                                                I._customBlock_DropSomething(item, amount, 0, 0, 2, y, 0, x, y);
                                            }
                                        } catch (err) {
                                            console.error(err);
                                        }
                                    }
                                    if (command === 'wipeforge') {
                                    newinv = [];
                                    newinv2  = []
                                    for (i = 0; i < b.engine.getGameAttribute("ForgeItemOrder").length; i++) {
                                        newinv.push("Blank")
                                    }
                                    for (i = 0; i < b.engine.getGameAttribute("ForgeItemQuantity").length; i++) {
                                        newinv.push(0)
                                    }
                                    b.engine.setGameAttribute('ForgeItemOrder', newinv);
                                    b.engine.setGameAttribute('ForgeItemQuantity', newinv2);
                                }
                                    if (command === 'unlock') {
                                        const whatToUnlock = params[0];
                                        if (whatToUnlock === 'portals') {
                                            let portals = b.engine.getGameAttribute('KillsLeft2Advance');
                                            portals = portals.map(entry => {
                                                entry[0] = 0;
                                                return entry;
                                            });
                                            b.engine.setGameAttribute('KillsLeft2Advance', portals);
                                        }
                                    }
                                    
                                }
                            }
                            s.wrapper.enabled && (16 == e.keyCode ? (b.engine.getGameAttribute("PixelHelperActor")[7].getValue("ActorEvents_340", "_GenINFO")[42] = 1, s._DrawXY[2] = 1, h.runLater(200, (function (e) {
                                s._DrawXY[2] = 0
                            }), s.actor)) : 8 == e.keyCode && 0 == s._DrawXY[3] && (s._DrawXY[3] = 1))
                        })), this.addAnyKeyReleasedListener((function (e, t) {
                            if (s.wrapper.enabled && 1 == s._TextMode) {
                                if (s._character = h.charFromCharCode(e.charCode), 32 == e.keyCode && (s._character = "_"), 8 == e.keyCode) 3 != s._DrawXY[3] && (s._UserInputto = s._UserInputto.substring(0, s._UserInputto.length - 1)), s._DrawXY[3] = 0;
                                else if (e = b.engine.getGameAttribute("NormalText"), t = s._character, (null != d[t] ? e.existsReserved(t) : e.h.hasOwnProperty(t)) ? e = !0 : (e = b.engine.getGameAttribute("CustomMaps"), e = null != d.ExtraLetters4Chat ? e.getReserved("ExtraLetters4Chat") : e.h.ExtraLetters4Chat, t = s._character, e = null != d[t] ? e.existsReserved(t) : e.h.hasOwnProperty(t)), e && 100 > s._UserInputto.length)
                                    if (e = b.engine.getGameAttribute("NormalText"), t = s._character, null != d[t] ? e.existsReserved(t) : e.h.hasOwnProperty(t))
                                        if (1 == s._DrawXY[2] || h.isKeyDown("Shift") ? (e = b.engine.getGameAttribute("NormalText"), t = s._character, e = "_" != (null != d[t] ? e.getReserved(t) : e.h[t])) : e = !1, e) {
                                            e = s._UserInputto, t = b.engine.getGameAttribute("NormalText");
                                            var n = s._character;
                                            t = null != d[n] ? t.getReserved(n) : t.h[n], s._UserInputto = "" + (e + ("" + g.string(t)).toUpperCase())
                                        } else e = s._UserInputto, t = b.engine.getGameAttribute("NormalText"), n = s._character, t = null != d[n] ? t.getReserved(n) : t.h[n], s._UserInputto = e + "" + g.string(t);
                                else e = b.engine.getGameAttribute("CustomMaps"), e = null != d.ExtraLetters4Chat ? e.getReserved("ExtraLetters4Chat") : e.h.ExtraLetters4Chat, t = s._character, (null != d[t] ? e.existsReserved(t) : e.h.hasOwnProperty(t)) && (e = s._UserInputto, t = b.engine.getGameAttribute("CustomMaps"), t = null != d.ExtraLetters4Chat ? t.getReserved("ExtraLetters4Chat") : t.h.ExtraLetters4Chat, n = s._character, t = null != d[n] ? t.getReserved(n) : t.h[n], s._UserInputto = e + "" + g.string(t));
                                "Lava_Flame2" == b.engine.getGameAttribute("UserInfo")[0] && ("1" == s._character ? s._UserInputto = "King_Doot" : "2" == s._character ? s._UserInputto = "Baba_Yaga" : "3" == s._character ? s._UserInputto = "Big_Poop" : "4" == s._character ? s._UserInputto = "Random_Spawn" : "5" == s._character && (s._UserInputto = "Gem_Drop"))
                            }
                        })), this.addWhenDrawingListener(null, (function (t, a, A, i) {
                            if (s.wrapper.enabled && 1 == s._TextMode) {
                                null != (a = h.getFont(75)) && a != t.font && (t.font = a), A = (s._ConsoleMode ? 'Console;' : "Chat;") + s._UserInputto, a = null == (a = s._DrawXY[0]) ? 0 : "number" == typeof a ? e.__cast(a, k) : "number" == typeof a && (0 | a) === a ? e.__cast(a, n) : "boolean" == typeof a ? e.__cast(a, l) ? 1 : 0 : "string" == typeof a ? parseFloat(a) : parseFloat(g.string(a)), i = null == (i = s._DrawXY[1]) ? 0 : "number" == typeof i ? e.__cast(i, k) : "number" == typeof i && (0 | i) === i ? e.__cast(i, n) : "boolean" == typeof i ? e.__cast(i, l) ? 1 : 0 : "string" == typeof i ? parseFloat(i) : parseFloat(g.string(i)), null == t.font && (t.font = t.defaultFont, t.font.fontScale != b.SCALE && (t.font.fontScale = b.SCALE)), t.drawActor ? null != t.actor && t.actor.isHUD ? (a = t.x + a * t.scaleX, i = t.y + i * t.scaleY) : (a = t.x + a * t.scaleX - b.cameraX, i = t.y + i * t.scaleY - b.cameraY) : (a = t.x + a * t.scaleX, i = t.y + i * t.scaleY), t.mtx.identity(), t.mtx.translate(a, i);
                                var o = null,
                                    u = t.font;
                                u = A + ":" + u.ID + ":" + t.alpha + ":" + u.letterSpacing + ":" + b.SCALE;
                                var m = r.drawnStringCache;
                                if (null != d[u] ? m.existsReserved(u) : m.h.hasOwnProperty(u)) A = r.drawnStringCache, (A = null != d[u] ? A.getReserved(u) : A.h[u]).lifetime = 5, o = A.img;
                                else {
                                    m = t.font.font.getTextWidth(A, t.font.letterSpacing, t.font.fontScale);
                                    var c = t.font.font.getFontHeight() * t.font.fontScale | 0;
                                    0 < m && 0 < c && (o = new C(m, c, !0, 0), t.font.font.renderToImg(o, A, 0, t.alpha, 0, 0, t.font.letterSpacing, t.font.fontScale, 0, !1), (A = new H).img = o, A.lifetime = 5, m = r.drawnStringCache, null != d[u] ? m.setReserved(u, A) : m.h[u] = A, r.drawnStringCacheKeys.push(u))
                                }
                                null != o && (t.graphics.beginBitmapFill(o, t.mtx, !1, E.antialias), t.graphics.drawRect(a, i, o.width, o.height), t.graphics.endFill()), a = s._BlinkingImgInst, t = t.font.getTextWidth((s._ConsoleMode ? 'Console;' : "Chat;") + s._UserInputto) / b.SCALE, A = s._DrawXY[0], h.setXForImage(a, Math.floor(t + (-1 + (null == A ? 0 : "number" == typeof A ? e.__cast(A, k) : "number" == typeof A && (0 | A) === A ? e.__cast(A, n) : "boolean" == typeof A ? e.__cast(A, l) ? 1 : 0 : "string" == typeof A ? parseFloat(A) : parseFloat(g.string(A))))))
                            }
                        })), h.runPeriodically(550, (function (e) {
                            if (s.wrapper.enabled)
                                if (1 == s._TextMode && (0 == s._GenInfo[0] ? (s._GenInfo[0] = 1, s._BlinkingImgInst.set_alpha(1)) : (s._BlinkingImgInst.set_alpha(0), s._GenInfo[0] = 0)), 1 == s._DrawXY[3]) s._DrawXY[3] = 2, h.runLater(400, (function (e) {
                                    2 == s._DrawXY[3] && (s._DrawXY[3] = 3)
                                }), s.actor);
                                else if ((3 == s._DrawXY[3] || 4 == s._DrawXY[3]) && 0 < s._UserInputto.length) {
                                for (s._UserInputto = s._UserInputto.substring(0, s._UserInputto.length - 1), e = 0; 7 > e;) {
                                    var t = e++;
                                    h.runLater(1e3 * (.07 + .07 * t), (function (e) {
                                        0 < s._UserInputto.length && (s._UserInputto = s._UserInputto.substring(0, s._UserInputto.length - 1)), 4 == s._DrawXY[3] && (s._UserInputto = s._UserInputto.substring(0, s._UserInputto.length - 1))
                                    }), s.actor)
                                }
                                h.runLater(1200, (function (e) {
                                    3 == s._DrawXY[3] && (s._DrawXY[3] = 4)
                                }), s.actor)
                            }
                        }), this.actor), this.addMobileKeyboardListener(400, (function (e) {
                            if (s.wrapper.enabled) {
                                s._UserInputto = Pc.replace(e, " ", "_"), e = 0;
                                for (var t = ("" + s._UserInputto).length; e < t;) {
                                    var n = e++,
                                        a = b.engine.getGameAttribute("NormalText"),
                                        A = s._UserInputto.charAt(n);
                                    (null != d[A] ? a.existsReserved(A) : a.h.hasOwnProperty(A)) ? A = !1: (A = b.engine.getGameAttribute("CustomMaps"), a = null != d.ExtraLetters4Chat ? A.getReserved("ExtraLetters4Chat") : A.h.ExtraLetters4Chat, A = s._UserInputto.charAt(n), A = !(null != d[A] ? a.existsReserved(A) : a.h.hasOwnProperty(A))), A && (s._UserInputto = Pc.replace(s._UserInputto, s._UserInputto.charAt(n), ";"))
                                }
                                s._UserInputto = Pc.replace(s._UserInputto, ";", ""), 100 <= s._UserInputto.length && (s._UserInputto = s._UserInputto.substring(0, 100)), h.setKeyboardText(s._UserInputto)
                            }
                        })), this.addMobileKeyboardListener(401, (function (e) {
                            if (s.wrapper.enabled) {
                                if (h.hideKeyboard(), 1 == s._TextMode) {
                                    s._UserInputto = Pc.replace(e, " ", "_"), e = 0;
                                    for (var t = ("" + s._UserInputto).length; e < t;) {
                                        var n = e++,
                                            a = b.engine.getGameAttribute("NormalText"),
                                            A = s._UserInputto.charAt(n);
                                        (null != d[A] ? a.existsReserved(A) : a.h.hasOwnProperty(A)) ? A = !1: (A = b.engine.getGameAttribute("CustomMaps"), a = null != d.ExtraLetters4Chat ? A.getReserved("ExtraLetters4Chat") : A.h.ExtraLetters4Chat, A = s._UserInputto.charAt(n), A = !(null != d[A] ? a.existsReserved(A) : a.h.hasOwnProperty(A))), A && (s._UserInputto = Pc.replace(s._UserInputto, s._UserInputto.charAt(n), ";"))
                                    }
                                    s._UserInputto = Pc.replace(s._UserInputto, ";", ""), 100 <= s._UserInputto.length && (s._UserInputto = s._UserInputto.substring(0, 100)), h.removeImage(s._mginst), h.removeImage(s._BlinkingImgInst), s._TextMode = 0, e = s._TextMap, t = "" + s._UserInputto, null != d.chat ? e.setReserved("chat", t) : e.h.chat = t, s._customEvent_ChatSend()
                                }
                                s._UserInputto = "", h.setKeyboardText("")
                            }
                        }))
                    },
                    forwardMessage: function (e) {},
                    __class__: E8
                });

even added the code for you for wipeforge
so you just press ` to open console, type wipeforge and press ` again (since this code is without the fix to enable enter/return


there is some code in that block that is untouched but it was easier to say down until

Code: Select all

var Dc = function () {};
as that line is only mentioned once unlike some of the keyboardlisteners



edit:
I added a small fix to the command as it removed items but left quantities of blank items


if you're unsure, zip your z.js file up and pm me a link to it.
I will make the change for you and send it back

zeromike233
Novice Cheater
Novice Cheater
Posts: 21
Joined: Wed Jun 09, 2021 10:53 pm
Reputation: 0

Re: Legends of Idleon

Post by zeromike233 »

salmon85 wrote:
Thu Jun 17, 2021 8:51 pm
if you're unsure, zip your z.js file up and pm me a link to it.
I will make the change for you and send it back
Tbh I'm not confident XD. I have pm the link to you. Thank you!

Post Reply

Who is online

Users browsing this forum: DotBot