Server Help

Bot Questions - Okay heres the bottom line...

Quan Chi2 - Wed Oct 12, 2005 9:22 pm
Post subject: Okay heres the bottom line...
Heres the bottom line, guys. I was too afraid to ask a question like this. I was trying to learn this on my own. Im stumped.

How to I tell my bot to see where each flag was dropped on the map and how would I get my bot to pick it up and drop it at a certain coord?

I know that this is alot to ask(most likely) but Im desperate now.. I just want to know that for now. Mabye if someone can tell me, other ideas of mine may spawn.

----------------

Yet another newbish(mabye) question.

I see Sint32(X Y etc...)
I do not know how to use it, sadly..
I would like to make a warp bot of my own. I heard that it was basic. It was recommended to me by BaK because I was completely new to C++ and making merv plugins.
I finally want to code this plugin but I do not know how to use it and where I would put the code exactly..

I saw the tutorial on Distorts site.. I saw the same thing on MGB's page... I know that its newbish but Im stumped..

-----------------

thank you..
Maverick - Thu Oct 13, 2005 6:01 am
Post subject:
Only giving you some parts of the answer so you can find out the rest yourself (and learn from it). You won't learn when you already know the answer.


This is how you retrieve the flag list:
Code: Show/Hide

parse = flaglist->head;

while (parse) {
   Flag *f = parse->item;
   sendPublic("Flag #"+String(f->ident)+"; X: "+String(f->x)+", Y:"+String(f->y)+", Owned by team: "+String(f->team));
   parse = parse->next;
}


You can have the bot move to specific coordinates by doing me->move(x*16, y*16); , but make sure you make use of tell(makeFlying(true)) and tell(makeSendPosition(true)) and tell(makeShip(SHIP_Warbird)) - else it won't work.

For your second question, read Underlord's Tutorial (or the download friendly version)

Good luck
Quan Chi2 - Thu Oct 13, 2005 7:32 am
Post subject:
K excellent. Thanks man icon_smile.gif
Cyan~Fire - Thu Oct 13, 2005 10:44 am
Post subject:
Don't go spreading your Satan's ways, Mav. The Internet is all-encompassing.
Quan Chi2 - Thu Oct 13, 2005 4:22 pm
Post subject:
I don't get it...(even though I don't have to because its not towards me)
Maverick - Thu Oct 13, 2005 4:46 pm
Post subject:
Quan Chi2 wrote:
I don't get it...
You are not the only one icon_confused.gif
Quan Chi2 - Thu Oct 13, 2005 5:24 pm
Post subject:
lol

Um, maverick I don't quite understand the second part of your respeonse in your first post.

Quote:
You can have the bot move to specific coordinates by doing me->move(x*16, y*16); , but make sure you make use of tell(makeFlying(true)) and tell(makeSendPosition(true)) and tell(makeShip(SHIP_Warbird)) - else it won't work.


Can you please give a more indepth hint/explaination of the structure of the code you are implying?
BDwinsAlt - Thu Oct 13, 2005 11:32 pm
Post subject:
All you have to do is make the bot Get in a ship (*setship 1-icon_cool.gif and *warpto it's self to the flag coord, and *warpto to the next coord, then get it to *spec it's self twice, then the flag nuets and appears in that area later.

That is probably the newbie way icon_redface.gif

It may just work!
D1st0rt - Fri Oct 14, 2005 1:32 am
Post subject:
Send the flag drop packet before speccing
Quan Chi2 - Fri Oct 14, 2005 7:38 am
Post subject:
mmk
Cyan~Fire - Fri Oct 14, 2005 9:54 am
Post subject:
@Mav: I was saying your downloadable "offline" version is evil.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group