Forums » General

Coding a bot

Apr 24, 2004 quiveri link
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
Apr 24, 2004 red cactus link
Um. What kind of bot? What language? What functionality? What platform?
Apr 24, 2004 roguelazer link
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.
Apr 24, 2004 quiveri link
oh and there's also a link to email me on the site:

www.freewebs.com/frigbot
Apr 26, 2004 randomblast link
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.
May 02, 2004 timmy10150 link
May 02, 2004 UncleDave link
Congratulations! You win the prize for "DUMBEST MOST POINTLESS BUMP EVER"
May 02, 2004 timmy10150 link
shut up dave
May 02, 2004 Pyro link
Why? It's true...
May 02, 2004 quiveri link
dave and pyro are right
May 02, 2004 HumpyThePenguin link
El friggo is gone!
May 02, 2004 Suicidal Lemming link
La fragata es no más.
May 03, 2004 stick link
/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...
May 03, 2004 Archon link
Well.. uh.. there's little point, the frigate is gone.
May 03, 2004 stick link
heh, good point... saves me time :P
May 03, 2004 HumpyThePenguin link
/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!
May 05, 2004 red cactus link
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.
May 05, 2004 zamzx zik link
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
May 05, 2004 red cactus link
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?
May 05, 2004 roguelazer link
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.