Author |
Message |
Quan Chi2 Member of "Sexy Teenagers that Code" Group

Age:34 Gender: Joined: Mar 25 2005 Posts: 860 Location: NYC Offline
|
Posted: Wed Sep 07, 2005 3:37 pm Post subject: Yet another newbie question of mine... |
 |
|
|
|
Can someone tell me how.. or point me in the right direction for this one?
I want to code a few different bots this way..
How do I make my dll turn off/on game mode and actions?
like
Im going to make this bot that gives people a super ship when they enter.. lol just if i get bored one day..
i want to make it so that when i do
.supers on (it turns this mode on, and everyone gets super when they come in)
and
.supers off (no one gets super anymore.. i know that they will still have super, but i'll figure out a way to stop that..)
I pretty much want to make this bot to learn how to turn off and on game modes.. for different games..
Can anyone HELP me on this one? Even a small 3 word tip would be a help.. Im not looking for a full src(a code would be nice of course, but its not needed lol).. I just need some direction...
Thanks in advance.. |
|
Back to top |
|
 |
freakmonger Novice
Joined: Jan 07 2005 Posts: 45 Location: Arlington, VA Offline
|
Posted: Wed Sep 07, 2005 3:47 pm Post subject: |
 |
|
|
|
..
Last edited by freakmonger on Wed Sep 07, 2005 4:22 pm, edited 1 time in total |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Wed Sep 07, 2005 3:48 pm Post subject: |
 |
|
|
|
Make a bunch of setting changes at once using EVENT_ChangeSettings. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Wed Sep 07, 2005 4:29 pm Post subject: |
 |
|
|
|
No its more fun to PM everyone *super.... aaand much easier too !  _________________
|
|
Back to top |
|
 |
Purge Episode I > Eposide III Jar-Jar is kool

Age:35 Gender: Joined: Sep 08 2004 Posts: 2019 Offline
|
Posted: Wed Sep 07, 2005 5:21 pm Post subject: |
 |
|
|
|
Maverick wrote: | No its more fun to PM everyone *super.... aaand much easier too !  |
They'd have to be sysop or they'll get kicked. |
|
Back to top |
|
 |
BDwinsAlt Agurus's Posse

Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Wed Sep 07, 2005 5:37 pm Post subject: Re: Yet another newbie question of mine... |
 |
|
|
|
Quote: | Can anyone HELP me on this one? Even a small 3 word tip would be a help.. |
Get A Life. |
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Wed Sep 07, 2005 6:01 pm Post subject: |
 |
|
|
|
Purge+ wrote: | ... or they'll get kicked. |
hence the evil grin  |
|
Back to top |
|
 |
Quan Chi2 Member of "Sexy Teenagers that Code" Group

Age:34 Gender: Joined: Mar 25 2005 Posts: 860 Location: NYC Offline
|
Posted: Wed Sep 07, 2005 8:58 pm Post subject: |
 |
|
|
|
But I want to turn it on and off.. lol |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
 |
Quan Chi2 Member of "Sexy Teenagers that Code" Group

Age:34 Gender: Joined: Mar 25 2005 Posts: 860 Location: NYC Offline
|
Posted: Wed Sep 07, 2005 9:25 pm Post subject: |
 |
|
|
|
wtf? |
|
Back to top |
|
 |
Guest
Offline
|
Posted: Fri Sep 09, 2005 8:13 am Post subject: |
 |
|
|
|
as bak said you need a boolean which will be toggled TRUE/FALSE when the bot receives a .supers on/off message
then when a player enters the arena you check if the boolean is true, and if it is you prize them super |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Fri Sep 09, 2005 10:14 am Post subject: |
 |
|
|
|
Now we can implement a command to turn give_supers on or off, in command.cpp (make sure to put this command in the right operator code block!).
if (c->check("supers"))
{
if (c->checkParam("on"))
{
if (give_supers)
sendPrivate(p, "Prizing super was enabled already.");
else
{
give_supers = true;
sendPrivate(p, "Prizing super is now enabled.");
}
}
else if (c->checkParam("off"))
{
if (give_supers)
{
give_supers = false;
sendPrivate(p, "Prizing super is now disabled.");
}
else
sendPrivate(p, "Prizing super was disabled already.");
}
else
{
// No parameter for the supers command was used, we could make the plugin
// give the current status of the prizing.
String s = "Prizing super is currently ";
if (give_supers)
s += "enabled.";
else
s += "disabled.";
sendPrivate(p, s);
// You could, of course, show the command syntax help.
//sendPrivate(, "Please specify a parameter for the !supers command: !supers [on|off].");
}
} |
|
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Fri Sep 09, 2005 10:50 am Post subject: |
 |
|
|
|
6 posts in a row. Some kind of a record? _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:41 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: Fri Sep 09, 2005 11:36 am Post subject: |
 |
|
|
|
Dr Brain wrote: | 6 posts in a row. Some kind of a record? |
Actually, I like the way he laid it out. Making them into new posts divides the topics he covers in each post very well. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Fri Sep 09, 2005 12:48 pm Post subject: |
 |
|
|
|
I think it's still a record, even though its done in good taste. _________________
 |
|
Back to top |
|
 |
Chambahs Power attack

Joined: Jun 19 2005 Posts: 820 Offline
|
Posted: Fri Sep 09, 2005 1:59 pm Post subject: |
 |
|
|
|
solo, why dont you just write the whole damn thing for him? |
|
Back to top |
|
 |
LearJett+ Server Help Squatter
Joined: Jul 11 2005 Posts: 281 Offline
|
Posted: Fri Sep 09, 2005 2:24 pm Post subject: |
 |
|
|
|
Wow, people are very helpful on here  _________________
 |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Fri Sep 09, 2005 2:37 pm Post subject: |
 |
|
|
|
He wants to learn, obviously. You don't learn much by getting completed work in your hands.
Also, I had it split up because multiple code boxes were messing my posts up.
The record would be MGB's "The Leper's Colony", and well, maybe there are other threads where some spammer has created more posts in one row.
Why are you all whining about what I just wrote? You are acting like a bunch of sheep. It's not the point how many posts I took for it.
You don't buy a very expensive TV and then put a bag on it. You don't buy a very expensive horse and then say "bah, stupid horse" as soon as you get it.
You don't read a decent article and then whine because it took a few pages.
You wouldn't whine about the way my decent guide was posted if you would respect the effort that was put into it.
Spoiled brats, always having something to complain.
Some people on this planet don't have much more than shoes and the ground they stand on, and you complain about 6 posts?
Sorry, I'll get back to normal mode.  |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Fri Sep 09, 2005 2:39 pm Post subject: |
 |
|
|
|
Solo Ace wrote: | Also, I had it split up because multiple code boxes were messing my posts up. |
Ah. That explains it.
Also I was not complaining. Just commenting. |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Fri Sep 09, 2005 2:43 pm Post subject: |
 |
|
|
|
I was kidding, you know that. |
|
Back to top |
|
 |
|