Yes folks, it's finally here, the long awaited emjack update made especially for Sandbox. With permission from Foxie, I present to all of you https://greasyfork.org/en/scripts/10698-emjack
New Features
Working Copy/Paste
Modified vote spam prevention to make flashing as silenced easier
Dynamic role and alignment display
Dynamic vote count display (use /toggle to toggle on and off)
Auto name and role in will
/role command to see the mechanics of any role
/afk turns AFK Mode on/off
/vote allows you to vote for a particular person from the type box.
/nl allows you to quickly no-lynch.
/suggest and /bug allow you to pm suggestions/bug reports directly to me.
After a recent update, Lucid removed the ability to copy/paste, even on Chromed. I have restored the functionality of copy/paste when emjack++ is installed. You can update it here: https://greasyfork.org/en/scripts/10698-emjack
Yeah, I plan to move away from that interval when I get around to redoing the vote counter. I had initially made it so that it would reset depending on the gamestate, but that was before I realized that the gamestate changed every time you went back to previous days. I didn't realize that fact until after I published the script though, so I was scrambling to find something that worked well enough for the time being. Thanks very much for the input.
the "o" event triggers on gamestart if i recall correctly. this snippet also still works, but the old format (such as the u() function) would need to be changed
i skimmed through the code and I'd advise against using a constantly running interval, you can record things like votes by listening to the socket when it tells you someone voted and it'll save a lot of unnecessary processing every 10th of a second
check the part where it says intercept packets, that reads everything the server sends you, including gamestate changes (day/night), all votes, all meetings, all messages, everything. you can properly respond to these events there
Update 2.8: Added a new command: /role
Type /role to see the mechanics of your current role.
Type /role rolename to see the mechanics of a particular role.
does this have every role on the website or every role in the particular setup?
it just sends an ajax request to em and returns whatever em returns for that role name, which also means you have to know the real role name (e.g. insane cop is actually just "insane")
Okay, I there were a few issues with the vote count display, but they should be fixed now (other than them resetting when you refresh the page). I've also changed it so that mafia wills are not auto-filled. Please update if you haven't already.
Afterwards, click the link given in the thread. Normally you should be able to just add it, but chrome is being rather protective in recent times, so you'll have to manually do it. To do that, click on the tampermonkey application image then click Add a new script. Afterwards, delete any of the lines already there on the script page for tampermonkey. On the emjack site, click the code button and copy paste that into the tampermonkey area. Afterwards, click the save icon, then check the box, then click enable and it should work once you refresh the site!
Also, I recommend installing the script through greasyfork and not just copying the code, as I plan to add further updates in the future and this will allow you to automatically update your script.