mIRC Homepage
Posted By: jacksparrow2 help on this - 07/04/05 10:05 PM
on 1:join:#: {
if ( $me isop $$1 ) { echo -a PUTONES MOÑA }
}

i made this , and doesnt work any help please
Posted By: SladeKraven Re: help on this - 07/04/05 10:08 PM
It'd have to be if ( $me isop $chan ) { echo -a PUTONES MOÑA }

However we can remove that IF statement by adding a @ prefix.

Code:
On [color:red]@[/color]*:Join:#: {
  echo -a PUTONES MOÑA
}



Hope this helps.

-Andy
Posted By: jacksparrow2 Re: help on this - 07/04/05 10:50 PM
doesnt work pal
Posted By: raZOR Re: help on this - 07/04/05 11:08 PM
on 1:join:#: {
.timerop 1 3 .opcheck
}

alias opcheck {
if ($me isop $chan) goto echo
:echo
.echo -a PUTONES MONA
}


maybe un-optimised code but it works laugh
Posted By: SladeKraven Re: help on this - 07/04/05 11:11 PM
It works for me.

-
PUTONES MOÑA
-

/!remote on
Posted By: Kelder Re: help on this - 08/04/05 10:02 AM
no it doesn't
quote from lots of books: goto is evil.

It will always .echo -a PUTONES MONA and that's not what the OP wanted...

Here's something that works...
Notice that the echo will be in the actual channel window you joined, and not one that happens to be active at the time.
Replace the blue 3 in the code below with the time you think it takes for someone to op you, it is also the delay you get before the message is activated...

Code:
on 1:join:#: {
  .timer $+ $chan 1 [color:blue]3[/color] .opcheck $chan
}

alias opcheck {
  if ($me isop $$1) {
    .echo $1 PUTONES MONA
  }
}
Posted By: DaveC Re: help on this - 08/04/05 11:43 AM
It hardly deserves an alias tho.

on 1:join:#:.timer $+ $chan 1 3 if ( $!me isop $chan ) .echo $chan PUTONES MONA

PS to anyone, whats "PUTONES MONA" mean?
Posted By: Kelder Re: help on this - 08/04/05 09:01 PM
I figured it was some type of placeholder for actual code, so that's why I kept the separate alias. I also kept it because I wasn't awake enough to think about putting the if in the timer crazy
Posted By: DaveC Re: help on this - 09/04/05 12:50 AM
Aghhhh very good point about it being a place holder, the foreign (to me) language put me off, i thought he really did just want to say that for some reason.
© mIRC Discussion Forums