NOTE: This script requires GMCP to be enabled. It also requires the new function package that is available on my site with wecho, wsetFgColor, and wechoLink.
Ok, so finally I finished this script. Obviously it's only version 1, so there may be a few bugs. If you encounter one please send me as detailed a message as possible with the issue.
It targets automatically. It removes things from the list automatically. It adds things that walk into the room automatically. Please keep in mind that this has the capability to echo to a miniconsole, userWindow, or the main screen.
You have to go into the "structure" script and change the "window" value to whatever the window name is that you want to display to.
The targets are stored in a table. To actually target from this table, just use
send("kick "..multiTarget.targets[X].id)
Where X is the number of the target you want to attack. You should use 1 to attack the first target, so it'd be
send("kick "..multiTarget.targets[1].id)
You need the ".id" bit after it because it also stores the names in the table.
If you want a stormhammer script or something, all you'd need to do is something like:
if multiTarget.targets[3] then
send("cast stormhammer at "..multiTarget.targets[1].id.." and "..multiTarget.targets[2].id.." and "..multiTarget.targets[3].id
elseif not multiTargets.targets[3] and multiTargets.targets[2] then
send("cast stormhammer at "..multiTargets.target.targets[1].id.." and "..multiTarget.targets[2].id)
elseif not multiTargets.targets[2] and multiTargets.targets[1] then
send("cast stormhammer at "..multiTargets.targets[1].id)
end
Comments