mIRC Home    About    Download    Register    News    Help

Print Thread
#42068 15/08/03 04:04 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
anywhere i can read about "signals".. mirc.hlp dont give much :tongue:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#42069 15/08/03 04:10 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
signals are easy:

alias test {
.signal test hello person
}
on *:SIGNAL:test:{
echo -a $signal - $1-
}
this should echo "test - hello person"


new username: tidy_trax
#42070 15/08/03 04:17 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I trying to figure out how i can halt the text when i do /channel .. i dont want to see that

* Retrieving # info...

i want to use haltdef on that, but so far i only can hide it with colors on "info2 text" :tongue:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#42071 15/08/03 04:21 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
dunno soz


new username: tidy_trax
#42072 15/08/03 06:08 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Add this alias..
Code:
alias channel {
  if ($active ischan) { .echo $target * Retrieving # info... | channel }
  else { echo You are not on a channel }
}

#42073 15/08/03 07:19 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I buy you a beer if that works laugh the only thing missing in my channel theme, i test it tomorow :tongue:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#42074 15/08/03 07:22 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Seems I missed the halt bit, sorry..
Code:
alias channel {
  if ($active ischan) { .echo $target * Retrieving # info... | channel | halt }
  else { echo You are not on a channel }
}

I have no idea why I forgot to paste that bit. :s

#42075 15/08/03 07:23 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
haltdef plz grin smirk


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#42076 15/08/03 07:31 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
No point using /haltdef, /halt works fine.

#42077 15/08/03 07:52 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I have other functions that also will work with that event crazy :tongue:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#42078 15/08/03 08:12 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
* Retrieving #temp info... <<-- the echo
* Retrieving #temp info...

i cant make it to HALT or do a HALTDEF frown


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#42079 15/08/03 11:33 PM
Joined: May 2003
Posts: 215
Fjord artisan
Offline
Fjord artisan
Joined: May 2003
Posts: 215
As far as I know, haltdef doesn't have any affect on aliases. It's better to use return if you want to halt an alias without completely halting the script


- Jason
#42080 15/08/03 11:35 PM
Joined: May 2003
Posts: 215
Fjord artisan
Offline
Fjord artisan
Joined: May 2003
Posts: 215
Prefix the /channel command with a . to hide the * Retrieving #channel info...


- Jason
#42081 16/08/03 02:13 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
That worked just fine.. Thnx for the help ! smirk


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard