Stephen L. said: The menu is whispered to whoever activated the macro installed by the script. Not sure why it isn't showing up for you. Probably his name in the game has a space in it, like "The GM" and someone else in his game has the same first word, like "The Aaron". The code sending the whisper truncates to just "The" and so it targets the wrong "The": // playerName === 'The GM'
if(playerName.indexOf(" ") !== -1) {
// playerName === 'The'
playerName = playerName.substring(0, playerName.indexOf(" "));
}
// whispers to 'The' resolve to another person.
_whisper(playerName, " Invalid " + This used to be a limitation for the API, but they recently fixed the quoting of names. I'd suggest getting rid of the truncation (I've been doing that on my scripts as I run across it) and replacing it with the quotes: function _whisper(who, msg) {
sendChat('Marching Order', '/w " ' + who + ' " ' + msg);
}