This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

How can if check if $nick is a botnick

Old posts that have not been replied to for several years.
Locked
m
minotaur
Voice
Posts: 19
Joined: Sun Jul 06, 2003 8:36 pm

How can if check if $nick is a botnick

Post by minotaur »

One question how can i check if a variable like $nick is the Nick of the Current Bot or of an Bot in the Botnet?
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

For the current bot :

Code: Select all

if {$nick == $::botnick} {...}
for all bot's (if the user has +b for example)

Code: Select all

set hand [nick2hand $nick]
if {[matchattr $hand b]} {...}
i havent tested it cos i'm too tired after work, but it should do the job
Last edited by GodOfSuicide on Tue Jul 15, 2003 4:11 pm, edited 1 time in total.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

use "bots" or even do a match +b to get a list of bots.
Once the game is over, the king and the pawn go back in the same box.
Locked