2nd fix
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// ==UserScript==
|
||||
// @name Grepolis Remote Control
|
||||
// @namespace http://tampermonkey.net/
|
||||
// @version 3.0
|
||||
// @version 3.1
|
||||
// @description Polls grepo.haunter-pets.top for remote commands and executes them in-game (Multi-Player)
|
||||
// @author Dimitrios
|
||||
// @match https://*.grepolis.com/game/*
|
||||
@@ -89,7 +89,10 @@
|
||||
try {
|
||||
const pm = uw.MM.getModels().Player[player_id];
|
||||
if (pm && pm.attributes) alliance_name = pm.attributes.alliance_name;
|
||||
} catch(e) {}
|
||||
console.log("GrepoRemote: Extracted alliance_name =", alliance_name);
|
||||
} catch(e) {
|
||||
console.log("GrepoRemote: Failed to extract alliance_name", e);
|
||||
}
|
||||
|
||||
const total_points = uw.Game?.player_points ?? 0;
|
||||
const world = uw.Game?.world_id || '';
|
||||
|
||||
Reference in New Issue
Block a user