Skip to content
AdventureLand server side code from: https://gitlab.com/Draivin/adventure-drops/tree/master
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
collection
data
static
views
.gitignore
.jshintrc
.travis.yml
README.md
aggregate.js
app.js
old_script.js
old_script_upgrade.js
package-lock.json
package.json
routes.js
script.js Converted port based approach to domain based approach Jan 2, 2019
script_compounder.js
script_exchanger.js
script_kill.js
script_market.js
script_market_master.js
script_upgrade.js
script_version
settings.json
sortOrder.js
sprites.js
test.js

README.md

AdventureLandDrops

AdventureLand server side code from: https://gitlab.com/Draivin/adventure-drops/tree/master Contribute your drop collection to the http://adventurecode.club/ database.

Adventure Land CODE to contribute drop rates

Once you have an API key (request one on the Discord from me @NexusNull#6364), put this code block in your CODE, outside of any kind of loop like setInterval:

Execute this code to install the contribution code. After the installation has finished you can use it by calling load_code("acc_contribute") at the beginning of your code.

parent.api_call("list_codes", {
    callback: function (codes) {
        codes = codes[0]
        var codeSlot = 0;
        for (let i in codes.list) {
            if (codes.list[i] == "acc_contribute") {
                codeSlot = i;
                game_log("Found already existing code. Updating ...");
                break;
            }
        }
        if (codeSlot == 0) {
            game_log("Didn't find existing code. Downloading ...");
            game_log("Looking for an open space to put code.");
            for (let i = 1; i < 100; i++) {
                if (typeof codes.list[i] == "undefined") {
                    codeSlot = i;
                    break;
                }
            }
        }
        let request = new XMLHttpRequest();
        request.open("GET", "https://adventurecode.club/script");
        request.onreadystatechange = function () {
            if (request.readyState === 4 && request.status === 200) {
                var answer = prompt("Please Enter your api key");
                var data = {
                    name: "acc_contribute",
                    slot: codeSlot + "",
                    code: request.responseText.replace("YOUR_API_KEY",answer)
                }
                parent.api_call("save_code", data);
            }
        }
        request.send();
    }
});

To update data.js

Get the file data.js from: http://adventure.land/data.js and replace var G with module.exports

To update skins.json

JSON.stringfy(parent.FC);

Don't forget to add the Franky, Jrat and elementals at end.

"franky": "/images/tiles/monsters/monster1.png",
"jrat": "/images/tiles/monsters/monster1.png",
"eelemental": "/images/tiles/monsters/monster1.png",
"felemental": "/images/tiles/monsters/monster1.png",
"nelemental": "/images/tiles/monsters/monster1.png",
"welemental": "/images/tiles/monsters/monster1.png"

To update dimensions.json

JSON.stringfy(parent.XYWH);

Don't forget to add the Franky, Jrat and elementals at end.

  "franky": [
    0,
    0,
    0,
    0
  ],
  "jrat": [
    0,
    0,
    0,
    0
  ],
  "welemental": [
    0,
    0,
    0,
    0
  ],
  "felemental": [
    0,
    0,
    0,
    0
  ],
  "nelemental": [
    0,
    0,
    0,
    0
  ],
  "eelemental": [
    0,
    0,
    0,
    0
  ]
You can’t perform that action at this time.