mIRC Home    About    Download    Register    News    Help

Print Thread
#74188 07/03/04 02:21 AM
Joined: Mar 2004
Posts: 8
R
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Mar 2004
Posts: 8
Ok, I know it has got to be simple, but I'm just starting/learning.

I run an info/help bot in a Game chan. Unfortunately, this server does not have a nickserv. The Bot announces everyone who joins the chan. I want the bot to warn the chan ONLY if someone signs on with the nick [NuB2]Deadmeat, and his IP does not match either 123.456.789.1 or 123.456.789.2. I know my code below does not fully reflect this (and some of it does not work), as I was playing with it to learn. But can someone help point me in the right direction, so that when [NuB2]Deadmeat uses another nick, that it greets him like any other user, but still warns when someone else trys to use his nick?

code
____________________________________________
on 1:join:#Rookie_Area: { if (($nick != $me)) {
if (($address == [email]user@123.456.789.1))[/email] {
.msg $chan All hail the CHIEF! $nick has arrived! | .msg $nick This User ID is Verified | halt }
if (($address == [email]user@123.456.789.2))[/email] {
/msg $chan All hail the CHIEF! $nick has arrived! | .msg $nick This User ID is Verified | halt }
else if ($nick = [NuB2]Deadmeat) { .msg $chan $nick has joined, but is a possible Imposter | halt }
if ($nick = [NuB2]Deadmeat) { .msg $nick your User ID was not Verified, notice sent to channel | halt }
{ .msg $chan $nick has just joined chat. }
}
}
_____________________________________________
RC

#74189 07/03/04 03:43 AM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Despite the mess, I think this will work:

Code:
on @*:join:#Rookie_Area: { if (($nick != $me)) { 
    if (($address == user@123.456.789.1)) { 
      .msg $chan All hail the CHIEF! $nick has arrived! | 
    .msg $nick This User ID is Verified | halt }     
    if (($address == user@123.456.789.2)) { 
      .msg $chan All hail the CHIEF! $nick has arrived! | 
    .msg $nick This User ID is Verified | halt } 
    else if (($address != User@123.456.789.1)) && (($address != user@123.456.789.2)) && (($nick == [NuB2]Deadmeat)) {
      .msg $chan The chiefton has entered, but it may be an imposter! | 
      .msg $nick This user@ID is not recognized.
    }
  }  
}


Copy and paste into Microsoft Word and then into mIRC's script editor, otherwise it will all come out on one line. Also make sure you put it into a separate remote file - File > New. I put it on more lines than necessary so that it wouldn't elongate the Forum too much. Bear in mind this was done at 3.45am :tongue:

Regards,


Mentality/Chris
#74190 07/03/04 05:11 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
A bit less messy smile
Code:
on !*:join:#Rookie_Area:{
  if ($address == user@123.456.789.1) || ($address == user@123.456.789.2) { 
    msg $chan All hail the CHIEF! $nick has arrived!
    .msg $nick This User ID is Verified
  }
  elseif ($nick = [NuB2]Deadmeat) {
    msg $chan $nick has joined, but is a possible Imposter
    .msg $nick your User ID was not Verified, notice sent to channel
  }
  else .msg $chan $nick has just joined chat.
}

#74191 09/03/04 04:58 AM
Joined: Mar 2004
Posts: 8
R
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Mar 2004
Posts: 8
I think this is a bit of a combination of the two, but I got it to work! Thx guys!

on !*:join:#Rookie_Area:{
if (($address == [email]user@12.34.56.78)[/email] || ($address == [email]user@12.34.56.79))[/email] && ($nick == [NuB2]Deadmeat) {
msg $chan All hail the Chief! $nick has arrived!
msg $nick This User ID is Verified
}
elseif ($nick == [NuB2]Deadmeat) {
msg $chan $nick has joined, but is a possible Imposter
msg $nick your User ID was not Verified, notice sent to channel
}
else .msg $chan $nick has just joined chat.
}

Oh, only the msg $nick 's dont work, but they are not required. :-)

#74192 09/03/04 06:21 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
I don't see why "/msg $nick" commands wouldn't be working. Do you still have the .period in front of them (.msg $nick .. )? If so then they probably are being sent and you're not seeing them.


Link Copied to Clipboard