egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
masterstanf2k
Voice


Joined: 03 Oct 2003
Posts: 29

PostPosted: Mon Oct 06, 2003 10:20 pm    Post subject: REQUEST: !slap [nick] [slap...] Reply with quote

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
View user's profile Send private message AIM Address
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Oct 07, 2003 10:50 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Tue Oct 07, 2003 10:57 am    Post subject: Reply with quote

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
View user's profile Send private message
masterstanf2k
Voice


Joined: 03 Oct 2003
Posts: 29

PostPosted: Tue Oct 07, 2003 1:29 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Oct 07, 2003 2:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
masterstanf2k
Voice


Joined: 03 Oct 2003
Posts: 29

PostPosted: Tue Oct 07, 2003 7:03 pm    Post subject: Reply with quote

THX! It works Smile
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber