Commit 830a142e authored by Tachibana's avatar Tachibana

12

parent 8810818e
// 0.2
// Prevents getting kicked for inactivity // Prevents getting kicked for inactivity
var waitheatbeat = setInterval(function() { var waitheatbeat = setInterval(function() {
if (this && this.GameMgr && this.GameMgr.Inst && Laya) { if (this && this.GameMgr && this.GameMgr.Inst && Laya) {
Laya.timer.loop(1e3, this.GameMgr, this.GameMgr.Inst.clientHeatBeat) setInterval(() => {
this.GameMgr.Inst._pre_mouse_point = new Laya.Point(Math.floor(Math.random() * document.getElementById('layaCanvas').width), Math.floor(Math.random() * document.getElementById('layaCanvas').height));
document.dispatchEvent(new Event('mousemove'));
}, 10000);
clearInterval(waitheatbeat); clearInterval(waitheatbeat);
} }
}, 1000); }, 1000);
\ No newline at end of file
{ {
"id": "AntiAfk", "id": "AntiAfk",
"version": "1.1.0", "version": "1.0.0",
"name": "阻止进入挂机状态", "name": "阻止进入挂机状态",
"author": "NeverDecaf", "author": "NeverDecaf",
"description": "我还活着呢!(√)\n你妈的,为什么(×)", "description": "我还活着呢!(√)\n你妈的,为什么(×)",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment