![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2004
Posts: 15
Rep Power: 0
![]() |
How do I set variables to command? I am having some trouble with little scripts.
*:JOIN:#techdiscussions.com:{
%asdf = $whois $nick
/echo %asdf
} |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Jul 2004
Location: Location
Posts: 140
Rep Power: 5
![]() |
Is it in mirc coding?
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Dec 2004
Posts: 11
Rep Power: 0
![]() |
Im not an irc user anymore, but what is it exactly you're trying to do and i can certainly help you out. if you're using nnscript that is, because i believe some of the commands/variables i used to use were nnscript ones.
__________________
Mal - "At the source of every error which is blamed on the computer, you will find at least two human errors, including the error of blaming it on the computer." :: "A good programmer is someone who looks both ways before crossing a one-way street." |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Jan 2005
Posts: 110
Rep Power: 4
![]() |
im not sure if your aware but...
/whois is a command that the ircd deals with so mirc can not gather the info like that >_< so you would have to get the raw info first from the server then set the variable unless the $whois is a custom alias you've made? if yes then you need to add "on" to the start of the script and it will work. and you need to /set for a global variable or /var for local when you set a global you dont use "=" like /set %variable Value but local use "=" like /var %variable = Value on *:JOIN:#techdiscussions.com:{ set %asdf $whois $nick echo %asdf } if not then if you wanted $whois to get the adress you can use $address($nick,2) or something just like on *:join:#techdiscussions.com: { set %asdf $address($nick,2) $nick echo -a %asdf } good luck |
|
|
|
|
|
#5 |
|
Programmer
|
Like cloud- said, you'd have to gather the raw info from the server (using raw numerics). Here's an example, which "customizes" your whois:
raw 311:*:{
echo -a $+ $color(whois) $+ <whois>
echo -a $+ $color(whois) $+ Whois: $2
echo -a $+ $color(whois) $+ Host: $3 $+ @ $+ $4
echo -a $+ $color(whois) $+ Name: $6-
halt
}
raw 319:*:echo -a $+ $color(whois) $+ Channels: $3- | halt
raw 312:*:echo -a $+ $color(whois) $+ Server: $3 * $4- | halt
raw 301:*:echo -a $+ $color(whois) $+ Afk: $3- | halt
raw 313:*:echo -a $+ $color(whois) $+ Oper: $2 is an oper. | halt
raw 318:*:echo -a $+ $color(whois) $+ </whois> | haltLast edited by Riddle; May 23rd, 2005 at 1:46 AM. Reason: Edited the script a bit. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|