mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2007
Posts: 9
J
JOCKz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: Jul 2007
Posts: 9
hey guys so a month ago i posted here, ventured out and learnt some scripting from studying various scripts etc.

My friend sent me a script to catch "!request activation*" i modified it a little but cant seem to get an alias into there.

heres what it looks like at current ...

Quote:
on *:text:!request activation*:#support: {

if !$window(@Queue) { .window -dDk0ouvw0 +tn @Queue 662 66 600 350 }
.aline @Queue $time $+(<,$nick,>) $1-
}


Heres what i want to add to it, this is what i coded from the examples.

Quote:
alias qwin {
/echo -
/echo 4ROCKmyJOCKz your queue window is now active
/echo Logging Submitted Requests ...
/echo -
}


Iv tried various ways of doing it but it voids the script useless. Also if "* activated" is sent to the chan how would i get it removed from my queue ?


Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
on *:text:!request activation*:#support: {
  if !$window(@Queue) {
    window -dDk0ouvw0 +tn @Queue 662 66 600 350
    echo -
    echo 4ROCKmyJOCKz your queue window is now active
    echo Logging Submitted Requests ...
    echo -
  }
  aline @Queue $time $+(<,$nick,>) $1-
}

on *:text:& activated*:#support: {
  if ($fline(@Queue,* $+(<,$1,>) *)) { rline @Queue $v1 }
}


I'm not entirely sure what you're doing with this, but here's an example.

Your alias is now inserted into the on TEXT event you had. Note that if you want it to echo that into the @Queue window when it's created, you should change echo to echo @Queue and that will make the echo appear in your custom window.

For the activated thing, it is set to handle something like:

nick activated. (with or without the period or other text following that)

If you want it to handle some other format, please be specific in what you are asking for. Any questions, just ask.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard