Last active
January 21, 2019 18:22
-
-
Save zekoz/fb3898318a7ba8b70e8131e24a5be40d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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