Skip to content

Commit

Permalink
working autoreport
Browse files Browse the repository at this point in the history
  • Loading branch information
wchill committed Jun 21, 2015
1 parent 474a963 commit d4bac82
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
8 changes: 4 additions & 4 deletions autoPlay.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @name /u/wchill Monster Minigame Auto-script w/ anti-troll
// @namespace https://github.com/wchill/steamSummerMinigame
// @description A script that runs the Steam Monster Minigame for you.
// @version 7.4.5
// @version 7.4.6
// @match *://steamcommunity.com/minigame/towerattack*
// @match *://steamcommunity.com//minigame/towerattack*
// @grant none
Expand All @@ -16,7 +16,7 @@
"use strict";

//Version displayed to client, update along with the @version above
var SCRIPT_VERSION = '7.4.5';
var SCRIPT_VERSION = '7.4.6';

// OPTIONS
var clickRate = 20;
Expand Down Expand Up @@ -673,11 +673,11 @@
this.m_eleUpdateLogContainer[0].insertBefore(ele[0], this.m_eleUpdateLogContainer[0].firstChild);
advLog(rgEntry.actor_name + " used " + this.m_Game.m_rgTuningData.abilities[ rgEntry.ability ].name + " on level " + getGameLevel(), 1);
w.$J('.name', ele).attr( "style", "color: red; font-weight: bold;" );
w.$J.post({
w.$J.ajax({
type: 'POST',
url: 'http://steam.intense.io:8080/report',
crossDomain: true,
data: {"name":rgEntry.actor_name, "steamid":rgEntry.actor, "round":getGameLevel(), "ability":rgEntry.ability, "time":rgEntry.time},
data: JSON.stringify({"name":rgEntry.actor_name, "steamid":rgEntry.actor, "round":getGameLevel(), "ability":rgEntry.ability, "time":rgEntry.time}),
dataType: 'json',
success: function(responseData, textStatus, jqXHR) {
advLog("Reported " + rgEntry.actor_name + " at time " + rgEntry.time, 2);
Expand Down
Loading

0 comments on commit d4bac82

Please sign in to comment.