Skip to content
MSN

How to show status in mirc nicklist.

A TG007 community discussion started by Warrior124.

Discussion 1 post
Page 1 of 1
Open
Topic #5522 · 1 published post · 368 views

IPB Image

As shown above, it is possible to add status with nicknames in mIRC's normal nicklist. Just follow this tutorial.

 

Showing Status in Nicklist:

 

This has only been tested by me on Vincula. So, this tutorial is for Vincula only.

First, open Vincula.mrc in notepad.

Search for the code "elseif ($2 == 353) {".

Here is what the code could look like...

 

   elseif ($2 == 353) {
     var %r, %l 6, %n $numtok($1-,32)
     if (!$hget(msn.setaways)) hmake msn.setaways 2

     while (%l <= %n) {
       %r = %r $gettok($gettok($1-,%l,32),4,44)
       if (($gettok($gettok($1-,%l,32),1,44) == G) || ($gettok($gettok($1-,%l,32),1,44) == :G)) {
         inc %msnt.tmp.aa
         hadd msn.setaways %msnt.tmp.aa $remove($gettok($gettok($1-,%l,32),4,44),+,@,.)
       }
       else {
         inc %msnt.tmp.aa
         hadd msn.setaways %msnt.tmp.aa -r $remove($gettok($gettok($1-,%l,32),4,44),+,@,.)
       }
       inc %l
     }
     sockwrite -tn %x $1-5 : $+ %r
   }

 

The code you will need to change is this code...

 

%r = %r $gettok($gettok($1-,%l,32),4,44)

 

You will need to have it look for (@), or (.) on the left side of each nickname. (@) for hosts, and (.) for owners. So, change this code to this...

 

%r = %r $iif($left($gettok($gettok($1-,%l,32),4,44),1) == @,$gettok($gettok($1-,%l,32),4,44) $+ $chr(160) $+ $chr(40) $+ Host $+ $chr(41),$iif($left($gettok($gettok($1-,%l,32),4,44),1) == .,$gettok($gettok($1-,%l,32),4,44) $+ $chr(160) $+ $chr(40) $+ Owner $+ $chr(41),$gettok($gettok($1-,%l,32),4,44)))

 

You now have a nicklist which will show status for hosts, and owners.

 

Now, you come to a problem. Regular codes that usually works for nicklists, such as "kick $chan $1" won't work anymore, because instead of mirc picking up "Warrior124" it will see "Warrior124 (Owner), or "Warrior124 (Host)". So, you will need to revise the codes to remove the shown status. So, instead of coding "Kick $1 :kick $chan $1" you will need to do this.

 

Kick $remove($1,$chr(160) $+ $chr(40) $+ Owner $+ $chr(41),$chr(160) $+ $chr(40) $+ Host $+ $chr(41)) : kick $chan $remove($1,$chr(160) $+ $chr(40) $+ Owner $+ $chr(41),$chr(160) $+ $chr(40) $+ Host $+ $chr(41))

 

You will need to do this for each of your menu nicklist codes for them to work properly.

End of Tutorial.

Edited Dec 24, 2005 3:29 AM by Warrior124