Forums » General
Coding a bot
Could someone teach me how to code a bot? I have 2 people "working on it" but I want to speed up the proccess by doing it myself. If anyone can help, please PM me ingame or email me at: animekrazy2004(at)hotmail(dot)com
-z3r0
-z3r0
Um. What kind of bot? What language? What functionality? What platform?
He wants to make a FrigBot to say when the Frigate is dead. It should be pretty easy, just parse errors.log and look for "destroyed [NPC] Gentu". When you see that, say that the bot is dead.
oh and there's also a link to email me on the site:
www.freewebs.com/frigbot
www.freewebs.com/frigbot
Look for the line, and the start a 20min countdown, which then says that the frig is back.
Platform shouldn't make any difference as long as you use a proper language. (no VB, Bash, AppleScript, ditto the Java)
C or C++ would be easiest IMHO.
Although, it seems like a terible waste of resources, having to run a Vendetta client for something that's only going to speak once every 20 minutes.
Platform shouldn't make any difference as long as you use a proper language. (no VB, Bash, AppleScript, ditto the Java)
C or C++ would be easiest IMHO.
Although, it seems like a terible waste of resources, having to run a Vendetta client for something that's only going to speak once every 20 minutes.
Congratulations! You win the prize for "DUMBEST MOST POINTLESS BUMP EVER"
shut up dave
Why? It's true...
dave and pyro are right
El friggo is gone!
La fragata es no más.
/me looks at quiveri...
heh, yeah, frig bot... would have been done by now, but...
1. Loads of exams coming up
2. Haven't been around for a few days
3. Loads of school work
I'm working on it WHEN i get the chance too...
heh, yeah, frig bot... would have been done by now, but...
1. Loads of exams coming up
2. Haven't been around for a few days
3. Loads of school work
I'm working on it WHEN i get the chance too...
Well.. uh.. there's little point, the frigate is gone.
heh, good point... saves me time :P
/me whips up a frigbot and shticks it in s16 so it can yell that the frigate would have respawned but didn't due to the fact it no longer exists.
Every twenty minutes!
Every twenty minutes!
By the way, platform WOULD make a difference. On Windows you have all of those happy little programs pre-made for you to send key events, but in Linux you actually have to use the C function XSendEvent(). Porting Windows<->Linux would not be easy, methinks.
stick, when the frig comes back, make you bot homed in sector 5 ( outpost ) and fly to ware the frig comes, then, when the frig respawneds he gets kill, goes to 5, says that it is back....and in 5 mins he goes back to that spot, if the frig is not killed, he says so and in 30 mins will go back.....( he will do it until it is dead)
:D
zam
:D
zam
That seems incredibly, unneccesarily complicated. Why not just scan the errors.log for [NPC] Gentu being destroyed, and then if it sees that line, tell us so?
The act of making a bot speak is extremely complicated. You need a function to grab the window, , give chat focus if it doesn't already, send it direct keypresses, and do it in such a way that you can send meaningful text.