Laspil wrote: ↑Tue Jun 07, 2022 1:31 pm
I accidentaly got something in my inventory that i guess is not supposed to be there, now the game crashes everytime i open anything that shows my inventory what should i do? im thinking of using the ability that puts all your items in your inventory to your storage chest but i think that may break my chest and i really dont wanna make a new account ive spent a lot of time on this so if i cant fix my inventory thatll be fine but i cant play without opening my chest, so could anyone help me?
edit: just remembered i cant open the storage chest either
If its still in your inventory:
try to find out what inventory slot its in if you want to not wipe the entire inventory.
You can use idleonefficiency for this (in the players tab theres an inventory section)
once you know the inventory slot # it is in, you want to do the following:
assuming its in slot 9, lower the number by 1 and run:
b.engine.getGameAttribute("InventoryOrder")[8] = "Blank";
If you use the inject cheat you can run it with that (idk how since I don't use it).
If you just edit the Z.js file, you want to find a section of code that is simply to activate to add it to.
personally I added it to the part of the code that runs when you click to change presets (Not really a good place but it works)
search for GenINFO[119] , last result (should be 4) is in a line that checks if you are allowed to change presets (in town etc.)
add the b.engine.getGameAttribute("InventoryOrder")[8] = "Blank"; line above it.
go in game and try to change preset, hopefully that deletes your item successfully.
If you got it into your chest, you can probably do something similar, I believe b.engine.getGameAttribute("ChestOrder")
refers to chest items but I'm not 100% on that