mIRC Homepage
Posted By: sparta /ame - 17/08/03 04:16 AM
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:
Posted By: pheonix Re: /ame - 17/08/03 04:23 AM
alias ame {
var %i 1
while (%i <= $chan(0)) {
.describe $chan(%i) $1-
echo $chan(%i) * $me $1-
inc %i
}
}
Posted By: Othello Re: /ame - 17/08/03 04:43 AM

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]  
Posted By: bloupx Re: /ame - 17/08/03 09:15 AM
ame {
var %d = $chan(0),%e
while (%d) {
%e = %e $+ $+($iif(%e,$chr(44)),$chan(%d))
dec %d
}
.raw PRIVMSG %e $+(:,$1-)
}
Posted By: bloupx Re: /ame - 17/08/03 09:18 AM
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-
}
Posted By: sparta Re: /ame - 17/08/03 03:08 PM
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:
Posted By: sparta Re: /ame - 17/08/03 03:17 PM
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
Posted By: pheonix Re: /ame - 17/08/03 03:22 PM
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
}
}
Posted By: sparta Re: /ame - 17/08/03 03:55 PM
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:
Posted By: pheonix Re: /ame - 17/08/03 03:58 PM
not a clue sorry, ive never had that error :tongue:
Posted By: sparta Re: /ame - 17/08/03 03:59 PM
Try the code, then see if you get it too.. ? smirk
Posted By: pheonix Re: /ame - 17/08/03 04:00 PM
that is what i use myself grin
Posted By: sparta Re: /ame - 17/08/03 04:06 PM
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
© mIRC Discussion Forums