mIRC Home    About    Download    Register    News    Help

Print Thread
#244890 03/04/14 07:02 PM
Joined: Mar 2014
Posts: 18
D
DvD_cD Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Mar 2014
Posts: 18
1. Join command:

Code:
on *:JOIN:#: {
  msg $chan Greets, $nick
}


The problem is: The bot say "Greets," only to yourself...


2. VIP Chat only (ignore the non vip users msg)

Code:
on *:TEXT:*:#: {
  if (%vipmode == on) {
    if ($read(vip.txt,nw,$nick)) {
      Here I want the code where, if the user is in my file(vip.txt), to put him message.*
    } 
    else { 
    return }
  }
}




* The message must be from the user not from the bot!
Ex.:
< Susan type in the chat: > Hello.
< Susan is VIP >
< Nasus type in the chat: > Hi.
< Nasus is not VIP >
< The chat: >

Susan: Hello.

DvD_cD #244939 06/04/14 08:19 AM
Joined: Mar 2014
Posts: 18
D
DvD_cD Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Mar 2014
Posts: 18
Bump.
Please help me smirk

DvD_cD #244970 07/04/14 02:09 PM
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
First of all you have post in wrong place, the correct is on Scripts & Popups on this forum, second can you explain what exactly you want to do, i saw that you want when an VIP user (from the vip.txt file) joins into an channel to message the bot in the channel welcome VIP user, do you want any other to do the bot?


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #244976 07/04/14 07:12 PM
Joined: Mar 2014
Posts: 18
D
DvD_cD Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Mar 2014
Posts: 18
No. This is only. When vip joins, just Welcome "user".

DvD_cD #244992 08/04/14 11:07 AM
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Try this code, be sure that the vip.txt exist on mirc.exe folder and you have nicknames on the file.

Code:
ON !*:JOIN:#: {
  var %f = vip.txt
  if (!$isfile(%f)) { return }
  if (!$lines(%f)) { return }
  if ($read(%f,tnw,$nick)) { .timer[MSG-CHAN- $+ $nick $+ ] 1 3 msg_chan $chan $nick } 
}

alias msg_chan {
  if (!$1-) { return }
  if ($me !ison $1) { return }
  if ($2 !ison $1) { return }
  .msg $1 Welcome  $+ $2 $+ , - VIP Member!
}

Last edited by westor; 08/04/14 11:07 AM.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard