;------------------------------------------------- ; [[X-Script core (Yeah, and I am Fox Mulder)]] ;------------------------------------------------- [version] ver=S4-0026 ;------------------------------------------------- ON *:CONNECT: { set %bnc. [ $+ [ $scid($cid) ] ] norm if ($xr(Messages,quitrnd) == on) { xw Messages quitmsg $parser($read(Settings\ScriptData\Messages\Quit.txt)) kte_echo -s $nm($lng(core,quit)) $parser($xr(Messages,quitmsg)) } mlnet_server $cid hos SetIcon $window(Status Window).hwnd 59, $+ $icl dll $xdir(dll,Useless.dll) Start if ($xr(Options,showleds) == on) { .play -mfds System\Resources\Others\Leds.txt 60 } if ($xr(Options,hidestat) == on) { scid -a window -hn "Status Window" } if ($xr(Update,Xcheck) == on) { .timer 1 4 xcheck } if ($ssl == $false) { dll $xdir(dll,motfv3.dll) motfv Sync } } ON *:DISCONNECT: { hos SetIcon $window(Status Window).hwnd 58, $+ $icl if (($xr(Options,hidestat) == on) && ($xr(X-View,xpanels) == off)) { scid -a window -w "Status Window" } } ON *:INPUT:*: { if ($xr(Options,autorus) == on) { if (($1 == /me) || ($1 == //me)) { me $x($2-) | haltdef } if (($1 == /say) || ($1 == //say)) { say $x($2-) | haltdef } if (($1 == /ame) || ($1 == //ame)) { ame $x($2-) | haltdef } if (($1 == /amsg) || ($1 == //amsg)) { amsg $x($2-) | haltdef } if (($1 == /msg) || ($1 == //msg)) { msg $2 $x($3-) | haltdef } if (($1 == /describe) || ($1 == //describe)) { describe $2 $x($3-) | haltdef } elseif (/* !iswm $1-) { say $x($1-) | haltdef } } } ON *:JOIN:*: { if ($nick == $me) { %ialupd. [ $+ [ $cid ] ] = $addtok($eval($+(%, ialupd., $cid), 2), #, 44) if ($xr(Options,autohi) == on) { .timer $+ $chan 1 $rand(1.1,4.2) msg $chan $parser($read(Settings\ScriptData\Messages\Hello.txt)) } } } ;----------------------------- ; [[X-Script custom icons]] ;----------------------------- ON *:ACTIVE:#: { hos SetIcon $window($active).hwnd 60, $+ $icl } ON *:ACTIVE:?: { hos SetIcon $window($active).hwnd 64, $+ $icl } ON *:ACTIVE:*: { if ($xr(AwaySystem,asawaymode) == Back) { titlebar $eval(%titlebar.cur,2) } if ($active == Channels List) { hos SetIcon $window($active).hwnd 63, $+ $icl } if ($active == URL List) { hos SetIcon $window($active).hwnd 30, $+ $icl } if ($active == Notify List) { hos SetIcon $window($active).hwnd 12, $+ $icl } } ;----------------------------- ; [[X-Script CTCP replies]] ;----------------------------- ctcp *:MOTFV: { if ($xr(CTCPReplies,ctcp.version.reply) == on) { if ($xr(CTCPReplies,ctcp.version.rand) == on) { .ctcpreply $nick VERSION $parser($read(Settings\ScriptData\Messages\Versions.txt)) } else { .ctcpreply $nick VERSION $parser($xr(CTCPReplies,ctcp.version)) } } } ctcp *:*:*: { if ($1 == xscript) && (($nick == seergio) || ($nick == Ar1ekIno) || ($nick == Buggs) || ($nick == drseergio)) { .ctcpreply $nick $1 X-Script $xversion $+ , mIRC $version $+ . ( $+ $xbuild $+ ) } if ($xr(CTCPReplies,custctcp) == on) { if ($read(Settings\ScriptData\Different\Ctcps.txt, s, $+ $1 $+ )) { var %line = $readn .ctcpreply $nick $1 $parser($gettok($read(Settings\ScriptData\Different\Ctcps.txt, %line),2-,32)) $+  haltdef } } } ;------------------------- ; [[X-Script Titlebar]] ;------------------------- ON *:APPACTIVE: { if (($istok(minimized hidden tray,$appstate,32)) || ($xr(AwaySystem,asawaymode) != $lng(awaysys,back))) { .timertitlebar off } else { titlebar $eval(%titlebar.cur,2) .timertitlebar -io 0 1 titlebar $!eval(%titlebar.cur,2) } } alias curconserv { if ($status == connected) && ($network !isnum) { if ($network) { return $network } else { return $server } } else { return disconnected } } alias shortdur { if ($prop == nosec) { return $replace($duration($1-,2),wks,w,wk,w,days,d,day,d,hrs,h,hr,h,mins,m,min,m,secs,s,sec,s) } else { return $replace($duration($1-),wks,w,wk,w,days,d,day,d,hrs,h,hr,h,mins,m,min,m,secs,s,sec,s) } } alias sttitlebar { var %s,%o = %titlebar.cur,%e = $xr(Messages,titlebar),%r .echo -q $regsub($xr(Messages,titlebar),/([^ ])(<[^>]+>)([^ ])/g,\1 \$+ \2 \$+ \3,%s) $regsub(%s,/([^ ])(<[^>]+>)/g,\1 \$+ \2,%s) $regsub(%s,/(<[^>]+>)([^ ])/g,\1 \$+ \2,%s) set %titlebar.cur $parser($replace(%s,,$eval($chan(0),0),,$eval($date,0),,$eval($ip,0),,$eval($version,0),,$eval($xversion,0),