| View previous topic :: View next topic |
| Author |
Message |
masterstanf2k Voice
Joined: 03 Oct 2003 Posts: 29
|
Posted: Mon Oct 06, 2003 10:20 pm Post subject: REQUEST: !slap [nick] [slap...] |
|
|
| can someone make a simple script... it would be.... !slap BOB hahah... and return /me slaps BOB hahah... know what I mean?? REALLY simple.... |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Oct 07, 2003 10:50 am Post subject: |
|
|
| Code: | bind pub - !slap slap:target
proc slap:target {nick uhost hand chan arg} {
set target "[lindex [split $arg] 0]"
putserv "PRIVMSG $chan :\001ACTION slaps $target around a bit with a large trout\001"
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Tue Oct 07, 2003 10:57 am Post subject: |
|
|
| Code: |
set reason [lrange [split $arg 1 end]
|
_________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
masterstanf2k Voice
Joined: 03 Oct 2003 Posts: 29
|
Posted: Tue Oct 07, 2003 1:29 pm Post subject: |
|
|
| THX! :0. I'll try it when I get home, and I'll report on whether it works or not! THX again! |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Oct 07, 2003 2:32 pm Post subject: |
|
|
you want it to respond to !slap nick reason, then this is better:
| Code: | bind pub - !slap slap:target
proc slap:target {nick uhost hand chan arg} {
set target "[lindex [split $arg] 0]" ; set reason "[join [lrange [split $arg] 1 end]]"
putserv "PRIVMSG $chan :\001ACTION slaps $target $reason\001"
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
masterstanf2k Voice
Joined: 03 Oct 2003 Posts: 29
|
Posted: Tue Oct 07, 2003 7:03 pm Post subject: |
|
|
THX! It works  |
|
| Back to top |
|
 |
|