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.

help with action binds

Help for those learning Tcl or writing their own scripts.
Post Reply
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

help with action binds

Post by cache »

I'm trying to make an action script on certain words said and bot will display a random message from text file..

I have tried this bind:
bind act - "*hey*" acttext

Tried a few other ways but no go :(
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

Hi there

I think that bind act is for situations when someone does an action on the botnet.
I think you want to use this : bind ctcp - ACTION
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Thats where I get confused when I read help document because I'm clueless where to set it to go off on "*hey*" since ACTION is going there instead.
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

I think that in the body or your proc acttext, you have to make a test like this :

Code: Select all

if [string match -nocase "*hey*" $arg] 
I m not a coder, but some months ago i asked for a script to prevent flood by actions, Sir_Fz gave me this code, it can help you to see how to use the bind with action : http://forum.egghelp.org/viewtopic.php? ... ind+action
Good luck
Post Reply