Legends of Idleon

Ask about cheats/tables for single player games here
iBelg
Cheater
Cheater
Posts: 36
Joined: Tue Jul 28, 2020 6:42 pm
Reputation: 47

Re: Legends of Idleon

Post by iBelg »

Code: Select all

registerCheat('teleports', function () {
	const bEngine = this['com.stencyl.Engine'].engine;
	const currencies = bEngine.getGameAttribute("CurrenciesOwned").h;
	const handler = {
		get: function(obj, prop) {
			if (prop === 'WorldTeleports') {
				return obj.WorldTeleports || 1;
			}
			return Reflect.get(...arguments);
		},
		set: function(obj, prop) {
			if (prop === 'WorldTeleports') {
				// Do nothing
				return true;
			}
			return Reflect.set(...arguments);
		}
	};
	const proxy = new Proxy(currencies, handler);
	bEngine.getGameAttribute('CurrenciesOwned').h = proxy;
});
Infinite teleports. Again, this should be improved in the future to allow cheating the other properties in the 'CurrenciesOwned' list.

Basically, pretty much everything can be forced to be a certain value without having to rewrite the source code everywhere.

Also this one becomes useful after a little while of adding commands:

Code: Select all

registerCheat('cheats', function () {
	return Object.keys(cheats).join('\n');
});

User avatar
Creater0822
Expert Cheater
Expert Cheater
Posts: 229
Joined: Sat Nov 18, 2017 12:02 am
Reputation: 123

Re: Legends of Idleon

Post by Creater0822 »

iBelg wrote:
Fri Jul 02, 2021 10:03 pm

Code: Select all

registerCheat('quickref', function () {
	const bEngine = this['com.stencyl.Engine'].engine;
	
	const optionsListAccount = bEngine.getGameAttribute('OptionsListAccount');
	const handler = {
		get: function(obj, prop) {
			if (Number(prop) === 34) {
				return 0;
			}
			return Reflect.get(...arguments);
		}
	};
	const proxy = new Proxy(optionsListAccount, handler);
	bEngine.setGameAttribute('OptionsListAccount', proxy);
});
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!!

tomato
Cheater
Cheater
Posts: 36
Joined: Sun Jun 27, 2021 5:13 pm
Reputation: 1

Re: Legends of Idleon

Post by tomato »

"Error: ReferenceError: atkMoveMap is not defined"
Is there something wrong???

User avatar
epismema
Noobzor
Noobzor
Posts: 5
Joined: Wed Jun 09, 2021 6:10 am
Reputation: 0

Re: Legends of Idleon

Post by epismema »

tomato wrote:
Sat Jul 03, 2021 12:22 am
"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

Code: Select all

// 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!`;
});

the line

Code: Select all

const atkMoveMap = this["scripts.CustomMaps"].atkMoveMap.h;
just wasn't added.

tomato
Cheater
Cheater
Posts: 36
Joined: Sun Jun 27, 2021 5:13 pm
Reputation: 1

Re: Legends of Idleon

Post by tomato »

Wydra wrote:
Mon Jun 14, 2021 3:31 pm
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.

User avatar
Creater0822
Expert Cheater
Expert Cheater
Posts: 229
Joined: Sat Nov 18, 2017 12:02 am
Reputation: 123

Re: Legends of Idleon

Post by Creater0822 »

Changelog 03/07/21 3am:
Original post: viewtopic.php?p=198916#p198916

Oh man talk about a late night struggle :shock:
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)

User avatar
Creater0822
Expert Cheater
Expert Cheater
Posts: 229
Joined: Sat Nov 18, 2017 12:02 am
Reputation: 123

Re: Legends of Idleon

Post by Creater0822 »

tomato wrote:
Sat Jul 03, 2021 1:47 am
Wydra wrote:
Mon Jun 14, 2021 3:31 pm
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 ;)

tomato
Cheater
Cheater
Posts: 36
Joined: Sun Jun 27, 2021 5:13 pm
Reputation: 1

Re: Legends of Idleon

Post by tomato »

tomato wrote:
Fri Jul 02, 2021 3:38 pm
Image
Image
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.
Image
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.

Chupingole
What is cheating?
What is cheating?
Posts: 2
Joined: Sat Jul 03, 2021 1:30 am
Reputation: 0

Re: Legends of Idleon

Post by Chupingole »

warhuntsius wrote:
Sat Jun 19, 2021 10:26 am
One thing I've not been able to figure out is the minigames. Can remove any need for them, but can't find the actual gamemode code.
I'm curious about this too. Spent a fair bit of time searching but found nothing. Anyone had any luck?

iBelg
Cheater
Cheater
Posts: 36
Joined: Tue Jul 28, 2020 6:42 pm
Reputation: 47

Re: Legends of Idleon

Post by iBelg »

Small update to the tool to enable more cheats (v1.1.1)

[Link]

cheats.js has also been updated to include some examples of using proxies to overwrite values.

[Link]

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 »

iBelg wrote:
Sat Jul 03, 2021 9:55 am
Small update to the tool to enable more cheats (v1.1.1)

[Link]

cheats.js has also been updated to include some examples of using proxies to overwrite values.

[Link]
might be of some use

[Link]

tomato
Cheater
Cheater
Posts: 36
Joined: Sun Jun 27, 2021 5:13 pm
Reputation: 1

Re: Legends of Idleon

Post by tomato »

