mIRC Home    About    Download    Register    News    Help

Print Thread
D
DoctorDyna
DoctorDyna
D
Hey folks, just lookin for some quick help perhaps..

Im trying to write a very small script using ON INPUT, but it doesnt seem to be working properly...heres what im trying to accomplish...

When I enter specific text into a channel, mirc performs a command on a nickname, like if i type "voice joebob" without the quotes, the nick joebob gets a voice. but I dont want mirc to not show the text to the channel, IE everybody must still see me say "voice joebob"

Or, something like "Get off my network joebob" would perform a /kill joebob.

see im trying to avoid using a /command that would not show it to the channel.

Any help is appreciated!

Joined: Mar 2004
Posts: 175
R
Vogon poet
Offline
Vogon poet
R
Joined: Mar 2004
Posts: 175
Code:
On *:INPUT:*: {
If ($Left($1,1) != /) && (!$Ctrlenter) && ($Active != Status Window) && ($Status == connected) {
If ($1 == Voice) { raw -q mode # +v $$2 | halt }
If ($1 == Halfop) { raw -q mode # +h $$2 | halt }
If ($1 == Op) { raw -q mode # +o $$2 | halt }
If ($1-4 == Get off my network) { kill $$5- | halt }
}
}

D
DoctorDyna
DoctorDyna
D
Awesome!

One thing though, it worked the first time i tried it, then i had to add a reason to the kill section, and it worked once...now i cant seem to get it to work again, i mean it kills my bot, but the channel doesnt see the text :P

I will continue to tinker with it a bit, thanks again man!

Joined: Mar 2004
Posts: 175
R
Vogon poet
Offline
Vogon poet
R
Joined: Mar 2004
Posts: 175
Please clarify what you want this to do. Do you want this to show the text, or not show the text?

D
DoctorDyna
DoctorDyna
D
Yeah, I'm a bit confusing sometimes smile I'll give you an example, the first time I ran the script it did this:
Quote:

[Mon 12:33 am] <Dr-Dyna> get off my network swat
[Mon 12:33 am] * Leaving: SwaT (~SwaT@drunk.old.bastage.com) (Local kill by Dr-Dyna (ON INPUT CMD| halt))


That was perfect, except for a little tweaking so the reason looked ok. After that one time though (strangely) it stopped showing my text and just performed a standard kill.

Joined: Mar 2004
Posts: 175
R
Vogon poet
Offline
Vogon poet
R
Joined: Mar 2004
Posts: 175
If you want the text to show, take the | halt off the script. That should show the text.


Link Copied to Clipboard