mIRC Home    About    Download    Register    News    Help

Topic Options
#42270 - 17/08/03 05:16 AM /ame
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
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,.) }

Top
#42271 - 17/08/03 05:23 AM Re: /ame
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
alias ame {
var %i 1
while (%i <= $chan(0)) {
.describe $chan(%i) $1-
echo $chan(%i) * $me $1-
inc %i
}
}
_________________________
new username: tidy_trax

Top
#42272 - 17/08/03 05:43 AM Re: /ame
Othello Offline
Fjord artisan

Registered: 09/12/02
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

Code:
  [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....

Top
#42273 - 17/08/03 10:15 AM Re: /ame
bloupx Offline
Vogon poet

Registered: 30/12/02
Posts: 124
ame {
var %d = $chan(0),%e
while (%d) {
%e = %e $+ $+($iif(%e,$chr(44)),$chan(%d))
dec %d
}
.raw PRIVMSG %e $+(:,$1-)
}

Top
#42274 - 17/08/03 10:18 AM Re: /ame
bloupx Offline
Vogon poet

Registered: 30/12/02
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-
}

Top
#42275 - 17/08/03 04:08 PM Re: /ame
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
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,.) }

Top
#42276 - 17/08/03 04:17 PM Re: /ame
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
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 grin 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.. smirk
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#42277 - 17/08/03 04:22 PM Re: /ame
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
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

Top
#42278 - 17/08/03 04:55 PM Re: /ame
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
Thnx, now i understand that part smile 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,.) }

Top
#42279 - 17/08/03 04:58 PM Re: /ame
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
not a clue sorry, ive never had that error :tongue:
_________________________
new username: tidy_trax

Top
#42280 - 17/08/03 04:59 PM Re: /ame
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
Try the code, then see if you get it too.. ? smirk
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#42281 - 17/08/03 05:00 PM Re: /ame
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
that is what i use myself grin
_________________________
new username: tidy_trax

Top
#42282 - 17/08/03 05:06 PM Re: /ame
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
Wierd, i have been trying it in my script, i also tryed it in a clean mIRC.. and i get the same error confused

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.. smirk


Edited by sparta (17/08/03 05:15 PM)
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top