mIRC Home    About    Download    Register    News    Help

Print Thread
#84563 29/05/04 11:42 PM
Joined: May 2004
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
Ok well I am haveing trouble I am trying to make it where it will say hello to certian people and this is what I have.


on 1:join:#: { if (( $nick == A-cow )) { msg $chan [A cow] Well well look who has joined us! } }

on 1:join:#: { if (( $nick == skaiba )) { msg $chan [Kuriboh] Yay my kuriboh brother !Woot* ^.^ } }

But the second one right there won't work just the top one and when I set the number only the second one works , what do I do!! confused confused

Last edited by Scriptor; 29/05/04 11:43 PM.

Do the monkey!
#84564 29/05/04 11:47 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
That's because you cant have more than 1 on TEXT events in the same file.. try this:
Code:
on 1:join:#: { 
  if ($nick == A-cow) { msg $chan [A cow] Well well look who has joined us! } 
  elseif ($nick == skaiba) { msg $chan [Kuriboh] Yay my kuriboh brother !Woot* ^.^ } 
  elseif ($nick == John01) { msg $chan Hello, John01! }
 .
 .
}
And so on.. you can add as manu elseif's as you want!

Hope it helps smile
Zyzzy.


"All we are saying is give peace a chance" -- John Lennon
#84565 29/05/04 11:51 PM
Joined: May 2004
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
Thanks , awsome and I don't have to put on>?


Do the monkey!
#84566 30/05/04 12:02 AM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Nope..should work this way smile

Good luck!

Zyzzy


"All we are saying is give peace a chance" -- John Lennon
#84567 30/05/04 12:04 AM
Joined: May 2004
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
So i dont have to put on or anything , but it's still confusing me becaus its not working.


Do the monkey!
#84568 30/05/04 12:26 AM
Joined: May 2004
Posts: 132
N
Vogon poet
Offline
Vogon poet
N
Joined: May 2004
Posts: 132
Try this then


on *:join:#: { if ($nick == A-cow) { /msg $chan [A cow] Well well look who has joined us! }
elseif ($nick == skaiba) { /msg $chan [Kuriboh] Yay my kuriboh brother !Woot* ^.^ }
elseif ($nick == John01) { /msg $chan Hello, John01!
}
}




if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX
#84569 30/05/04 12:48 AM
Joined: May 2004
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
Ok tell me whats wrong its not working O.o


on *:join:#: { if ($nick == Gemini-Ty) { /msg $chan [GT] Ah my favorite person in the room had joined us! ^.^ } } }
elseif ($nick == skaiba) { /msg $chan [Kuriboh] Yay my
kuriboh brother !Woot* ^.^ } }
elseif ($nick == Saydin) { /msg $chan [Saydin} Hello, Seto-K!} }


Do the monkey!
#84570 30/05/04 01:11 AM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
You are using the { and } in the wrong places.

on *:JOIN:#: {
if ($nick == nickname) { command }
elseif ($nick == nick2) { command }
elseif ($nick == John) {
command1
command2
}
}

Every bracket you open " { " you have to close it " } " - Note also that there is a Even numbers of brackets.. half open { and half closed }

It also helps to detect that thing by putting each IF statment in a line. This way it looks more tidy, so its easier to look for bugs.

Hmm.. that explanation isnt very good.. tell me if you still haev problems.

Zyzzy.


"All we are saying is give peace a chance" -- John Lennon
#84571 30/05/04 01:30 AM
Joined: May 2004
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
Ok until I get this , so like this?

on *:JOIN:#: {
if ($nick == Gemini-Ty) { [GT] Heya look my favorite person has joined us ^.^! }
elseif ($nick == Skaiba) { [Kuriboh] Woot my brother has joined the chat! ^.^ }
elseif ($nick == Saydin) { hey look it's Seto-K
command1
command2
}
}


Do the monkey!
#84572 30/05/04 01:36 AM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
elseif ($nick == Saydin) { hey look it's Seto-K
command1
command2
}

This part works if you want to do more than 1 command when that person joins... for example:

elseif ($nick == Saydin) { msg # hey look it's Seto-K
mode # +v $nick
msg # You are a voice!
}

Remember that, even if the commands are the same, you need to specify them!

Hope it helps wink

Zyzzy.


"All we are saying is give peace a chance" -- John Lennon
#84573 30/05/04 01:52 AM
Joined: May 2004
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
Ok I ams tpuid and new to MIRC I just want it to say Hi to people not voce them because I amnot a OP

So can you type it for me too shoe m e how it;s done?


This is what I have
on *:JOIN:#: {
if ($nick == Gemini-Ty) { [GT] Heya look my favorite person has joined us ^.^! }
elseif ($nick == Skaiba) { [Kuriboh] Woot my brother has joined the chat! ^.^ }
elseif elseif ($nick == Saydin) { msg # hey look it's Seto-K


Can you re type it for me the right way? So I can just stick it in there and it will work but also see the changes that you made.


Do the monkey!
#84574 30/05/04 01:58 AM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Dont worry, you get the hang of it in a second wink

Code:
on *:JOIN:#: {
if ($nick == Gemini-Ty) { [color:red]msg #[/color] [GT] Heya look my favorite person has joined us ^.^! }
elseif ($nick == Skaiba) { [color:red]msg #[/color] [Kuriboh] Woot my brother has joined the chat! ^.^ }
elseif ($nick == Saydin) { [color:red]msg #[/color] hey look it's Seto-K }
}
This should work smile [mind the red parts]

Zyzzy wink


"All we are saying is give peace a chance" -- John Lennon
#84575 30/05/04 02:10 AM
Joined: May 2004
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
mind??> I will get this eventually !! Ok I have this


on *:JOIN:#: {if ($nick == Gemini-Ty) { msg # [GT] Heya look my favorite person has joined us ^.^! }
elseif ($nick == Skaiba) { msg # [Kuriboh] Woot my brother has joined the chat! ^.^ }
elseif ($nick == Saydin) { msg # hey look it's Seto-K }}


What do you mena by mind>


Do the monkey!
#84576 30/05/04 02:19 AM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
By mind i mean dont forget to put it, or else it wont work wink

you have to put that in every nick you add to the Hello script.

Zyzzy. smile


"All we are saying is give peace a chance" -- John Lennon
#84577 30/05/04 02:25 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
You have to make it look exactly like Zyzzyx26 posted including the spacings.
This is wrong on *:JOIN:#: [color:red]{if ($[/color]
and so is this ook it's Seto-K [color:red]}}[/color]

on *:JOIN:#: {
  • if ($nick == Gemini-Ty) { msg # [GT] Heya look my favorite person has joined us ^.^! }
    elseif ($nick == Skaiba) { msg # [Kuriboh] Woot my brother has joined the chat! ^.^ }
    elseif ($nick == Saydin) { msg # hey look it's Seto-K }
}

#84578 30/05/04 02:31 AM
Joined: May 2004
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
I love you guys it works now thank you!


Do the monkey!
#84579 30/05/04 02:55 AM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Glad to help smile


"All we are saying is give peace a chance" -- John Lennon

Link Copied to Clipboard