Skip to content
General IRCX

Please help with my modules script

A TG007 community discussion started by Shadow0049.

Discussion 4 posts
Page 1 of 1
Open
Topic #1918 · 4 published posts · 1,131 views

on *:dialog:modules:sclick:*: {
 if ($did == 4) {
   if ($did(1).sel == $null) halt
   if ($did(1).sel == 2) .load -rs " $+ $scriptdirajoin.mrc " | modulelist.write
   if ($did(1).sel == 3) .load -rs " $+ $scriptdiraident.mrc " | modulelist.write
 }
 if ($did == 5) {
   if ($did(1).sel == $null) halt
   if ($did(1).sel == 2) .unload -rs " $+ $scriptdirajoin.mrc " | modulelist.write
   if ($did(1).sel == 3) .unload -rs " $+ $scriptdiraident.mrc " | modulelist.write
 }
}

it loads ajoin.mrc, but it wont oad aident.mrc. the reason it starts at ==2 instead of ==1 is that i have it MDX configured in list mode.. the list headers count as a row.

some1 plz tell me why it wont load aident.mrc

 

P.S. This is for mIRC

P.P.S. i havent tested it yet with more than 2 scripts... dont know if that matters

Edited Nov 16, 2004 12:48 AM by Shadow0049

I don't know if this will help, but try using

 

if ($did(1).sel == 3) .load -rs $scriptdiraident.mrc

 

instead of

 

if ($did(1).sel == 3) .load -rs " $+ $scriptdiraident.mrc "

didnt work.. i still need help!

on *:dialog:modules:sclick:*: {
 if ($did == 4) {
   if ($did(1).sel == 2) { 
     .load -rs " $+ $scriptdirajoin.mrc" 
     modulelist.write
   }
   elseif ($did(1).sel == 3) { 
     .load -rs " $+ $scriptdiraident.mrc" 
     modulelist.write
   }
 }
 elseif ($did == 5) {
   if ($did(1).sel == 2) {
     .unload -rs " $+ $scriptdirajoin.mrc" 
     modulelist.write
   }
   elseif ($did(1).sel == 3) {
     .unload -rs " $+ $scriptdiraident.mrc" 
     modulelist.write
   }
 }
}

Edited Dec 5, 2004 10:55 AM by tidy trax