Top

Multi-Server Identifier


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Dec 23, 2008
Last Updated  Dec 24, 2008
Tags  id  multi  server 

Description

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)))

Grab the Code

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

  (11)  RSS
mountaindew
Comments: 1,816
 
mIRC Snippet:  Multi-Server Identifier
Posted on Dec 23, 2008 7:48 pm
The %server variable isn't really needed in the on connect :/
Code:

    if (!$did(*) )

There's no then part of this if statement.
Aucun50
Comments: 568
 
mIRC Snippet:  Multi-Server Identifier
Posted on Dec 23, 2008 8:16 pm
I don't get how to use this i set all the servers,password,nicks then i connect and it doesn't identify?
PunkTuReD
Comments: 489
 
mIRC Snippet:  Multi-Server Identifier
Posted on Dec 23, 2008 8:25 pm
some networks use multiple servers, making identifying harder
when using the $server method you have chosen.
try letting people add networks instead.
Lazy
Comments: 12
 
mIRC Snippet:  Multi-Server Identifier
Posted on Dec 23, 2008 11:15 pm
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.
pwnisher3
Comments: 188
 
mIRC Snippet:  Multi-Server Identifier
Posted on Dec 24, 2008 12:46 am
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
Scakk
Comments: 312
 
mIRC Snippet:  Multi-Server Identifier
Posted on Dec 24, 2008 2:23 am
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.
pwnisher3
Comments: 188
 
mIRC Snippet:  Multi-Server Identifier
Posted on Dec 24, 2008 3:23 am
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.
Aucun50
Comments: 568
 
mIRC Snippet:  Multi-Server Identifier
Posted on Dec 24, 2008 8:20 am
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.
Blitzjager
Comments: 192
 
mIRC Snippet:  Multi-Server Identifier
Posted on Dec 24, 2008 9:44 am
The hardest part about dialogs is setting all the positions. Very easy now that I have DStudio.
PunkTuReD
Comments: 489
 
mIRC Snippet:  Multi-Server Identifier
Posted on Dec 24, 2008 7:16 pm
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.
pwnisher3
Comments: 188
 
mIRC Snippet:  Multi-Server Identifier
Posted on Dec 25, 2008 10:48 pm
dialog studio is very helpful. that's what i use to make them :P

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  

Bottom