Mirc Script Examples ((better)) Today
; Save data when someone leaves or quits on *:QUIT:{ writeini seen.ini $nick quit $ctime $fulladdress } on *:PART:#:{ writeini seen.ini $nick part $ctime $chan }
alias jmc { join #mychannel } alias time { echo -a The current time is $time }
on *:INPUT:#:{ if ($1 == !calc) { var %result = $calc($2-) msg $chan The answer is: %result halt } } ; Usage: Type "!calc 5 + 5" in a channel. mirc script examples
; Command to check the seen status on *:TEXT:!seen *:#:{ if ($readini(seen.ini, $2, quit) != $null) { var %time = $readini(seen.ini, $2, quit) msg $chan $2 was last seen quitting $duration($calc($ctime - %time)) ago. } else if ($readini(seen.ini, $2, part) != $null) { var %time = $readini(seen.ini, $2, part) var %chan = $readini(seen.ini, $2, chan) msg $chan $2 was last seen parting %chan $duration($calc($ctime - %time)) ago. } else { msg $chan I have not seen $2 recently. } }
Whether you are looking to auto-greet a friend, protect your channel from flood attacks, or build a text-based adventure game, understanding mIRC scripting is the key to unlocking the full potential of the client. ; Save data when someone leaves or quits
on :TEXT:$( $+ $me $+ *):#:{ if (%away.reason) { .notice $nick I am currently away. Reason: %away.reason (Gone for $duration($calc($ctime - %
Despite the rise of modern messaging platforms like Discord and Slack, Internet Relay Chat (IRC) remains a vital communication protocol for open-source communities, tech support, and privacy enthusiasts. At the heart of the most popular Windows IRC client—mIRC—lies a powerful scripting language that allows users to automate tasks, create games, manage channels, and customize their interface. } else { msg $chan I have not seen $2 recently
alias away { set %away.reason $1- set %away.time $ctime away %away.reason echo -a You are now marked as away: %away.reason } alias back { away unset %away.* echo -a You are now back. }