Hello peeps,
I was wondering if I could like set up my mIRC with scripts etc, without having any computers on. Something like running it on my router or something. Or do I need a server for that...
Having my computer on all the time can get a little bothering sometime (I'm using Windows 7 on that computer if that makes any difference.).
I'd be glad to hear your solutions!
Greetings,
Farcrada
on 3:text:!ban*:?: {
/raw ban $2 (Lama : $3 ) ( Alasan : $4 ) ( Tgl: $date(dd/mm/yy)) ( From OP: $nick )
/raw lockacct $2
/raw kill $2
/msg $nick ID Telah Di banned
/writeini mIRC\\data\\lockunlock.txt ID: $2 Status: Banned Tgl: $date(dd/mm/yy) From Operator: $nick Keterangan: ID Anda telah diBan (Alasan : $3 ) ( Lama : $4 )
}
on 3:text:!unban*:?: {
/raw unban $2
/raw unlockacct $2
/writeini mIRC\\data\\lockunlock.txt ID: $2 Status: Unbaned Tgl: $date(dd/mm/yy) From Operator: $nick Keterangan: Masa Ban Sudah Lewat (Alasan : $3 )
/msg $nick ID Telah Di Unbaned
}
on 4:text:!ban*:?: {
/raw ban $2 (Lama : $3 ) ( Alasan : $4 ) ( Tgl: $date(dd/mm/yy)) ( From Admin: $nick )
/raw lockacct $2
/raw kill $2
/msg $nick ID Telah Di banned
/writeini -n mIRC\\data\\lockunlock.txt ID: $2 Status: Banned Tgl: $date(dd/mm/yy) From Admin: $nick Keterangan: ID Anda telah diBan (Alasan : $3 ) ( Lama : $4 )
}
on 4:text:!unban*:?: {
/raw unban $2
/raw unlockacct $2
/writeini -n mIRC\\lockunlock.txt ID: $2 Status: Unbaned Tgl: $date(dd/mm/yy) From Admin: $nick Keterangan: Masa Ban Sudah Lewat (Alasan : $3 )
/msg $nick ID Telah Di Unbaned
}
on 1:TEXT:!status*:?: {
if ( $nick != %mrp.nick ) {
set -u15 %mrp.nick $nick
}
else {
/msg $nick %mrp.nick $+ , $2 %mrp.status
}
elseif ($2 == $null) {
set -u30 %mrp.status $readini mIRC\\lockunlock.txt ID: %mrp.nick
}
elseif (%mrp.status == $null) {
/msg $nick %mrp.nick $+ ,
}
elseif ((%mrp.status != $null) && ($2 == $null) && ($nick == %mrp.nick)) {
/msg $nick %mrp.nick $+ , %mrp.status
else {
set -u30 %mrp.status $readini mIRC\\lockunlock.txt ID: $2
}
}
elseif (%mrp.status == $null) {
/msg $nick %mrp.nick $+ , $2
}
}
Can you try this and see if it gives an error. If so, can you give me the errors (Copy paste them here.)
if ($1- isin $read(bans- $+ $chan $+ .txt,w, $1-))
That's not working seen as you (For some reason.) HAVE to use variables to make that work. Just like this one:
echo # 14(00 $+ $time $+ 14) 10-11-15- 5min timeout on $nick
You also didn't define how long you want $nick to be timed out.
.msg $chan .timeout $nick |
In other words:
on 1:TEXT:*:#:{
var %readbans bans- $+ $chan $+ .txt
var %echotime 00 $+ $time $+ 14
if ($1- isin $read(%readbans,w, $1-)) { .msg $chan .timeout $nick 10 | echo # 14(%echotime) 10-11-15- 5min timeout on $nick }
elseif ($1 == !addban) {
if ($2- == $read(%readbans,w, $2-)) { msg $chan banmask " $+ $2- $+ " is already added. }
else { write %readbans $2- | msg $chan banmask " $+ $2- $+ " added. }
}
elseif ($1 == !delban) {
if ($2- != $read(%readbans,w, $2-)) { msg $chan no such banmask " $+ $2- $+ ". }
else { write -ds " $+ $2- $+ " %readbans | msg $chan banmask " $+ $2- $+ " deleted. }
}
}
that ought to do the trick. Try it.
Ok, so I took a look at the code and modifyed it myself. Now I want it to only react to links like: ".google.com|..com|..|www..|www.google.***" Any suggestions? Been struggling a lot, but haven't found the answer.
I want it to react only to such links. All 5 combinations. And it should not react to the links without "*"s.
Ideas, suggestions, codes, all highly appreciated.
I know it's about these lines. How domake work?
var %domain com|edu|gov|mil|net|org|biz|info|name|museum|us|ca|uk
var %link /(?<=^|\s)((?>\S{3,8}:\/\/|w{3}\56)\S+)|\56( $+ %domain $+ )\b/iS