Advertisement
Guest User

Random fakes

a guest
Oct 31st, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. javascript:var coords = '316|332 318|332 308|327 311|327 305|325 313|331 296|323 296|326 292|328 283|338 282|338 283|337 289|335 313|338 317|331 293|334 331|293 329|287 301|320 300|320 299|319 250|345 247|344 340|287 341|291 340|294 277|338 281|342 333|318 269|346 269|349 264|345 291|305 315|308 290|343 290|342 259|348 263|344 333|294 294|339 313|285 314|302 283|310';function fnFillRallyPoint(){var coord=coords.split(' ');var coordSplit=coord[Math.floor(Math.random()*coord.length)].split('|');document.forms[0].x.value=coordSplit[0];document.forms[0].y.value=coordSplit[1];var scouts=parseInt(document.forms[0].spy.nextSibling.nextSibling.innerHTML.match(/\d+/),10);if(scouts>0){document.forms[0].spy.value=1;}var rams=parseInt(document.forms[0].ram.nextSibling.nextSibling.innerHTML.match(/\d+/),10);if(rams>0){document.forms[0].ram.value=1;}else{var cats=parseInt(document.forms[0].catapult.nextSibling.nextSibling.innerHTML.match(/\d+/),10);if(cats>0){document.forms[0].catapult.value=1;}}}fnFillRallyPoint();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement