Skip to content

Instantly share code, notes, and snippets.

@zekoz
Last active January 21, 2019 18:22
Show Gist options
  • Save zekoz/fb3898318a7ba8b70e8131e24a5be40d to your computer and use it in GitHub Desktop.
Save zekoz/fb3898318a7ba8b70e8131e24a5be40d to your computer and use it in GitHub Desktop.
function fuzzy(plr) {
var me = client.conn.player_num;
var them = player_by_name(plr).playerno;
var on = false;
setInterval(function(){
if (!on) {
send_request(JSON.stringify({pid: packet_diplomacy_init_meeting_req, counterpart:them}));
on = true;
} else {
send_request(JSON.stringify({pid: packet_diplomacy_cancel_meeting_req, counterpart:them}));
on = false;
}
}, 200)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment