|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
somone that have any idea on how i easyest makes a alias for /ame? i have been trying to fix this a while now, but when i finaly get it to work, then somthing f*s up and make mIRC hang.. and if i get it to not hang, then it do the /ame in only one channel.. and it doing that for every channel i have open.. i dont paste my code here cos i dont think i made it right in any way.. somone that know where i can read about this? or where i can find somthing that point me in the right way :tongue:
The funktion i looking for is so a can get a echo from the /ame to every channel im on, then do the regular /ame, i fixed the /me.. but as i said im stuck on this one. :tongue:
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
alias ame { var %i 1 while (%i <= $chan(0)) { .describe $chan(%i) $1- echo $chan(%i) * $me $1- inc %i } }
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 417
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 417 |
You can trigger the ad by putting a timer on the msg like this set to play every 10 min .timerad1 0 300 ad1 [color:red]
alias ad1 {
amsg 9,1-={8 %ad1 9,1}=-
}[/color]
Intelligence: It's better to ask a stupid question, then to prove it by not asking....
|
|
|
|
Joined: Dec 2002
Posts: 124
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 124 |
ame { var %d = $chan(0),%e while (%d) { %e = %e $+ $+($iif(%e,$chr(44)),$chan(%d)) dec %d } .raw PRIVMSG %e $+(:,$1-) }
|
|
|
|
Joined: Dec 2002
Posts: 124
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 124 |
the above was /amsg ...here's /aME
ame { var %d = $chan(0),%e while (%d) { %e = %e $+ $+($iif(%e,$chr(44)),$chan(%d)) dec %d } .raw PRIVMSG %e :ACTION $1- }
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
That works ok.. but then when i look in my status you got this:
PRIVMSG Too many recipients. Only 1 processed
so that dont work so well after all :tongue:
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
pheonix code worked out just fine..you guys dont know any place where i can read about this feture, i dont just want to copy your code then "wow i made it".. i want to understand what the h*ll i using to i have been trying to find it in mirc.hlp, but i cant get a grip around it in that file, maybe its me that are a slow learner dunno, but thnx for the help..
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
alias ame { ;creates the alias /ame var %i 1 ;creates a variable called "%i" that will be unset at end of script. its value is set as 1 while (%i <= $chan(0)) { ;while the value of %i is less than all the channels i am in. .describe $chan(%i) $1- ;performs /me is channel %i echo $chan(%i) * $me $1- ;echos * <nick here> <message here> in channel %i inc %i ;increases the value of %i } }
new username: tidy_trax
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
Thnx, now i understand that part but i cant figure out how to get rid of: PRIVMSG Too many recipients. Only 1 processed <<-- in the status window cos it only send the ACTION in the active channel, the rest i see the echo in, but not the action in another client.. so that code only sending it to 1 channel, the rest is skiped.. any idea of how to fix that too? i added a line: if (%i == 1) .ame * $me $1- that send the action to every channel.. but the problem still there, even if it working. :tongue:
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
not a clue sorry, ive never had that error :tongue:
new username: tidy_trax
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
Try the code, then see if you get it too.. ?
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
that is what i use myself
new username: tidy_trax
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
Wierd, i have been trying it in my script, i also tryed it in a clean mIRC.. and i get the same error uhum.. i joined another server.. then it worked just fine.. u2.10.11.04+asuka(1.0.4) <<-- on that type of server it works just fine.. but on dancer-ircd-1.0.31+maint8 it dont.. hmm, can it have something to do how the ircd is configured? the last ircd is my own server.. but i cant see anything in the config that should make any diffrent on a /ame, wierd one there..
Last edited by sparta; 17/08/03 04:15 PM.
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
|