Inventory requester

Inventory framework

As of 2017-10-20. See the latest version.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/34367/225092/Inventory%20requester.js

// ==UserScript==
// @name         Inventory requester
// @version      0.1
// @description  Inventory framework
// @author       A Meaty Alt
// @match        http://fairview.deadfrontier.com/onlinezombiemmo/index.php?page=35
// @grant        none
// ==/UserScript==

function getPlayerValues(params){
    return new Promise(function(resolve){
        var hashedPassword = params.match(/password=(.*?)&/)[1];
        $.post("https://fairview.deadfrontier.com/onlinezombiemmo/get_values.php",
               "userID="+id+"&password="+hashedPassword,
               function(response){
            resolve(response);
        });
    });
}