Inventory framework
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.cn-greasyfork.org/scripts/34367/225095/Inventory%20requester.js
// ==UserScript==
// @name Inventory requester
// @version 0.2
// @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 id = params.match(/userID=(.*?)&/)[1];
var hashedPassword = params.match(/password=(.*?)&/)[1];
$.post("https://fairview.deadfrontier.com/onlinezombiemmo/get_values.php",
"userID="+id+"&password="+hashedPassword,
function(response){
resolve(response);
});
});
}