Skip to content
General IRCX

Needs Codes

A TG007 community discussion started by general.

Closed discussion 14 posts
Page 1 of 1
Closed
Topic #8715 · 14 published posts · 3,990 views

#aoq on
on *:JOIN:#: {
  if ($nick != $me) {
    .echo -a $dc($nick) address is *!* $+ $$ial($nick $+ *,1).addr 
  }
  else {
    /mode $me +h myownerpass
  }
}
#aoq end

 

I own a room and above mentioned code i use for onjoin owner my script if access ic cleared but room pass is same ...so script ONJOIN will apply ownerpass and make itself owner....

 

The following codes im using for adding auto access by script when it become OWNER

but these codes do not works ...it does not add itself owner or voice ...

I want help if these codes are not correct then tell me correct codes ...

 

 

#auto on
on *:owner:*:{ 
  if ($opnick == $me) {  
    access $chan delete host $address($me,1) 0 : Remix Gold
    access $chan add owner $address($me,1) 0 : Remix Gold
    access $chan add owner $address($me,6) 0 : Remix Gold
    access $chan add voice $address($me,6) 0 : Remix Gold
    access $chan add GRANT $address($me,6) 0 : Remix Gold

  }
}
#auto end

Edited Jul 21, 2007 8:54 PM by X-Fusion Added [code] tags

Code works for me.

ac.all {
  var %x $chan(0), %c, %a 0
  while %x {
    %c = $chan(%x)
    if ($me isowner %c) { access %c add owner $ial($me).addr 0 :access +q add | inc %a }
    elseif ($me isop %c) { access %c add host $ial($me).addr 0 :access +o add | inc %a }
    dec %x
  }
  echo -a $timestamp *** Adding access to %a of $chan(0) channels.
}



on ^*:join:#: { 
ac.all
)

 

this may or maynot work for you

it worked in msn befor they closed

what it would do isa each time you join a room

and your ownered or hosted it will auto set you to access +q or +o depanding on what op you have

Edited Jul 21, 2007 5:53 PM by pony

PONY

maybe more people would help you if you didnt just post "need codes"

and used some mannors

My code does NOT have bugs. It just develops random features.

Ozzy i was thinking the same , but then i thout maybe just not good enlish

PONY

Yeah, your basically telling us to give you codes, and not really explaining what you want. Plus, according to your other posts, it looks like crap other people sent you, which is why it doesnt work. That, or you ripped it out of other scripts and it wont work in yours.

/mode $me +h myownerpass

 

if ($opnick == $me) {

access $chan delete host $address($me,1) 0 : Remix Gold

access $chan add owner $address($me,1) 0 : Remix Gold

access $chan add owner $address($me,6) 0 : Remix Gold

access $chan add voice $address($me,6) 0 : Remix Gold

access $chan add GRANT $address($me,6) 0 : Remix Gold

 

:blink:

 

Are these even valid code source?

Remix Gold....

$opnick

myownerpass

 

Where's the trout? :fish:

 

 

<wo0t> I tested the code he posted and it worked. I dont understand. :pizza:

:shock:

I think we may all need to change the way we script.

 

I am going to try:

on *:MYTYPOES:#:
if ($1- isin The Dictionary) $replace mytext with $correcttext
else (use Spanish)
}

 

LOL

:blink:

 

Are these even valid code source?

Remix Gold....

$opnick

myownerpass

 

Yes they are. myownerpass is most likely an alias he wrote to return the owner password.

 

From mIRC Help: $opnick refers to the nickname of the person being opped/deopped.

 

Remix Gold is the note he attached to the access entry.

 

/access $chan add owner <mask> <length> :Note

on me:JOIN:#: { mode $me +h myownerpass }

on *:owner:#:{ 
  if ($opnick == $me) {
   .raw -q access # delete host $ial($me).addr $crlf access # add owner $ial($me).addr
   }
}

on me:*:join:#:hop #

Thanx for ur reply ......

but u are too late ...everything had been fixed .......

well at least now you know you could use on me:JOIN:#: { } to trigger the code only when you join

on me:*:join:#:hop #

well at least now you know you could use on me:JOIN:#: { } to trigger the code only when you join

 

No you can't. "me:" is an event prefix (much like !, & and ^), not a user level, so you would have to use this:

 

on me:*:join:#:{  }

 

However, he wanted to do something when he joined, but something else when somebody else joined, so his own code was perfectly fine for that purpose.