Multi-Server Identifier

By pwnisher3 on Dec 23, 2008

ok i have fixed (i think i did (it works for me damn it(and more then likely it is scripted wrong but o'well it still works now)))

dialog MSID {
  title "Multi-Server Identify"
  size -1 -1 106 91
  option dbu
  tab "Server 1", 1, 0 -2 108 100
  button "Set Nick, Password, and Server", 4, 2 14 102 11, tab 1
  edit "", 10, 5 54 96 10, tab 1 center
  box "Password", 13, 2 68 102 22, tab 1
  box "Server", 22, 2 25 102 21, tab 1
  edit "", 23, 5 33 95 10, tab 1 center
  edit "", 17, 5 76 96 10, tab 1 pass center
  tab "Server 2", 2
  button "Set Nick, Password, and Server", 5, 2 14 102 11, tab 2
  edit "", 11, 5 54 96 10, tab 2 center
  box "Server", 19, 2 25 102 21, tab 2
  box "Password", 20, 2 68 102 22, tab 2
  edit "", 24, 5 33 95 10, tab 2 center
  edit "", 26, 5 76 96 10, tab 2 pass center
  tab "Server 3", 3
  button "Set Nick, Password, and Server", 6, 2 14 102 11, tab 3
  box "Server", 7, 2 25 102 21, tab 3
  edit "", 12, 5 54 96 10, tab 3 center
  box "Password", 21, 2 68 102 22, tab 3
  edit "", 25, 5 33 95 10, tab 3 center
  edit "", 27, 5 76 96 10, tab 3 pass center
  box "NickName", 18, 2 46 102 22
}
on *:dialog:msid:sclick:4:{
  if (did == 4) {
    if (!$did(10) !$did(23) !$did(17) ) 
  }
  else {
    set %msodsvr1 $did(23)
    set %msodnick1 $did(10)
    set %msodpassw1 $did(17)
  }
}
on *:dialog:msid:sclick:5:{

  if (did == 5) {
    if (!$did(24) !$did(11) !$did(26) ) 
  }
  else {
    set %msodsvr2 $did(24)
    set %msodnick2 $did(11)
    set %msodpassw2 $did(26)
  }
}
on *:dialog:msid:sclick:6:{
  if (did == 6) {
    if (!$did(25) !$did(27) !$did(12) ) 
  }
  else {
    set %msodsvr3 $did(25)
    set %msodnick3 $did(12)
    set %msodpassw3 $did(27)
  }
}
on *:connect:{
  close -mm
  set %server $server
  if ( %server == %msodsvr1 ) { nick %msodnick1 
  ns identify %msodpassw1 }
  if ( %server == %msodsvr2 ) { nick %msodnick2 
  ns identify %msodpassw2 }
  if ( %server == %msodsvr3 ) { nick %msodnick3 
  ns identify %msodpassw3 }
}
menu * {
  Multi-Server ID
  .Multi-Server ID: dialog -m msid msid 
  .Find Server Name: echo $me The Name Of This Server is ( $server )
}

Comments

Sign in to comment.
pwnisher3   -  Dec 25, 2008

dialog studio is very helpful. that's what i use to make them :P

 Respond  
PuNkTuReD   -  Dec 24, 2008

i have never used a program to make or align dialogs
and ill recommend using the $calc() function alot when making them , itll help align everythign.

 Respond  
Blitzjager   -  Dec 24, 2008

The hardest part about dialogs is setting all the positions. Very easy now that I have DStudio.

 Respond  
Aucun50   -  Dec 24, 2008

As lazy said you can only get better, i can't write a dialog for anything or i would try and give you a hand.

 Respond  
pwnisher3   -  Dec 24, 2008

my explanation for the $did(*) was an experiment. will fix it soon. bt for now i'm not doing it because i'm to damn lazy to get on the other computer(that is being used) and opening mIRC when i can play COD 3 online :P but i will fix it soon scakk. and i dask napa and you guys for hlp a lot and i did learn some stuff. i did ask napa to teach me. but i didn't have the time for it at the time. will try to learn scripting thuroly when i get the time.

 Respond  
Scakk   -  Dec 24, 2008

The variables will always be set as this if (!$did(*) ) is just broken. You need to read up on dialogs and many many other things before you post more snippets as the ones you have posted are broken and all have needed updates from you within a couple hours. Also when people try to help or give advice you seem to ignore them and move on with your bad snippets.

 Respond  
pwnisher3   -  Dec 24, 2008

it took me like an hour to make the damn dialog a lone. it kept messing up and i kept having to redo it. then i got the code started and i got it to work pretty decent. so i don't know what the problem is if anyone is having trouble. i will prolly update soon. but it is how it is for now :P

 Respond  
Lazy   -  Dec 23, 2008

For starting out you are doing decent. Although I think you should go through your scripts a bit more with the testing phase before releasing them so quickly. Keep at it though, can only improve on what you already know.

 Respond  
PuNkTuReD   -  Dec 23, 2008

some networks use multiple servers, making identifying harder
when using the $server method you have chosen.
try letting people add networks instead.

 Respond  
Aucun50   -  Dec 23, 2008

I don't get how to use this i set all the servers,password,nicks then i connect and it doesn't identify?

 Respond  
guest598594   -  Dec 23, 2008

The %server variable isn't really needed in the on connect :/

    if (!$did(*) ) 

There's no then part of this if statement.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.