Server Help

Bot Questions - Making a bot go to another arena

tansey - Tue Nov 09, 2004 6:03 pm
Post subject: Making a bot go to another arena
How do I make a bot change arenas while running...I tried having it sendPublic( "?go arena" ); but that doesn't seem to work.

Any ideas?

--tansey
Cyan~Fire - Tue Nov 09, 2004 8:33 pm
Post subject:
Send an EVENT_ChangeArena.
Purge - Tue Nov 09, 2004 9:48 pm
Post subject:
If you are running a MERV core then simply login as an Smod lvl 3 on the bot, and hit !go arena.

Is that what u mean?
Cyan~Fire - Tue Nov 09, 2004 10:47 pm
Post subject:
He's talking about having a plugin make the bot switch arenas.
CypherJF - Wed Nov 10, 2004 12:05 am
Post subject:
I think it'd be fun to make a Mr Arrogant plugin like TW has to kick of idle players.. biggrin.gif
tansey - Wed Nov 10, 2004 12:34 am
Post subject:
Cyan~Fire wrote:
Send an EVENT_ChangeArena.


How do I send events like that?

--tansey
CypherJF - Wed Nov 10, 2004 12:41 am
Post subject:
tell(makeChangeArena(-data-)) ?

I don't remember the events anymore :/
Anonymous - Wed Nov 10, 2004 1:20 am
Post subject:
if you're using MERVBot just login as owner and pm it with !go <arena name>
50% Packetloss - Wed Nov 10, 2004 1:31 am
Post subject:
The declaration-----
BotEvent makeChangeArena(char *name);

What the core does---
case EVENT_ChangeArena:
{
String name = (char*)event.p[0];

if (!invalidArena(name.msg))
h->changeArena(name.msg);
}

Example---
tell(makeChangeArena("arena"));
CypherJF - Wed Nov 10, 2004 9:52 am
Post subject:
Boo ya icon_smile.gif
Cyan~Fire - Wed Nov 10, 2004 6:37 pm
Post subject:
Just to let you know, all the events along with what they do are listed in dllcore.h. It also contains prototypes for functions that can make the events for you.
Purge - Thu Nov 11, 2004 12:50 pm
Post subject:
Oooh a plugin... icon_confused.gif
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group