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.

simple question

Old posts that have not been replied to for several years.
Locked
m
m0de
Voice
Posts: 12
Joined: Mon Jun 09, 2003 11:33 am

simple question

Post by m0de »

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
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
m
m0de
Voice
Posts: 12
Joined: Mon Jun 09, 2003 11:33 am

Post by m0de »

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:

Code: Select all

bind pub m .getscrim pub_getscrim
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
m
m0de
Voice
Posts: 12
Joined: Mon Jun 09, 2003 11:33 am

Post by m0de »

yes exactly
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
m
m0de
Voice
Posts: 12
Joined: Mon Jun 09, 2003 11:33 am

Post by m0de »

thanks alot you replied right away :D lemme test it out..
Locked