mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2014
Posts: 12
T
tristan Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Feb 2014
Posts: 12
hey im new to this and ive created a channel, have a bot an ops. and ive successfully got lot of the scripting done and working. but ive been looking online everywhere for how to do one thing.
i want to have all users come in with a lower case nick be given +v (voice) but not those with an Uppercase first letter in name. also if they change nick from capped to not capped etc the +v sign will be removed or added. does anyone know how to do this? i would be really grateful for any help. tristan

Joined: Feb 2014
Posts: 12
T
tristan Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Feb 2014
Posts: 12
i was also wondering if any knows how to allow users to create a description for themselves. ive noticed in other channels they can type !desc (insert description) and its saved for them for when they rejoin an posts to the room. again id be very grateful and thank you for looking at my post. tristan

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Code:
on @*:join:#:{
  if ($nick islower) mode # +v $nick
  if ($readini(descriptions.ini,n,#,$nick)) msg # $v1
}

on *:nick:{
  if ($me !isop #chan) || ($newnick !ison #chan) { return }
  
  if ($newnick isvoice #chan) && ($newnick !islower) { mode #chan -v $newnick }
  elseif ($newnick !isvoice #chan) && ($newnick islower) { mode #chan +v $newnick }
}

on @*:text:!desc *:#:{
  writeini descriptions.ini # $nick $2-
}

Joined: Feb 2014
Posts: 12
T
tristan Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Feb 2014
Posts: 12
thank you your help!
ive added it but it doesnt seem to work. im not sure what im doing wrong.tristan

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Make sure you're op and that no other events are interfering with these (by placing them in their own file).

Joined: Feb 2014
Posts: 12
T
tristan Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Feb 2014
Posts: 12
thanks! i finally got the + bit working! its awesome! so much better!

i cant seem to get the !desc working though
ive added it like this

on @*:text:!desc *:#tristansroom:{
writeini descriptions.ini #tristansroom $nick $2-
}

is that right or have i done it wrong? or maybe im using the command wrong.. ive been typing

!desc (nick) (description)

thanks for any help. realllly appreciated. tristan


Link Copied to Clipboard