Lucifer M wrote:
Wed Jun 09, 2021 6:25 pm
Image

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.
Image
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.

Thanks so much to Creater0822 for showing me how
viewtopic.php?p=198741#p198741

User avatar
Creater0822
Expert Cheater
Expert Cheater
Posts: 229
Joined: Sat Nov 18, 2017 12:02 am
Reputation: 123

Re: Legends of Idleon

Post by Creater0822 »

Has anyone discovered which code prevents equipment swapping during combat?

User avatar
Creater0822
Expert Cheater
Expert Cheater
Posts: 229
Joined: Sat Nov 18, 2017 12:02 am
Reputation: 123

Re: Legends of Idleon

Post by Creater0822 »

tomato wrote:
Sat Jul 03, 2021 1:41 pm
Image
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.

Thanks so much to Creater0822 for showing me how
viewtopic.php?p=198741#p198741
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 :D (Ohh the power creep xD)

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 »

Creater0822 wrote:
Sat Jul 03, 2021 6:41 pm
Has anyone discovered which code prevents equipment swapping during combat?
Having a scan through the code now,

on another note.

here is an extracted list of getgameattributes

Code: Select all

AFKtarget
ActionTimer
AnvilCraftStatus
AnvilPA
AnvilPAselect
AnvilPAstats
AttackCooldowns
AttackLoadout
AttackMoveGET
AttackQueue
AttackSelected
BGselected
BGunlocked
BlockMovement
BossHP
BossInfo
BribeStatus
BuffsActive
BugInfo
BundlesReceived
Cards
CauldronBubbles
CauldronInfo
CauldronJobs
CauldronP2W
CharacterClass
Chat
ChatBubbleActors
ChestMap
ChestOrder
ChestQuantity
ChestSlotsOwned
CloudSaveCD
CloudsaveTimer
CogMap
CogOrder
CurrenciesOwned
CurrentMap
CustomLists
CustomMaps
DNSM
DamagePixels
DialogueDefGET
DoOnce
DoOnceREAL
DummyList
DummyList2
DummyList3
DummyListDMGpixel
DummyMap
DummyNumber
DummyNumber2
DummyNumber3
DummyNumber4
DummyNumber5
DummyNumberSafe
DummyNumbersStatManager
DummyPixelType
DummyText
DummyText2
DummyText3
EquipmentMap
EquipmentOrder
EquipmentQuantity
Exp0
ExpReq0
ExpType
FamilyValuesMap
FlagUnlock
FlagsPlaced
FoodCooldowns
FoodSlotsOwned
ForgeIntervalProgress
ForgeItemOrder
ForgeItemQuantity
FurnaceLevels
GemItemsPurchased
GemsOwned
GemsPacksPurchased
GetPlayersUsernames
GuildTasks
HintStatus
InvBagsUsed
InvStorageUsed
InventoryOrder
InventorySelected
InventorySlotsOwned
ItemDefinitionsGET
ItemGetPixelQueue
ItemMap
ItemMapToDisplayStats
ItemQuantity
ItemToDisplayStats
KillsLeft2Advance
LockedSlots
Lv0
LvTotal0
MTXpreSelect
MapMonstersList
MaxCarryCap
MenuType
MenuType2
MenuType2TabSelected
MinimizeTime
MiscText
Money
MoneyBANK
MonsterAlive
MonsterDefinitionsGET
MonsterHP
MonsterRespawnTime
MonsterWillDie
MonstersOnScreen
NONdummies
NPCdialogue
NodeLength
NodeNeighborConnectorX
NodeNeighborType
NodeNeighbors
NodeX
NodeY
NonCloudsave
NormalText
Number2Letter
ObolEquippedMap
ObolEquippedOrder
ObolInventoryMap
ObolInventoryOrder
ObolInventorySlotsOwned
OptionsList
OptionsListAccount
OriginPixelActor
OtherPlayers
PersonalValuesMap
PixelHelperActor
PlacedTraps
Platforms
Player
PlayerAutoMoveTOGGLE
PlayerDATABASE
PlayerDestination
PlayerHP
PlayerImgInst
PlayerMP
PlayerMoveMaps
PlayerStuff
PopupType
PortalSelectedArrow
PostOfficeInfo
PrayersActive
PrayersUnlocked
PreviousMap
Printer
QuestComplete
QuestHelperMenu
QuestStatus
Refinery
RespawnTime
SaltLick
SceneEvents_n
ServerGemsReceived
ShopStock
ShowItemDescriptionBox
ShrineInfo
SkillLevels
SkillLevelsMAX
SkillTabSelected
StampLevel
StampLevelMAX
StarSignProg
StarSignsUnlocked
StatueLevels
SteamAchieve
SuperDL
TakeDmgTimer
Tasks
TestList
TimeAway
TotemInfo
TowerInfo
UserInfo
WeaponID
WeaponType
_Current
_Parent
_Path
_Queue
_Visited
aa
displayData
dummyActor
dummyCritDmgMulti
dummyDamageDealt
dummyDisplayEXPTYPE
dummyDisplayPopup
dummyMonsterID
dummyMonsterNODE
dummyMonsterTYPE
gemshopCloudsave
edit.


Maybe tied into ActionTimer

edit 2.
nope

Post Reply

Who is online

Users browsing this forum: eahernantst83, Google Adsense [Bot], Hawk132, shana, YandexBot