Jump to content
SubSpace Forum Network

Recommended Posts

Posted

Hey.. I need some help with this bot im making.. I have it so it counts down to 0 and says GO!.. but when it says go i need it to open the door too.. Anyone wanna help??

 

Heres the code.. (i know, its -*BAD WORD*-a messy, just a small bot so it doesnt really matter to me..)

 

countdown:

 

if (countdown[0] == 3)

{

sendPublic("*arena Starting in 3..");

}

if (countdown[0] == 2)

{

sendPublic("*arena 2..");

}

if (countdown[0] == 1)

{

sendPublic("*arena 1..");

}



if (countdown[0] == 0)

{

sendPublic("*arena GO");

}  

 

and the !start command..

 

 if (c->check("start"))

	 {

sendPublic("*arena Get ready! Duel starting in 5 seconds..");

   countdown[0] = 6;

	 }

Guest
This topic is now closed to further replies.
×
×
  • Create New...