RuLeRs Script 3.1 — File Browser
RuLeRsScript3.1v3.1 / RuLeRsScript3.1v3.1 / system / script.ini
script.ini — 13.58 KB — Download this file
[script]
n0=on 1:start: {
n1= if ( %start_quickhelp == yes ) { /starthelp }
n2= if ( %msgbox.load.startup == On ) { window -kdo @MsgBox 10000 10000 800 80 @MsgBox | aline -hp @MsgBox MsgBox v1.0 }
n3= .window -a "Status Window"
n4= .startup_logo
n5= echo 1,1-
n6= echo 1,1-
n7= echo 1,1-
n8= echo 9Checking System...
n9= echo 9System O.K.
n10= echo 1,1-
n11= Echo 9Checking OS Version...
n12= If ($os == 2000) .echo 9OS Found: 8Microsoft Windows 2000 | /set %os $os
n13= If ($os == NT) .echo 9OS Found: 8Microsoft Windows NT 4.0 | /set %os $os
n14= If ($os == 98) .echo 9OS Found: 8Microsoft Windows 98 | /set %os $os
n15= If ($os == 95) .echo 9OS Found: 8Microsoft Windows 95 | /set %os $os
n16= If ($os == 3.1) .echo 9OS Found: 8Microsoft Windows 3.1 | /set %os $os
n17= echo 1,1-
n18= echo 9Checking mIRC Version...
n19= If ($version < 5.5) {
n20= echo 1,1-
n21= echo 4The version of mIRC you are useing width this script is: mIRC $version
n22= echo 4To use this script and all it's fetures you'll have to download version 5.5 or later
n23= echo 4Either you can download full version of this script at www.rulersworld.com or else
n24= echo 4You can download the newest version of mIRC32.exe from www.mirc.com
n25= .timer666 1 30 /exit
n26= echo 1,1-
n27= echo 4The script will automaticly shutdown after 30 secounds!
n28= halt
n29= }
n30= echo 9Found mIRC Version:8 $version
n31= echo 1,1-
n32= echo 9Checking Network Adapter...
n33= if $ip == 127.0.0.1 { goto netkort_fucked }
n34= echo 9Network O.K.
n35= echo 1,1-
n36= startup_titlebar
n37= .if %first_start == Yes { goto start_guide }
n38= .if %first_start == No { goto start_normal }
n39= :start_Guide
n40= .dialog -m firststart firststart
n41= halt
n42= :start_normal
n43= .identd on %ident
n44= .identd off
n45= .if %connect.startup == $true { /server }
n46= .halt
n47= :netkort_fucked
n48= echo 9Network Error
n49= echo 4Your LAN card is not correcty installed or network cable not pluged in, please correct this error before connecting to IRC!
n50= halt
n51=}
n52=on 1:connect: {
n53= /auto_update_titlebar
n54= .set %titlebar.onlinetime %titlebar.onlinetime.online
n55= .set %titlebar.status %titlebar.status.connecting
n56= .timer456 0 1 /check.online
n57= .timer4567 1 1 /auto.away.tid
n58= if ( %autojoin == off ) { goto end }
n59= if %AJchan1 == $null { .set %xalogin_chan1 Off | goto AJchan2 }
n60= echo 11*** System Info:4 Joining channels on autojoin list... Please Wait
n61= .timer -m 1 250 .join %AJchan1
n62= :AJchan2
n63= if %AJchan2 == $null { .set %xalogin_chan2 Off | goto AJchan3 }
n64= .timer -m 1 500 .join %AJchan2
n65= if %xalogin_chan2 == On /login
n66= :AJchan3
n67= if %AJchan3 == $null { .set %xalogin_chan3 Off | goto AJchan4 }
n68= .timer -m 1 750 .join %AJchan3
n69= if %xalogin_chan3 == On /login
n70= :AJchan4
n71= if %AJchan4 == $null { .set %xalogin_chan4 Off | goto AJchan5 }
n72= .timer -m 1 1000 .join %AJchan4
n73= if %xalogin_chan4 == On /login
n74= :AJchan5
n75= if %AJchan5 == $null { .set %xalogin_chan5 Off | goto AJchan6 }
n76= .timer -m 1 1250 .join %AJchan5
n77= if %xalogin_chan5 == On /login
n78= :AJchan6
n79= if %AJchan6 == $null { .set %xalogin_chan6 Off | goto AJchan7 }
n80= .timer -m 1 1500 .join %AJchan6
n81= if %xalogin_chan6 == On /login
n82= :AJchan7
n83= if %AJchan7 == $null { .set %xalogin_chan7 Off | goto AJchan8 }
n84= .timer -m 1 1750 .join %AJchan7
n85= if %xalogin_chan7 == On /login
n86= :AJchan8
n87= if %AJchan8 == $null { .set %xalogin_chan8 Off | goto AJchan9 }
n88= .timer -m 1 2000 .join %AJchan8
n89= if %xalogin_chan8 == On /login
n90= :AJchan9
n91= if %AJchan9 == $null { .set %xalogin_chan9 Off | goto AJchan10 }
n92= .timer -m 1 2250 .join %AJchan9
n93= if %xalogin_chan9 == On /login
n94= :AJchan10
n95= if %AJchan10 == $null { .set %xalogin_chan10 Off | goto end }
n96= .timer -m 1 2500 .join %AJchan10
n97= if %xalogin_chan10 == On /login
n98= :end
n99= if %starthelp == yes ( /.starthelp )
n100=}
n101=on 1:disconnect: {
n102= .set %titlebar.status Offline
n103= /auto_update_titlebar
n104=}
n105=on 1:DNS: {
n106= if %msgbox.dns == On {
n107= if (%msgbox.active == off) { .halt }
n108= if ($window(@MsgBox).state == $null) { window -kdo @MsgBox 10000 10000 800 80 @MsgBox | aline -hp @MsgBox MsgBox v1.0 }
n109= aline -hp @MsgBox 11DNS Resoult:4 $timestamp 12- Nick:4 $nick 12- Host:4 $naddress 12- IP:4 $iaddress 12- IP Capture:4 %dns.ip
n110= if (%msgbox.beep == on) { /beep }
n111= halt
n112= }
n113= echo -a 1,1-
n114= echo -a 12*** DNS Resoult for8 $nick 12- Host:4 $naddress 12- IP:4 $iaddress 12- IP Capture:4 %dns.ip
n115= :next_q
n116= if %dns.ip == On goto get_ip
n117= halt
n118= :get_ip
n119= /clipboard $iaddress
n120= .set %dns_mode Normal
n121=}
n122=on 1:BAN:#: {
n123= .set %last.ban $banmask
n124= if $bnick == $me {
n125= .set %banmark $banmask
n126= if %ban.revenge == none .halt
n127= if %ban.revenge == kick { kick $chan $nick 4Don't ban me!!! | mode $chan -b $banmask }
n128= if %ban.revenge == deop { mode # -o-b $nick $banmask }
n129= if %ban.revenge == deopkick { mode $chan -o $nick | /mode $chan -b $banmask | kick $chan $nick 4Don't ban me! }
n130= if %ban.revenge == ban { mode $chan +b $nick | mode $chan -b $banmask }
n131= if %ban.revenge == bankick { mode $chan +b $nick| mode $chan -b $banmask | kick $chan $nick 4Don't ban me! }
n132= }
n133=}
n134=on 1:join:#: {
n135= if ( $address($nick,6) == %AOP1 ) { mode $chan +o $nick }
n136= if ( $address($nick,6) == %AOP2 ) { mode $chan +o $nick }
n137= if ( $address($nick,6) == %AOP3 ) { mode $chan +o $nick }
n138= if ( $address($nick,6) == %AOP4 ) { mode $chan +o $nick }
n139= if ( $address($nick,6) == %AOP5 ) { mode $chan +o $nick }
n140= if ( $address($nick,6) == %AOP6 ) { mode $chan +o $nick }
n141= if ( $address($nick,6) == %AOP7 ) { mode $chan +o $nick }
n142= if ( $address($nick,6) == %AOP8 ) { mode $chan +o $nick }
n143= if ( $address($nick,6) == %AOP9 ) { mode $chan +o $nick }
n144= if ( $address($nick,6) == %AOP10 ) { mode $chan +o $nick }
n145=}
n146=alias nickcolor {
n147= set %cnum 1
n148= :loop
n149= set %cnick $nick(#,%cnum)
n150= if (%cnick isnotify) cline %nicklist.notify.color # %cnick
n151= if (%cnick == $me) cline %nicklist.me.color # %cnick
n152= elseif (%cnick isvo #) cline %nicklist.voiced.color # %cnick
n153= elseif (%cnick isop #) cline %nicklist.opped.color # %cnick
n154= else .cline %nicklist.normal.color # %cnick
n155= if (%cnum < $nick(#,0)) { .inc %cnum
n156=goto loop } }
n157=alias nickcolor2 {
n158= set %cnum 1
n159= :loop
n160= set %cnick $nick(%kanal,%cnum)
n161= if (%cnick isnotify) cline %nicklist.notify.color %kanal %cnick
n162= if (%cnick == $me) .cline %nicklist.me.color %kanal %cnick
n163= elseif (%cnick isvo %kanal) cline %nicklist.voiced.color %kanal %cnick
n164= elseif (%cnick isop %kanal) cline %nicklist.opped.color %kanal %cnick
n165= else cline %nicklist.normal.color %kanal %cnick
n166= if (%cnum < $nick(%kanal,0)) { inc %cnum
n167=goto loop } }
n168=on 1:ban:# { /nickcolor }
n169=on 1:unban:# { /nickcolor }
n170=on 1:op:# { /nickcolor }
n171=on 1:deop:# { /nickcolor }
n172=on 1:open:! { /nickcolor }
n173=on 1:part:# { /nickcolor }
n174=on 1:text:*:# { /nickcolor }
n175=;on 1:input:# { /nickcolor }
n176=on ^1:JOIN:#: {
n177= .set %kanal #
n178= /.timer -m 5 100 /nickcolor2
n179= if ( $nick == $me ) { echo -a 11*** Now chatting in $chan | halt }
n180= echo $chan 11*** Joins:8 $nick 4-( $address )- | halt
n181=}
n182=alias pingop {
n183= unset %allop
n184= set %onum $opnick(#,0)
n185= :loop
n186= set %allop %allop $opnick(#,%onum)
n187= if (%onum > 1) { dec %onum | goto loop }
n188= ctcp $replace(%allop,$chr(32),$chr(44)) ping
n189= unset %allop %onum
n190=}
n191=alias noticeall {
n192= .unset %notice
n193= .set %nonum $nick(#,0)
n194= :loop
n195= .set %notice %notice $nick(#,%nonum)
n196= .if (%nonum > 1) { dec %nonum | goto loop }
n197= .notice $replace(%notice,$chr(32),$chr(44)) (Mass Notice (All) $chan $+ ) $$1-
n198= .unset %notice %nonum
n199=}
n200=alias noticeop {
n201= .unset %notice
n202= .if ( $opnick(#,0) == 0 ) { echo 4*** Error:11 There is no oped users (+o) on $chan | halt }
n203= .set %nonum $opnick(#,0)
n204= :loop
n205= .set %notice %notice $opnick(#,%nonum)
n206= .if (%nonum > 1) { dec %nonum | goto loop }
n207= .notice $replace(%notice,$chr(32),$chr(44)) (Mass Notice (Op) $chan $+ ) $$1-
n208= .unset %notice %nonum
n209=}
n210=alias noticedeop {
n211= .unset %notice
n212= .if ( $nopnick(#,0) == 0 ) { echo 4*** Error:11 There is no non-oped users (-o) on $chan | halt }
n213= .set %nonum $nopnick(#,0)
n214= :loop
n215= .set %notice %notice $nopnick(#,%nonum)
n216= .if (%nonum > 1) { dec %nonum | goto loop }
n217= .notice $replace(%notice,$chr(32),$chr(44)) (Mass Notice (DeOp) $chan $+ ) $$1-
n218= .unset %notice %nonum
n219=}
n220=alias noticevoice {
n221= .unset %notice
n222= .if ( $vnick(#,0) == 0 ) { echo 4*** Error:11 There is no voiced users (+v) on $chan | halt }
n223= .set %nonum $vnick(#,0)
n224= :loop
n225= .set %notice %notice $vnick(#,%nonum)
n226= .if (%nonum > 1) { dec %nonum | goto loop }
n227= .notice $replace(%notice,$chr(32),$chr(44)) (Mass Notice (Voice) $chan $+ ) $$1-
n228= .unset %notice %nonum
n229=}
n230=alias gkick {
n231= set %num $comchan($$1,0)
n232= if (%num == 0) { echo 4 -a * /globkick: No common channels to kick in | halt }
n233= :loop
n234= if ($comchan($1,%num).op) kick $comchan($1,%num) $1 $2-
n235= if (%num > 1) { dec %num | goto loop }
n236=}
n237=alias drives {
n238= set %num 65
n239= unset %found
n240= :loop
n241= set %drive $chr(%num) $+ :
n242= if ($exists(%drive)) set %found %found %drive
n243= if (%num < 90) { inc %num | goto loop }
n244= echo 6 -a *** Drives found- %found
n245= unset %num %drive %found
n246=}
n247=on 1:KEYDOWN:@frog:32:echo user pressed space bar in @frog
n248=
n249=on 1:KEYDOWN:@:32: {
n250= %editbox = $editbox($active)
n251= %lastword = $gettok(%editbox,$gettok(%editbox,0,32),32)
n252= %chans = $chan(0)
n253= if (($left(%lastword,1) == $chr(35)) && (%chans > 0)) {
n254= :loop
n255= if ( [ [ %lastword ] $+ ] * iswm $chan(%chans)) editbox -a $reptok(%editbox,%lastword,$chan(%chans),1,32)
n256= elseif (%chans > 1) { dec %chans | goto loop }
n257= }
n258= unset %editbox %lastword %chans
n259=}
n260=; ----------------------------------------------------------------------------------------------- D i a l o g s -----------------------------------------------------------------------------------------------
n261=dialog help {
n262= title "Help Select Box"
n263= size -1 -1 140 180
n264= button "Script Help", 3, 30 30 70 30
n265= button "mIRC Help", 8, 30 80 70 30
n266= button "Close", 4, 30 130 70 30, ok
n267= text "Select the help you need:", 6, 10 10 255 20, left
n268=}
n269=on 1:dialog:help:sclick:*: {
n270= if ($did == 3) run notepad ReadMe.txt
n271= if ($did == 8) /help mirc
n272= if ($did == 4) .set %script 4RuLeRs 4Script4 3.1
n273=}
n274=dialog about {
n275= title "About RuLeRs Script 3.1"
n276= size -1 -1 403 360
n277= icon 1, 0 -4 403 258, rs.bmp, 0
n278= text "Copyright © 1998-2000 by RuLeRs.DK, Denmark", 2, 80 260 400 30, left
n279= button "Home", 3, 20 290 70 30
n280= button "Read Me", 8, 160 290 70 30
n281= button "Close", 4, 310 290 70 30, ok
n282= text "Home: Http://mega.n3.net", 6, 10 340 255 20, left
n283= text "E-Mail: mega@nr-djurs.net", 7, 260 340 255 20, left
n284=}
n285=on 1:dialog:about:sclick:*: {
n286= if ($did == 3) || ($did == 1) run http://mega.n3.net
n287= if ($did == 8) run notepad ReadMe.txt
n288= if ($did == 9) .set %script 4RuLeRs 4Script4 3.1
n289=}
n290=on 1:GETFAIL:*.*:echo 4 -a %server 4*** Error:12 Fail to get the $filename from $nick
n291=on 1:SENDFAIL:*.*:echo 4 -a %server 4*** Error:12 Failed to deliver the file $filename to $nick
n292=on 1:FILESENT:*.*:echo -a 9*** Info:12 The file10 $filename 12was successfully delived to10 $nick
n293=dialog firststart {
n294= title "Welcome to RuLeRs Script 3.1 Final"
n295= size -1 -1 403 360
n296= icon 1, 0 -4 403 258, rs.bmp, 0
n297= text "Copyright © 1998-2000 by RuLeRs.DK, Denmark", 2, 80 260 400 30, left
n298= text "Welcome to RuLeRsScript 3.0", 9, 10 290 320 30, left
n299= text "This script is perfekt for both the advanced user and the newbie. With this script you can control you own channel without being an mIRC expert. So go on try this script out, and send me an email and write what you think!",10, 10 290 390 50, left
n300= text "Press Next to start the firststart wizzard", 11, 10 340 400 30, left
n301= button "Next", 4, 320 320 70 30, ok
n302=}
n303=on 1:dialog:firststart:sclick:*: {
n304= if ($did == 4) /firststart_script
n305=}
n306=
n307=on 1:dialog:about:sclick:*: {
n308= if ($did == 9) run notepad ReadMe.txt
n309= if ($did == 3) || ($did == 1) run Http://mega.n3.net
n310= if ($did == 8) run notepad ReadMe.txt
n311=}
n312=on 1:kick:# {
n313= if ( $knick == $me ) {
n314= echo Rejoining channel $chan in 3 secs
n315= .timer550 1 3 /join $chan
n316= }
n317=}
n318=;on 1:input:# {
n319=; if ( %Auto.away == on ) {
n320=; .timer321 off
n321=; .timer321 1 %auto.away.time { .set %away.reson Auto-Away after %auto.away.time minutes <> RS3.1 / Http://mega.n3.net | /a }
n322=; }
n323=;}