Username:
Password:
  Home About Us Articles Rules Script Library FAQ Help
Not logged in (register
describe in channel for mIRC

Last Modified: Oct 05 6:16pm (r2)

This very basic script is for people who want to know who the diffrent people in the channel is (if it's written comment about the diffrent people in the script)
tell who is in that and that kd.


didn't plan to share this, but a friend asked for it, so why not)

gives the msg in a notice, this is to prevent flooding in the channel.

still, not a pro script, but it's changed it quite a lot after comments and other stuff.

still a bit to easy to flood the user out tho.

r3: added a "}" after Paulys tip
on *:TEXT:!trigger:#channel {
  var %x = 1
  while (%x <= $lines(info.txt)) {
    notice $nick $read(info.txt,n,%x)
    inc %x
  }
}
on *:TEXT:!trigger*:#channel {
  /notice $nick $read(info.txt, s, $+($2,:))
}

on *:TEXT:!addme*:#channel:{
  /write -ds $+($nick,:) info.txt
  /write -a info.txt  $+($nick,:) $$2- 
  /notice $nick Added your nick with the text: $+($nick,:) $$2-
}
on *:TEXT:!removeme:#channel:{ 
  /write -ds $+($nick,:) info.txt
  /notice $nick $+($nick,:) is removed from the list
}
on *:TEXT:!triggerhelp:#:{
  .notice $nick !trigger to see all the members, floodprotection could stop it.
  .notice $nick To get the info for a special user write !trigger "nick
  .notice $nick to add yourself to the list write !addme and the text you want to have (remember to use the nick you normally use when you do this).
  .notice $nick to remove yourself from the list write !removeme
}

Comments
Elly
Jun 22 12:54pm
erm?

You could use a loop to read the data from a file (that way you don't need to edit the code to add new people).

Eg:

on *:TEXT:!trigger:#: {
var %x = 1
while (%x <= $lines(triginfo.txt)) {
notice $nick $read(triginfo.txt,n,%x)
inc %x
}
}

^^ My two cents.
Master Healexarn
Jul 18 3:46pm
I have very little good things to say about this, so I'll keep it short. First off, just ignore the original code. Elly's revision works much better. However, /notice'ing doesn't make it safe just because it's /notice'ing. That can still flood the server if there's too much data being sent which may get you a nice server ban.

Beyond the actual code, this script is horrible for its general purpose. There are much better ways to transfer this kind of information. For examples. websites are highly available, free, easy to access, and easy to create these days.

Master Healexarn's Evaluation:
Don't use this script, or anything such as it to transfer logs of data.
Pauly
Oct 02 1:27am
"on *:TEXT:!triggerhelp:#:{
.notice $nick !trigger to see all the members, floodprotection could stop it.
.notice $nick To get the info for a special user write !trigger "nick
.notice $nick to add yourself to the list write !addme and the text you want to have (remember to use the nick you normally use when you do this).
.notice $nick to remove yourself from the list write !removeme"



Need a closing bracket there:P


As for MH's evaluation, Websites are harder to access and is easier to just have everything on IRC. IRC is where the core for a kingdom should be located, most all information should be aviable on IRC as well.


Keep up the good work:P
Fradam
Oct 12 6:41pm
I've found using sockets to be a highly effective method of linking the two. It's not for the faint hearted, but allows you to store the data on a website linked in with your databases there, and accessible on IRC :)

Best of both worlds!
 
All content Copyright © 2004 - 2008 UtoNet IRC Network
UtoNet is sponsored and hosted by Datinix Systems