mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2005
Posts: 74
K
KidSol Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Mar 2005
Posts: 74
#greet on
on 1:JOIN:#:{ .notice $nick Hi there, welcome to $chan !! }
#greet end

This will greet people in a message. How can i make it like public? Eg <hello> $nick Hi There, we... to $chann!!



#op on
on @*:TEXT:!op *:#: { if (($nick == nick)) || (($nick == nick)) { //mode $chan +o $2 - }
ELSE { //notice $nick Sorry, you do not have access to this command }
#op end
#Voice on
on @*:TEXT:!v *:#: { if (($nick == nick)) || (($nick == nick)) { //mode $chan +v $2 - }
ELSE { //notice $nick Sorry, you do not have access to this command }
#voice end

#SOP on
on @*:TEXT:!sop *:#: { if (($nick == nick)) || (($nick == nick)) { //mode $chan +a $2 - }
ELSE { //notice $nick Sorry, you do not have access to this command }
#SOP end

#DEOP on
on @*:TEXT:!deop *:#: { if (($nick == nick)) || (($nick == nick)) { //mode $chan -o $2 - }
ELSE { //notice $nick Sorry, you do not have access to this command }
#DEOP end

#Devoice on
on @*:TEXT:!dev *:#: { if (($nick == nick)) || (($nick == nick)) { //mode $chan -v $2 - }
ELSE { //notice $nick Sorry, you do not have access to this command }
#Devoice end


I made some of this script
But it didn't really work
when i command like ! op nick
it'll do this

* Kid|Bot sets mode: +o Kid
* ChanServ sets mode: -o Kid
* Kid|Bot sets mode: +v Kid
* Kid|Bot sets mode: -v Kid

(in 3 seconds.)
I'm suppose to op someone but it also voice and devoice the nick

Can anyone help me to fix it? confused

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Quote:
#greet on
on 1:JOIN:#:{ .notice $nick Hi there, welcome to $chan !! }
#greet end

This will greet people in a message. How can i make it like public? Eg <hello> $nick Hi There, we... to $chann!!


on 1:JOIN:#:{ .msg $chan $nick Hi there, welcome to $chan !! }



Quote:

#op on
on @*:TEXT:!op *:#: { if (($nick == nick)) || (($nick == nick)) { //mode $chan +o $2 - }
ELSE { //notice $nick Sorry, you do not have access to this command }
#op end

Code:
#op on
on @*:TEXT:!op *:#: {
  if (($nick == nick) || ($nick == nick)) { mode $chan +o $2 - }
  else                                                  { notice $nick Sorry, you do not have access to this command }
}
#op end

^ repeat that formating for each of the mode types. (you had forgotten the close } at the end, also your IF was using unneeded ( ) sets, mine uses one optional set around all the conditionals

Quote:
* Kid|Bot sets mode: +o Kid
* ChanServ sets mode: -o Kid


Chanserv is deopping here you likely well still have this problem (maybe not tho)

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
One minor alteration mate.

Code:
on [color:red]![/color]1:JOIN:#:{ .msg $chan $nick Hi there, welcome to $chan !! }


Edit: Just noticed your . prefix to silence the command.

-Andy

Joined: Mar 2005
Posts: 74
K
KidSol Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Mar 2005
Posts: 74
on 1:JOIN:#:{ .msg $chan $nick Hi there, welcome to $chan !! }


I mean like i don't want it to greet in message.
I just want it to greet people normally like
<Kid>hi there, welcome .....

can i add in color to the color on the greet ?

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Do you mean message the user as they join?

On !*:Join:#: { msg $nick hi, there welcome... }

or...

On !*:Join:#: { msg $chan hi, there welcome... }

Colour:

On !*:Join:#: { msg $nick 04,01hi03, 12welcome08. 09. 11. }

On !*:Join:#: { msg $chan 04,01hi03, 12welcome08. 09. 11. }

-Andy

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
Quote:
on 1:JOIN:#:{ .msg $chan $nick Hi there, welcome to $chan !! }

I mean like i don't want it to greet in message.
I just want it to greet people normally like
<Kid>hi there, welcome .....


You are kidding right? The line of code above messages the channel with the message <You> nickname, hi there, welcome to channelname

I'll just make it just like you want:
on !1:JOIN:#:{ msg $chan Hi there, welcome ..... }

And replace the # with the actual name of the channel you own really fast, or you'd be kicked out of many channels for spamming. I can also tell what's going to happen when a netsplit is over and 15 nicks rejoin all at once.

Joined: Mar 2005
Posts: 74
K
KidSol Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Mar 2005
Posts: 74
Kelder
Not really because the:
on 1:JOIN:#:{ .msg $chan $nick Hi there, welcome to $chan !! }

script can only be seen by the ppl who join the channel
others in public will not see it beside my bot the and ppl who my script greet smile

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Rubbish anyone in the channel well see that.

Joined: Jan 2004
Posts: 509
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Quote:
Kelder
Not really because the:
on 1:JOIN:#:{ .msg $chan $nick Hi there, welcome to $chan !! }

script can only be seen by the ppl who join the channel
others in public will not see it beside my bot the and ppl who my script greet smile


How would you know? Did you assume or even test, or just guess as a fact?

Quote:
KidSol
#greet on
on 1:JOIN:#:{ .notice $nick Hi there, welcome to $chan !! }
#greet end



This will greet people in a message. How can i make it like public? Eg <hello> $nick Hi There, we... to $chann!!


Clearly a /notice $nick command sends it to the $nick directly, whereas a /msg $chan sends it to the entire channel. That isn't so much of a scripting question as it is IRCbasics. In anyevent, you can't use $chann or $chann!!. Try $chan $+ !

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Quote:

Clearly a /notice $nick command sends it to the $nick directly, whereas a /msg $chan sends it to the entire channel.


There's always /msg $nick too.

Quote:

In anyevent, you can't use $chann or $chann!!. Try $chan $+ !


Indeed, $chann isn't an identifier, creat a custom one.. grin

Code:
alias chann {
  return $+($chan,$str($chr(33),2))
}


Which'll return the #mIRC!!

-Andy

Joined: Jan 2004
Posts: 509
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Well...in that event, /msg $nick Welcome to my pm window!


Link Copied to Clipboard