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.
Old posts that have not been replied to for several years.
m0de
Voice
Posts: 12 Joined: Mon Jun 09, 2003 11:33 am
Post
by m0de » Thu Jun 12, 2003 2:31 pm
im trying to write a simple proc for when i type: ".getscrim east de_map our server cal-m"
the bot would reply in #calscrim "5v5 east de_themapientered our/their server and cal-m"
hopefully i explained what im trying to do so that you can understand it just lemme know otherwise. thanks.
this is what i tried:
Code: Select all
# start of !getscrim
proc pub_getscrim {nick host handle channel map serv league} {
putserv "PRIVMSG #calscrim :5v5 east $map $serv $league"
}
# end of !getscrim
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Thu Jun 12, 2003 2:39 pm
See the tcl-commands.doc file the "bind pub" because you are using it incorectly. Also, be more specific on the reply, if it's possible give an short example so we can understand what are you tryng to do exactly.
Once the game is over, the king and the pawn go back in the same box.
m0de
Voice
Posts: 12 Joined: Mon Jun 09, 2003 11:33 am
Post
by m0de » Thu Jun 12, 2003 2:44 pm
when i type .getscrim de_test ours cal-m
the bot replys "5v5 east de_test ours cal-m"
same would go if i typed ".getscrim de_inferno YOURS cal-o"
the bot replys "5v5 east de_inferno YOURS cal-o"
hope that helps
edit: i didnt include my bind code in the first post so heres what i put:
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Thu Jun 12, 2003 3:30 pm
Take a closer look at the proc. So basicaly you want it reply with:5v5 east and the rest of the things you've said? Is this correct?
Once the game is over, the king and the pawn go back in the same box.
m0de
Voice
Posts: 12 Joined: Mon Jun 09, 2003 11:33 am
Post
by m0de » Thu Jun 12, 2003 3:30 pm
yes exactly
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Thu Jun 12, 2003 3:43 pm
Code: Select all
bind pub m .getscrim pub_getscrim
proc pub_getscrim {nick host handle channel text} {
putserv "PRIVMSG $chan :5v5 east $text"
}
Once the game is over, the king and the pawn go back in the same box.
m0de
Voice
Posts: 12 Joined: Mon Jun 09, 2003 11:33 am
Post
by m0de » Thu Jun 12, 2003 3:44 pm
thanks alot you replied right away
lemme test it out..