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.

REQUEST: !slap [nick] [slap...]

Old posts that have not been replied to for several years.
Locked
m
masterstanf2k
Voice
Posts: 29
Joined: Fri Oct 03, 2003 6:15 pm

REQUEST: !slap [nick] [slap...]

Post by masterstanf2k »

can someone make a simple script... it would be.... !slap BOB hahah... and return /me slaps BOB hahah... know what I mean?? REALLY simple....
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

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

Post by caesar »

Code: Select all

set reason [lrange [split $arg 1 end]
Once the game is over, the king and the pawn go back in the same box.
m
masterstanf2k
Voice
Posts: 29
Joined: Fri Oct 03, 2003 6:15 pm

Post by masterstanf2k »

THX! :0. I'll try it when I get home, and I'll report on whether it works or not! THX again!
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

you want it to respond to !slap nick reason, then this is better:

Code: Select all

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" 
}
m
masterstanf2k
Voice
Posts: 29
Joined: Fri Oct 03, 2003 6:15 pm

Post by masterstanf2k »

THX! It works :)
Locked