mIRC Home    About    Download    Register    News    Help

Print Thread
#42270 17/08/03 04:16 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
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,.) }
#42271 17/08/03 04:23 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
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
#42272 17/08/03 04:43 AM
Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
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

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....
#42273 17/08/03 09:15 AM
Joined: Dec 2002
Posts: 124
B
Vogon poet
Offline
Vogon poet
B
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-)
}

#42274 17/08/03 09:18 AM
Joined: Dec 2002
Posts: 124
B
Vogon poet
Offline
Vogon poet
B
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-
}

#42275 17/08/03 03:08 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 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,.) }
#42276 17/08/03 03: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
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,.) }
#42277 17/08/03 03:22 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
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
#42278 17/08/03 03:55 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
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,.) }
#42279 17/08/03 03:58 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
not a clue sorry, ive never had that error :tongue:


new username: tidy_trax
#42280 17/08/03 03:59 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
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,.) }
#42281 17/08/03 04:00 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
that is what i use myself grin


new username: tidy_trax
#42282 17/08/03 04:06 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
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 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

Last edited by sparta; 17/08/03 04:15 PM.

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

Link Copied to Clipboard