mIRC Home    About    Download    Register    News    Help

Print Thread
Away script isn't working correctly #251471 19/02/15 06:19 PM
Joined: Jan 2015
Posts: 168
P
powerade661 Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Jan 2015
Posts: 168
Recently someone helped me with this script but it doesn't work as it should. Basically if I type in !away it ignores if they have typed in the chat but if they join it calls out their name. Is there anyway to only allow it to call out if they say hello or anything else in the chat instead of calling out their name when they join?


Code:
on *:TEXT:!away:#: {
  if ($nick isop #) {
    set %away.mode On    
    msg $chan Away mode activated, new users will be alerted that the streamer is away
  }
}
on !*:JOIN:#: {
  if (!%away.mode) return
  if ((%floodjoin) || ($($+(%,floodjoin.,$nick),2))) { return }
  set -u10 %floodjoin On
  set -u30 %floodjoin. $+ $nick 
  msg $chan $nick $remove(#,$chr(35)) is away, and will be back shortly  
}
on *:TEXT:!awayoff:#: {
  if ($nick isop #) {
    unset %away.mode    
    msg $chan The streamer is back! Enjoy the show. :) 

  }
}


Last edited by powerade661; 19/02/15 06:21 PM.
Re: Away script isn't working correctly [Re: powerade661] #251474 19/02/15 08:13 PM
Joined: Mar 2014
Posts: 215
J
judge2020 Offline
Fjord artisan
Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
change
Code:
on !*:JOIN:#: {
to
Code:
on *:text:*hello*:#: {
and of course you can change hello to whatever you want


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Re: Away script isn't working correctly [Re: judge2020] #251476 19/02/15 11:13 PM
Joined: Jan 2015
Posts: 168
P
powerade661 Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Jan 2015
Posts: 168
Thank you so much Judge smile