Bot Master

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

devestator
a ghoul
a ghoul
Posts: 121
Joined: Thu Feb 27, 2003 4:25 pm

Bot Master

Post by devestator » Fri May 21, 2004 1:23 am

I dont know if this is possible, but I figured I'd throw it out as it would come in really handy for me if it were possible.

First off I currently use advbot, so if it coudl work with it it'd be great!

A macro that could be run on a computer that is the master of a bot. You could set what character is the bot and you would be able have a new UI window popup with that bots information. HPs, Mana, Exp, AAExp, Buffs, Memmed Spells, sitting state, paused actions settings (with a toggle check to pause / unpause??), current action (idle, casting xxx on xxx, etc). And also a set of configurable hotkeys (maybe mimic the eq hotkeys, 10 sets of 10 keys).

Further if you have more than one bot under your control it would open a new window for each one with the window name being the bot name of course.

This is probably pretty far fetched and a task to program but I think it would make an oustanding utility for any and all boters.

Now I have programming knowledge so might would give this a go myself in the future if no one else cares to take a stab at it, but I'm not yet familiar enough with macroquest to do it. I'm mainly a VB and VBS programmer so I'd have to get use to whatever mq uses. One question I'd have right off is if MQ has the capability to write to files or not? If so it should be a cench to do this since MQ can return the value of all the things mentioned before, just write it to a file on a set timeframe and the main bot reads the info in from a file and updates the window. (*note this would only work if your on a network or have a way to upload the file to the net for downloading)

Or better yet if MQ can handle cleint server type stuff advbot.mac could be changed slightly to act as a client and connect to this as the server and communicate that way over tcp or something.

Anyway there it is what do yall think?

EDIT:
Oh yeah and I realize for something like this to work some changes would probably have to made to advbot as well, that is to be expected.

BrainDeath
a ghoul
a ghoul
Posts: 86
Joined: Sun Mar 07, 2004 5:00 pm

Post by BrainDeath » Fri May 21, 2004 2:17 am

The way things work currently, all the communication between the "client" and "server" would have to be through tells.

I actually have a language skill-up macro that I wrote that does this where certain key phrases act as ack and nak so the 2 toons running the macro can tell each other where they are at on skill and which language to teach next.

As far as placing the info on the UI - thats a question I can't answer, but I bet it would be possible with a plugin.

Good luck - sounds like an ambitious project! :D

eqaussie
a ghoul
a ghoul
Posts: 124
Joined: Tue Mar 16, 2004 5:58 am

Post by eqaussie » Fri May 21, 2004 8:39 am

I actually have a language skill-up macro that I wrote that does this where certain key phrases act as ack and nak so the 2 toons running the macro can tell each other where they are at on skill and which language to teach next
Id be interested in this macro, i have a couple of toons id like to raise their language skills

devestator
a ghoul
a ghoul
Posts: 121
Joined: Thu Feb 27, 2003 4:25 pm

Post by devestator » Fri May 21, 2004 1:42 pm

The way things work currently, all the communication between the "client" and "server" would have to be through tells.
So a macroquest macro cannot handle reading or writing to files in any way shape or form? Thats kind of bad if it dosn't, the core to any programming should have a basic IO system and usually you'll find file IO too.

Even if it could not be set up as a Client / Server with file IO you could mimic a client / server easily.

I guess I'll have to learn mq's language and do it myself though I guess =/

BrainDeath
a ghoul
a ghoul
Posts: 86
Joined: Sun Mar 07, 2004 5:00 pm

Post by BrainDeath » Fri May 21, 2004 10:41 pm

devestator wrote:So a macroquest macro cannot handle reading or writing to files in any way shape or form?
Actually, I hadn't thought of using that method. If the client and the server both had access to a shared file dataspace I guess they could communicate by reading and writing to an ini file. MQ does support file I/O in that fashion.

Falco72
a hill giant
a hill giant
Posts: 215
Joined: Fri Sep 26, 2003 3:24 am

Post by Falco72 » Sat May 22, 2004 2:28 am

You can use an ini file and/or, far better, an DB like mysql (using the right plugin). It is very easy.

Splinter
decaying skeleton
decaying skeleton
Posts: 3
Joined: Sun Oct 12, 2003 5:08 am

Post by Splinter » Thu May 27, 2004 4:11 am

Perhaps an easier way to communicate between master and bot would be to use the irc plugin combined with custom windows for the bot's stats? That way none of the communication is visible to EQ and you'd have faster response time than if both were reading / writting to a shared file.

devestator
a ghoul
a ghoul
Posts: 121
Joined: Thu Feb 27, 2003 4:25 pm

Post by devestator » Thu May 27, 2004 11:01 am

Yeah splinter I'm probably going to be taking a look at the IRC client soon. I havn't had time the past week to learn the code for MQ been working on some DAoC scripts for another macroing program.

Between that and going on raids with my guild on my main ... hehe.

I hope to take a look at it this weekend though.. I'm sure other people besides myself will find it usefull. The only downside is going to be the bot macro itself, either two versions of it will have to be posted, I'll have to post my own bot and keep it up to date, or get someone to work with me on their bot in order to keep it up to date to communicate with the bot master.

The bot I currently use and like is advBot. Which if I'm not mistaken is mcl's creation (or maybe he just keeps it updated now?). Would love to just update it to communicate with the Bot Master.

I'm also toying with the idea of trying to write it as a plugin in when I get around to it though. This way any future bots written could work with it. But since I'm still not sure on how all of it works in MQ yet that may be a while before I'm able to try anything like that. And my c++ experience is very limited so I'd definately be getting a few friends to help on that one hehe :)

jdelpheki
a lesser mummy
a lesser mummy
Posts: 51
Joined: Tue Dec 09, 2003 2:46 pm

Telnet plugin

Post by jdelpheki » Thu May 27, 2004 1:03 pm

can ifo be passed via telnet safe fast local. dont forget to change your default port :)
Time to die A microwave Burrito!