PDA

View Full Version : mIRC scripting help



-N-
06-16-2005, 07:01 AM
I've got some scripts that trigger upon a certain expression, and when other people trigger it, it works fine, but I can't trigger it myself. How can I trigger my script itself? Here, I'll post it. (Yes, it's the !vin_diesel one. :p)



on 1:TEXT:!vin_diesel*:#:{
//msg # http://www.4q.cc/vin/index.php
}

Also, how do I get welcome messages to work? I have this one:

Kirobaito:*!*Kirobaito@*.aol.com

on @Kirobaito:JOIN:#:{
//msg # * Kirobaito has quit IRC (Ping timeout)
}which is supposed to set a usergroup and then refer to it, but it never works.

crono_logical
06-16-2005, 07:22 AM
First one: You can't trigger it yourself - they're in remotes because they're triggered remotely i.e. by other people :D You can get around that though by putting everything into an alias instead, and have the trigger call the alias rather than do the actual work:



alias yayfun {
kick $chan $nick >:}
}

on *:TEXT:*:#eoff:{
yayfun
}



Second one: User definitions belong in Users, not in Remotes. Also, you stuck an @ in front, meaning it'll only trigger if KB joins opped. Since no-one ever joins channels opped (they get opped after joining), it'll never trigger :p