Jump to content

Please help with my modules script


Shadow0049

Recommended Posts

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 by Shadow0049
Link to comment
Share on other sites

  • 3 weeks later...
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 by tidy trax
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...