{"id":24864256,"url":"https://github.com/astraadev/mergestkingdom-injector","last_synced_at":"2026-01-07T00:16:45.152Z","repository":{"id":272908291,"uuid":"917716190","full_name":"AstraaDev/MergestKingdom-Injector","owner":"AstraaDev","description":"Mergest Kingdom Injector lets you set up various methods for modifying content in the Mergest Kingdom discord game.","archived":false,"fork":false,"pushed_at":"2025-03-20T14:56:06.000Z","size":1915,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T15:42:54.983Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://astraadev.github.io/discord","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AstraaDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-16T14:14:52.000Z","updated_at":"2025-03-20T14:56:10.000Z","dependencies_parsed_at":"2025-03-21T15:05:59.714Z","dependency_job_id":null,"html_url":"https://github.com/AstraaDev/MergestKingdom-Injector","commit_stats":null,"previous_names":["astraadev/mergestkingdom-injector"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstraaDev%2FMergestKingdom-Injector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstraaDev%2FMergestKingdom-Injector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstraaDev%2FMergestKingdom-Injector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstraaDev%2FMergestKingdom-Injector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AstraaDev","download_url":"https://codeload.github.com/AstraaDev/MergestKingdom-Injector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245711165,"owners_count":20660030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-31T23:50:36.116Z","updated_at":"2026-01-07T00:16:45.125Z","avatar_url":"https://github.com/AstraaDev.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://imgs.crazygames.com/mergest-kingdom_16x9/20241211151323/mergest-kingdom_16x9-cover?auto=format%2Ccompress\" width=\"600\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e[Discord] - Mergest Kingdom Injector\u003c/h1\u003e\n\n\u003cp align=\"left\"\u003e\n  Mergest Kingdom Injector lets you set up various methods for modifying content in the Mergest Kingdom discord game. Perform these steps preferably from a Google Chrome browser. There is currently no guarantee that these methods will work on other browsers.\n  These methods go against the rules of the game's developers, and waves of bans have already occurred. I am in no way responsible for your actions. Please use this tool with full knowledge of the risks involved.\n\u003c/p\u003e\n\n\n## Disclaimer\n\n|Mergest Kingdom Injector was made for Educational purposes   |\n|-------------------------------------------------|\nThis project was created only for good purposes and personal use.\nBy using this Tool, you agree that you hold responsibility and accountability of any consequences caused by your actions.\n\n## Features\n\n- [x] - [giveInventoryItem](https://github.com/AstraaDev/MergestKingdom-Injector) - Obtain any object in unlimited quantities.\n- [x] - [byPassGamePurchases](https://github.com/AstraaDev/MergestKingdom-Injector) - Get paid packs for free. *(by [@mgiannopoulos24](https://github.com/mgiannopoulos24))*\n\n## Common part of each method\nEach of the methods described here works in the same way. The game needs to be “paused” at the right moment to access certain elements that are normally blocked. The differences between these methods are the information to be retrieved, the precise moment to break the script, the action to be taken to break the script, etc...\nEven if these parts change depending on the method, the beginning remains the same.\n\n#### Setup\n- Launch of Mergest Kingdom on discord *(and never close it again until the end)*\n- Open the browser console (by pressing `CTRL`+`SHIFT`+`I` on Windows/Linux or `Cmd`+`Opt`+`I` on MacOS)\n- In the **SOURCE** tab, find the file named main.js located at `top/12766.discordsays.com/12766.discordsays.com/.proxy/static/game.js` *(see image below)*\n\u003cimg src=\"img/readme_screenshot/MK_1.png\" width=\"400\"\u003e\n\nFrom now on, the next steps will depend on each method. Make sure you've followed exactly the steps described in this section before moving on.\n\n## [METHOD 1] : giveInventoryItem\n\u003cdetails\u003e\n\u003csummary\u003eWhat you can get with this method ?\u003c/summary\u003e\n\n### Consumable\n\n| Parameter                         | Description                      |\n| :-------------------------------- | :------------------------------- |\n| `exp`                             | Experience                       |\n| `energy`                          | Energy for activities            |\n| `rubies`                          | Purple rubies                    |\n| `soft`                            | Golds                            |\n| `wands `                          | Keys                             |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to expand the information\u003c/summary\u003e\n\nMake sure you've followed exactly the steps described in the “Common part of each method” section before moving on to this one.\n\n#### Injection\n- In `game.js` file,\n- Search the file (by pressing `CTRL`+`F`)\n- Write the following command and press `ENTER` :\n```js\nRewardTypes[this.type].handler.call(this, this.value, this.options)\n```\n- There will normally be `1` results. Navigate to this one and set a breakpoint by clicking on the left of the line in the grey area *(see image below)*\n\u003cimg src=\"img/readme_screenshot/MK_2.png\" width=\"400\"\u003e\n\n- Return to the game and collect an object *(the game should stop again)*\n- In the **SOURCE** tab, find the type and value arguments at `Local/this` *(see image below)*\n\u003cimg src=\"img/readme_screenshot/MK_3.png\" width=\"300\"\u003e\n\n- Replace `type` with the item you want *(the list is available above)* and `value` with the quantity you want *(see image below)*\n\u003cimg src=\"img/readme_screenshot/MK_4.png\" width=\"300\"\u003e\n\n- You can now go back to the `game.js` file in the **SOURCE** tab, then remove the breakpoint *(by clicking on it again)* and click on the `Resume script execution` button again\n- Your item should be added.\n\u003c/details\u003e\n\n## [METHOD 2] : byPassGamePurchases *(by [@mgiannopoulos24](https://github.com/mgiannopoulos24))*\n\u003cdetails\u003e\n\u003csummary\u003eClick to expand the information\u003c/summary\u003e\n\nMake sure you've followed exactly the steps described in the “Common part of each method” section before moving on to this one.\n\n#### Injection\n- In `game.js` file,\n- Search the file (by pressing `CTRL`+`F`)\n- Write the following command and press `ENTER` :\n```js\n\"PaymentsManager purchase failure\"\n```\n- There will normally be 1 results. Navigate to the first result and set a breakpoint by clicking on the left of the line in the grey area *(see image below)*\n\u003cimg src=\"img/readme_screenshot/MK_5.png\" width=\"500\"\u003e\n\n- Return to the game, click on any pack or paid option, then cancel the transaction by clicking on the cross in the top right-hand corner *(the game should stop again)*.\n\u003cimg src=\"img/readme_screenshot/MK_6.png\" width=\"400\"\u003e\n\n- In the **CONSOLE** tab, write the following command and press `ENTER` :\n```js\ncleverapps.paymentsLogic.purchase = function (a,b,c){\n    console.log(\"PaymentsManager purchase success (free)\", a.productId, a.itemId);\n    cleverapps.eventLogger.logEvent(cleverapps.EVENTS.STATS.PRODUCT.SUCCESS);\n    this.logPurchase(a, { purchase: \"free\" });\n    cleverapps.eventLogger.logEvent(cleverapps.EVENTS.STATS.PRODUCT.CONSUME_START);\n    cleverapps.conversionManager.processConversion(cleverapps.EVENTS.CONVERSIONS.PAYMENTS, 0);\n    cleverapps.conversionManager.processConversion(cleverapps.EVENTS.CONVERSIONS.TOTAL, 0);\n    cleverapps.eventLogger.logEvent(cleverapps.EVENTS.STATS.PRODUCT.CONSUME_SUCCESS);\n    var f = a.reward;\n    a.showBoughtMessage(f);\n    this.giveReward(f, c);\n    b(!0);\n}\n```\n- You can now go back to the `game.js` file in the **SOURCE** tab, then remove the breakpoint *(by clicking on it again)* and click on the `Resume script execution` button again\n\n#### Use injection\nYou're all set! All you have to do is choose the pack you want, and you'll get it for free.\n\u003c/details\u003e\n\n## Additional Information\n- Need help? Join the [Discord Server](https://astraadev.github.io/#/discord).\n- Contributions are welcome! Open an issue or create a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastraadev%2Fmergestkingdom-injector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastraadev%2Fmergestkingdom-injector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastraadev%2Fmergestkingdom-injector/lists"}