Give

Platform:  mIRC
Published  Oct 26, 2011
Updated  Dec 11, 2011
just a little example code

useful for playing around :) public version

on *:text:!example *:#: { msg $chan $nick has given $2 item-name! }

moderators only

on *:text:!example *:#: {
if ($nick isop #) {
msg $chan $nick has given $2 item-name! }
}

Comments

Sign in to comment.
baloe12nl   -  Jun 15, 2012
hé?

Code

 


will this work?
 Respond  
Jethro   -  Oct 27, 2011

Quote

on *:text:!example *:#: {
Leave a space between the trigger and the asterisk symbol to indicate that the $2 must be supplied before the text event responds. Without the space, people can simply enter !example without $2, and the code will send the channel a message with the value of $2 missing.
 Respond  
Fuzionx   -  Oct 27, 2011
You have 1 bracket too much at both ON TEXT events.
 Respond  
dezzertv   -  Oct 27, 2011
nah jetho i gave 2 choices before public is if they wanted everyone to use it and $nick isop # if they wanted op's / mods only
 Respond  
Jethro   -  Oct 26, 2011
Combine them:

Code

 
Edit - made an miscalculation earlier.
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.