mIRC Home    About    Download    Register    News    Help

Print Thread
#252811 13/05/15 12:05 AM
Joined: Jan 2015
Posts: 168
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Jan 2015
Posts: 168
The code pretty much explains it all. I want to make it so that if someone else types the command besides the specified nick it gives them a message.

Code:

on *:TEXT:hello:#: { 
  if ($nick == Coolkid661) {
    msg $chan Hello creator
    elseif ($nick != Coolkid661) {  
      msg # Hello welcome to the stream!  
    }
  }
}


Joined: Oct 2014
Posts: 49
Ameglian cow
Offline
Ameglian cow
Joined: Oct 2014
Posts: 49
It's your brackets, after your first msg line you haven't closed your }

Try this:
Code:
on *:text:hello:#: { 
  if ($nick == Coolkid661) { msg # Hello creator }
  elseif ($nick != Coolkid661) { msg # Hello welcome to the stream! }
}

Joined: Jan 2015
Posts: 168
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Jan 2015
Posts: 168
Thanks so much man. I figured that was the issue but I couldn't for the life of me figure out how to line them up properly. If possible can you help me with something else?


I am wanting to make it so that if a user has typed any of the commands below, it doesn't display the message for notifying them that the streamer is away as viewers that are currently in the chat don't really need to know this information, and then have it reset their user when away mode is restarted (turned off and then turned on again.) I have tried increasing the flood nick times but if they aren't flooding the command, it's still going to allow the message to show up.

Code:

on *:TEXT:!away:#: {
  if ((%floodaway) || ($($+(%,floodaway.,$nick),2))) { return }
  set -u10 %floodaway On
  set -u30 %floodaway. $+ $nick 
  if ($nick isop #) {
    set %away.mode On    
    msg $chan Away mode activated, new users will be alerted that the streamer is away
  }
}
on *:TEXT:hello *:#: {
  if (!%away.mode) return
  if ((%floodhello_*) || ($($+(%,floodhello_*.,$nick),2))) { return }
  set -u10 %floodhello_* On
  set -u3600 %floodhello_*. $+ $nick 
  msg $chan $nick $remove(#,$chr(35)) is away, and will be back shortly  
}
on *:TEXT:sup *:#: {
  if (!%away.mode) return
  if ((%floodsup_*) || ($($+(%,floodsup_*.,$nick),2))) { return }
  set -u10 %floodsup_* On
  set -u3600 %floodsup_*. $+ $nick 
  msg $chan $nick $remove(#,$chr(35)) is away, and will be back shortly  
}
on *:TEXT:hi *:#: {
  if (!%away.mode) return
  if ((%floodhi_*) || ($($+(%,floodhi_*.,$nick),2))) { return }
  set -u10 %floodhi_* On
  set -u3600 %floodhi_*. $+ $nick 
  msg $chan $nick $remove(#,$chr(35)) is away, and will be back shortly  
}

on *:TEXT:hey *:#: {
  if (!%away.mode) return
  if ((%floodhey_*) || ($($+(%,floodhey_*.,$nick),2))) { return }
  set -u10 %floodhey_* On
  set -u3600 %floodhey_*. $+ $nick 
  msg $chan $nick $remove(#,$chr(35)) is away, and will be back shortly  
}

on *:TEXT:yo *:#: {
  if (!%away.mode) return
  if ((%floodyo_*) || ($($+(%,floodyo_*.,$nick),2))) { return }
  set -u10 %floodyo_* On
  set -u3600 %floodyo_*. $+ $nick 
  msg $chan $nick $remove(#,$chr(35)) is away, and will be back shortly  
}
on *:TEXT:!awayoff:#: {
  if ((%floodawayoff) || ($($+(%,floodawayoff.,$nick),2))) { return }
  set -u10 %floodawayoff On
  set -u30 %floodawayoff. $+ $nick 
  if ($nick isop #) {
    unset %away.mode    
    msg $chan The streamer is back! Enjoy the show. :) 

  }
}


Last edited by powerade661; 13/05/15 12:28 AM.
Joined: Oct 2014
Posts: 49
Ameglian cow
Offline
Ameglian cow
Joined: Oct 2014
Posts: 49

Last edited by JB_uk; 13/05/15 12:37 AM.

Link Copied to Clipboard