Skip to content

Instantly share code, notes, and snippets.

@jcheatham
Created June 11, 2015 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcheatham/d01573aaa9b635b317bf to your computer and use it in GitHub Desktop.
Save jcheatham/d01573aaa9b635b317bf to your computer and use it in GitHub Desktop.
function md(x,y) { return {"data": { "getLocalPosition": function() { return {"x": x, "y": y}; } } } }
function clickjack() {
var lucky = Math.random();
if (lucky < 0.25) { g_Minigame.m_CurrentScene.DoClick(md(514,386)); }
else if (lucky < 0.5) { g_Minigame.m_CurrentScene.DoClick(md(647,439)); }
else if (lucky < 0.75) { g_Minigame.m_CurrentScene.DoClick(md(764,398)); }
else { g_Minigame.m_CurrentScene.DoClick(md(640,241)); }
}
setInterval(function(){ clickjack(); }, 100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment