mIRC Homepage
Posted By: powerade661 What am I doing wrong? - 13/05/15 12:05 AM
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!  
    }
  }
}

Posted By: JB_uk Re: What am I doing wrong? - 13/05/15 12:17 AM
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! }
}
Posted By: powerade661 Re: What am I doing wrong? - 13/05/15 12:26 AM
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. :) 

  }
}

Posted By: JB_uk Re: What am I doing wrong? - 13/05/15 12:36 AM
Please see your relevant thread.
https://forums.mirc.com/ubbthreads.php/topics/252799/I_can't_figure_out_how_to_do_t#Post252799
© mIRC Discussion Forums