|
|
Joined: Jan 2003
Posts: 4
Self-satisified door
|
OP
Self-satisified door
Joined: Jan 2003
Posts: 4 |
Need som help to make a popup I made a popup named FTP Info, I wanted it to show my ftp info this is how i wanted it to look when i push the button : "MyNick": Ip: xxx "MyNick": Port: xxx "MyNick": Login xxx "MyNick": Pass xxx How do i Make This ?
At ip i want to say "/dns me", but sometimes i run mode +x and peoples can not /dns me for my ip. If I run mode +x, my host would be like winz.users.undernet.org, and then i want the text behind ip to show /dns "a other nick" instead of "/dns me" If someone understood what I asked pleas answer me
|
|
|
|
Joined: Dec 2002
Posts: 1,321
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,321 |
What kind of popup is this "FTP Info" popup? A query popup? A nicklist popup? A channel Popup? Where is this popup supposed to show? In /notice $nick? /msg $nick? /msg $chan? /echo'd just to you? Assuming you meant only query and nicklist popups and you meant for each of the lines to be a separate message, you could use the following script in a remote file (Alt-R).,
menu query,nicklist {
FTP Info: {
.query $nick $me $+ : IP: /dns $iif(x isin $usermode,MyOtherNick,$me)
.msg $nick $me $+ : Port: 21
.msg $nick $me $+ :Login: anonymous
.msg $nick $me $+ : Pass: email@address
}
}
Last edited by Hammer; 04/01/03 03:19 AM.
DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
|
|
|
|
Joined: Jan 2003
Posts: 4
Self-satisified door
|
OP
Self-satisified door
Joined: Jan 2003
Posts: 4 |
When i wrote your command in the remot and changeg myothernick in the command to my other nick i get this:
[11:47:00] <WinZ-> IP: /dns WinZ- [11:47:00] No such nick [11:47:00] No such nick [11:47:00] No such nick
As you can see it did not work and even if i pushed the ftp in button on a other query it is only shown in my WinZ- query, and when i use mode +x it is still showing /dns "my nick with mode +x "
|
|
|
|
Joined: Dec 2002
Posts: 1,321
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,321 |
Ooops .. not $nick, $1
menu query,nicklist {
FTP Info: {
.query $1 $me $+ : IP: /dns $iif(x isin $usermode,MyOtherNick,$me)
.msg $1 $me $+ : Port: 21
.msg $1 $me $+ :Login: anonymous
.msg $1 $me $+ : Pass: email@address
}
}
Last edited by Hammer; 04/01/03 03:19 AM.
DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
|
|
|
|
Joined: Jan 2003
Posts: 4
Self-satisified door
|
OP
Self-satisified door
Joined: Jan 2003
Posts: 4 |
Thx, it works now. But here is a other challenge. I want a box to popup where i can fill in information as login and pass. I don't want they to be the same if you understand. Something like when you put in your away information
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
|
|
|
|
Joined: Dec 2002
Posts: 1,321
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,321 |
menu query,nicklist {
FTP Info: {
.query $1 $me $+ : IP: /dns $iif(x isin $usermode,MyOtherNick,$me)
.msg $1 $me $+ : Port: 21
.msg $1 $me $+ :Login: $iif($?="Login for $1 to use:",$!,anonymous)
.msg $1 $me $+ : Pass: $iif($?="Password for $1 to use:",$!,email@address)
}
} That should do it for you. Edit: *blush* added the e :tongue:
Last edited by Hammer; 04/01/03 03:18 AM.
DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
|
|
|
|
Joined: Dec 2002
Posts: 699
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 699 |
You better make that $usermod e
|
|
|
|
|
|