|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
Right i have made the basic design
dialog Secure {
size -1 -1 292 219
title "Secure Pm"
button "Decline",1,113 182 60 30
button "Accept",2,22 182 60 30
button "Ignore",3,203 182 60 30
box "Message",4,20 0 259 53
box "Nick & Ip",5,21 59 257 46
menu "",14
menu "",15
menu "",16
menu "",17
menu "",18
}
now how do i make box "Message",4,20 0 259 53 box "Nick & Ip",5,21 59 257 46 Show the message i get and that person nick and ip ? ? ?
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: Mar 2003
Posts: 54
Babel fish
|
Babel fish
Joined: Mar 2003
Posts: 54 |
Learn dialog events. /help on dialog
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
i have tried but i dont know where to put what
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
cos it doesnt seem to say where i am supposed to put what to make the persons nick comeup in the nick bit or the ip in the ip bit soo i am realy confused and the dialog makers dont tell u how to do the stuf they just show u how to do the graphical bits
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
also i have done an on open thingy and how do u make it not open a query window when someone msg's u
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
never mind that i know whats wrong
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
ok right i have tried sometin, can ya tell me what is wrong cos it doesnt work, it wont open the query or msg the person.
dialog Secure {
size -1 -1 292 219
title "Secure Pm"
button "Decline",1,113 182 60 30
button "Accept",2,22 182 60 30
button "Permission",3,203 182 60 30
box "Message",4,20 0 259 53
box "Nick & Ip",5,21 59 257 46
menu "",14
menu "",15
menu "",16
menu "",17
menu "",18
}
on 1:open:?:*:/msg $nick AutoMsg $ddcol(4|8|7,1 I Will consider your request, plz wait) | /close -m $nick | /dialog -m Pm Secure | /set %nick $nick
on 1:dialog:Secure:sclick:1:{
msg %nick AutoMsg $ddcol(4|8|7,1 Your Msg request has been declined have a nice day)
ignore -u60 %nick pcntikd
}
on 1:dialog:Secure:sclick:2:{
query %nick
msg %nick AutoMsg $ddcol(4|8|7,1 Your Msg request has been accepted)
}
on 1:dialog:Secure:sclick:3:{
query %nick
msg %nick AutiMsg $ddcil(4|8|7,1 You have been given permission to msg me freely) | /guser 15 %nick
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: Dec 2002
Posts: 169
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 169 |
Lots is wrong. 1) A dialogs name is different than its table_name. You use /dialog -m Pm Secure but all your dialog events look for dialogs named "Secure". These should be Pm. 2) Your on open event needs to fill the newly created dialog 3) The method you use could lead to dialog errors (already exists) because you use one name for all and it is very possible that multiple people could msg you before you get to responding to the dialog. Use a dialog name that contains the nickname of the person who is msging you. 4) No need to use closemsg. Use ^1:open and haltdef instead. 5) Boxes are fancy little organizers. You need a text control to hold the actual msg. 6) None of your events will actually close the dialog. 7) I think the $ddcil might be a typo. You use $ddcol in your other automsgs. Give this a try dialog Secure {
title "Secure Pm"
size -1 -1 177 96
option dbu
box "Message", 1, 1 3 174 50
text "Message Text", 2, 5 10 166 40
text "Nick:", 3, 2 56 24 8
text "Actual Nick", 4, 26 56 149 8
button "Accept", 5, 2 82 37 12
button "Decline", 6, 70 82 37 12
button "Permission", 7, 138 82 37 12
text "Address:", 8, 2 66 24 8
text "Actual Address", 9, 26 66 149 8
text "Hidden Timestamp", 10, 99 3 60 8, hide
text "hidden msg nostrip", 11, 99 13 46 8, hide nowrap
}
on ^1:open:?:*:{
var %DName = $+(PMChoice,.,$cid,.,$nick)
if ($dialog(%DName) == $null) {
.msg $nick AutoMsg $ddcol(4|8|7,1 I Will consider your request, plz wait)
dialog -m %Dname Secure
}
did -o %Dname 1 1 Message received at: $asctime(HH:nn:ss)
did -o %Dname 10 1 $ctime
did -o %Dname 2 1 $strip($1-)
did -o %dname 11 1 $1-
did -o %Dname 4 1 $nick
did -o %Dname 9 1 $address
haltdef
}
on 1:dialog:PMChoice.*:*:*: {
if ($devent == sclick) {
var %nick = $did(4)
if ($did = 6) {
.msg %nick AutoMsg $ddcol(4|8|7,1 Your Msg request has been declined have a nice day)
.ignore -pu60 $+(*!*@,$gettok($did(9),2,64))
dialog -x $dname
}
if ($did == 5) { .msg %nick AutoMsg ddcol(4|8|7,1 Your Msg request has been accepted) }
if ($did == 7) {
.msg %nick AutiMsg $ddcol(4|8|7,1 You have been given permission to msg me freely)
guser 15 %nick
}
if (($did == 5) || ($did == 7)) {
query %nick
echo $color(normal) -i2 %nick $asctime($did(10),$timestampfmt) < $+ %nick $+ > $did(11)
dialog -x $dname
}
}
}
I redid your table to add the needed text contorls to hold the msg nick and address. I also used a couple of hiddle controls to store info (the timestamp of the msg and the unstripped msg.) The info is used to echo to the new query window the last message. I threw it in for the hell of it.
|
|
|
|
Joined: Mar 2003
Posts: 437
Fjord artisan
|
Fjord artisan
Joined: Mar 2003
Posts: 437 |
that didnt work...i could even find that $ddcol in mirc help.... but i fixed it....
dialog Secure { title "Secure Pm" size -1 -1 177 96 option dbu box "Message", 1, 1 3 174 50 text "Message Text", 2, 5 10 166 40 text "Nick:", 3, 2 56 24 8 text "Actual Nick", 4, 26 56 149 8 button "Accept", 5, 2 82 37 12 button "Decline", 6, 70 82 37 12 button "Permission", 7, 138 82 37 12 text "Address:", 8, 2 66 24 8 text "Actual Address", 9, 26 66 149 8 text "Hidden Timestamp", 10, 99 3 60 8, hide text "hidden msg nostrip", 11, 99 13 46 8, hide nowrap }
on ^1:open:?:*:{ var %DName = $+(PMChoice,.,$cid,.,$nick) if ($dialog(%DName) == $null) { .msg $nick AutoMsg I Will consider your request, plz wait dialog -m %Dname Secure } did -o %Dname 1 1 Message received at: $asctime(HH:nn:ss) did -o %Dname 10 1 $ctime did -o %Dname 2 1 $strip($1-) did -o %dname 11 1 $1- did -o %Dname 4 1 $nick did -o %Dname 9 1 $address haltdef }
on 1:dialog:PMChoice.*:*:*: { if ($devent == sclick) { var %nick = $did(4) if ($did = 6) { .msg %nick AutoMsg Your Msg request has been declined have a nice day .ignore -pu60 $+(*!*@,$gettok($did(9),2,64)) dialog -x $dname } if ($did == 5) { .msg %nick AutoMsg Your Msg request has been accepted } if ($did == 7) { .msg %nick AutoMsg You have been given permission to msg me freely guser 15 %nick } if (($did == 5) || ($did == 7)) { query %nick echo $color(normal) -i2 %nick $asctime($did(10),$timestampfmt) < $+ %nick $+ > $did(11) dialog -x $dname } } }
|
|
|
|
Joined: Dec 2002
Posts: 169
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 169 |
$ddcol is probably a custom alias made by the original poster. I assume it colorizes the text. Since that is the way andymps had it in his script I left it.
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
Yeah $ddcol is a costom mad alias by ColourTeam who make popup addons
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
|