Thursday, July 23, 2009

Plasma Bot

Please note, that the follow script is confusing as hell. Chances are it WONT work as copy and paste. But you might be lucky as I used it for awhile.
I do heavily recommend over-basic experience with AutoIt for this one.

Onto the script::



The Client must be Windowed (might work in fullscreen, never tested)

PasteBin: View Download

Few notes, if (when) it doesn't work, change all the settings to the minimum possible. Background range exempt (plasma count as "background") this will help prevent clicking/attacking demons in the field (i recommend using an alt that you don't mind have die over-and-over, the script auto-revives on field)
Ctrl+Spacebar is a generic "on"/"off" for the script, and "Pause/Break" key simply pauses the script (I constantly switched between clients and scripts, and this one in particular would cause me to spin around :P
If the script is ON and UNPAUSED and doing nothing but spinning in place despite there being plasma try the following:
- (Most common) Adjust the brightness settings IN GAME!
- Update the colour of the plasma using the AutoIt Window Info tool (take a screenshot and get a solid plasma-color from that, careful not to make it too close to a "captured" plasma)

Please note that the script doesn't work minimized or out of focus (it simulates keypresses, and mouse movements to the entire windows platform).
Also there is a timer in the script to "auto log off" after X amount of hours, so you don't simply run around plasma locking and get banend after doing it for 8hours straight ;D
The script doesn't account for going from 11pm (2300) + 2 hours (1 am // 0100). It waits until 2500 to logoff, which doesn't exist. Simple flaw, but I had no personal reason to remedy it.


The "Sleep [ ]" box does nothing, I was going to have a use for it but never bothered.

That covered most of it, just add "ConsoleWrite("Blah")" if you're trying to find out where the program stops working is the simplest imo.

Oh, and definately use Scite for editting/running.


Whew, think I covered most of it.
Theres also a good chance it will attempt to click your 'toolbar' and 'chatbar'. Minimizing them works.