mIRC Homepage
ok ive started messing around with something ..... as what i already have kinda makes it so the mircs color thing doesnt work corectly for me ...

what im tryin to do is ive added a little dialog menu to add nick salong with a color identifier to an ini file ....... but what im having trouble with is making them all list into a list box ..... im not really good with figureing out the loops yet and any help would be appreciated i can show u what ive worked out so far
Code:
on *:dialog:cnl:init:0:{
  %anim.cnl = 0 | .timer_anim_cnl -m 0 1 anim.cnl | set %cnl.base 1   
  did -i cnl 4,6,8,10,12,14,16,28 1 White (0)
  did -i cnl 4,6,8,10,12,14,16,28 2 Black (1)
  did -i cnl 4,6,8,10,12,14,16,28 3 Blue (2)
  did -i cnl 4,6,8,10,12,14,16,28 4 Green (3)
  did -i cnl 4,6,8,10,12,14,16,28 5 LightRed (4)
  did -i cnl 4,6,8,10,12,14,16,28 6 Brown (5)
  did -i cnl 4,6,8,10,12,14,16,28 7 Purple (6)
  did -i cnl 4,6,8,10,12,14,16,28 8 Orange (7)
  did -i cnl 4,6,8,10,12,14,16,28 9 Yellow (8)
  did -i cnl 4,6,8,10,12,14,16,28 10 LightGreen (9)
  did -i cnl 4,6,8,10,12,14,16,28 11 Cyan (10)
  did -i cnl 4,6,8,10,12,14,16,28 12 LightCyan (11)
  did -i cnl 4,6,8,10,12,14,16,28 13 LightBlue (12)
  did -i cnl 4,6,8,10,12,14,16,28 14 Pink (13)
  did -i cnl 4,6,8,10,12,14,16,28 15 Grey (14)
  did -i cnl 4,6,8,10,12,14,16,28 16 LightGrey (15)
   [color:red]   did -ra cnl 21 $c.set(NICKLIST,NICKS) [/color]
  did -c cnl 4 $calc(%cnl.me +1)
  did -c cnl 6 $calc(%cnl.op +1)
  did -c cnl 8 $calc(%cnl.help +1)
  did -c cnl 10 $calc(%cnl.voice +1)
  did -c cnl 12 $calc(%cnl.reg +1)
  did -c cnl 14 $calc(%cnl.notify +1)
  did -c cnl 16 $calc(%cnl.ignore +1)
  did -c cnl 28 $calc(%cnl.base +1)
  if ($group(#cnl) == on) { did -c $dname 17 }
  if ($group(#cnl) == off) { did -c $dname 18 | did -b $dname 3,4,5,6,7,8,9,10,11,12,13,14,15,16,28 }
}

basically thats the only part im having trouble in .....
i have c.set as an alias earlier in my script to read from an ini file ........ but what im wondering is what is the best way to actually perform this so i can add and delete nicks and a corosponding color into it ....... right now ive got it setup like
[NICKLIST]
NICKS=NICK 3
i think what i need to do is change it so it sets the nick as the last variable in the ini write and then the color code as the = part like
[NICKLIST]
nick=3

then try reading all of the nicks along with there colors in a loop or something anyone with any thoughts or help id really appreciate it ....... all its for is to add the ability to have any color i want in the nicklist and message line
© mIRC Discussion Forums