mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2013
Posts: 15
P
Pikka bird
OP Offline
Pikka bird
P
Joined: Aug 2013
Posts: 15
hello,

i'm new here on the forums but i have done some scripting.

i need help with a welcome script. i've seen allot welcome scripts but i am looking for a script that uses a different floodprotection.

the one i use now is:
on 1:JOIN:#: {
if ($me isop $chan) {
if (($($+(%,flood.,$chan),2))) {
inc -u3 %flood. $+ $chan
unset %chan. $+ $chan
set %chan. $+ $chan $chan
msg $chan Hi $nick $+ , welcome to $right(%chan. $+ $chan,-1) $+ 's Channel.
}
}
}

i use this in multiple channels and want to keep using multiple channels..

i want it to be like when multiple people join in a sertain ammount of time (lets say 3 seconds) then the output will be

hi nick1,nick2,etc , welcome to blabla

if someone has a solution for this i would be very happy.
i've asked a friend of me but he also didnt know how to do it without stopping the bot from using any other command

Joined: Oct 2012
Posts: 164
D
Vogon poet
Offline
Vogon poet
D
Joined: Oct 2012
Posts: 164
Code:
on @*:JOIN:#:{
  ; ^ With the @ prefix, the event only triggers if you are op on the channel
  set -e $+(%,ajwelcome.,$cid,#) $addtok($($+(%,ajwelcome.,$cid,#),2),$nick,44)
  if (!$timer($+(.ajw.,$cid,#))) { $+(.timer.ajw.,$cid,#) 1 3 ajwelcome # }
}
alias -l ajwelcome {
  if ($($+(%,ajwelcome.,$cid,$1),2)) {
    msg $1 Hi $v1 $+ , welcome to $mid($1,2) $+ 's Channel.
    unset $+(%,ajwelcome.,$cid,$1)
  }
}

Joined: Aug 2013
Posts: 15
P
Pikka bird
OP Offline
Pikka bird
P
Joined: Aug 2013
Posts: 15
thankyou very much.. is there also a filter where the owner of the channel doesnt get welcomed .. i use it in twitch so the username is the same as the channel name

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
If you mean the bot's nick, just put a ! in the on TEXT event.

Code:
on !@*:JOIN:#:{


If you mean some other nick, just include an IF statement...

Code:
if ($nick != somenick) { do this }


Invision Support
#Invision on irc.irchighway.net
Joined: Oct 2012
Posts: 164
D
Vogon poet
Offline
Vogon poet
D
Joined: Oct 2012
Posts: 164
Originally Posted By: panda_jorstar
thankyou very much.. is there also a filter where the owner of the channel doesnt get welcomed .. i use it in twitch so the username is the same as the channel name

Assuming the channel is called #ownersname (with the #)
Code:
on @*:JOIN:#:{
  if ($nick == $mid(#,2)) { return }
  set -e $+(%,ajwelcome.,$cid,#) $addtok($($+(%,ajwelcome.,$cid,#),2),$nick,44)
  if (!$timer($+(.ajw.,$cid,#))) { $+(.timer.ajw.,$cid,#) 1 3 ajwelcome # }
}

Joined: Aug 2013
Posts: 15
P
Pikka bird
OP Offline
Pikka bird
P
Joined: Aug 2013
Posts: 15
thankyou very much, i never worked with aliasses.. soo i didnt really know where to add it. i always have huge codes XD


Link Copied to Clipboard