Yeah but I'm going to use these vars in other parts of my script too, so that I don't need to dns everyone everytime I want to use their ip. Thanks for the indeed logical solution!
Set doesn't use the = operator like "set %variable = value" that is only with" var %variable = value" or when assigning a value to a variable like "%variable = value"
So use "set %variable value" instead and they won't be there.
simple thing really you plan to use them elsewhere so they must be globals which employ /set as opposed to local variables which can only be called from within the script that creates them /var i dont know why im telling you this since your a better scriptor than i am maybe for others benefit
You should really check for $dns().nick so if you dns an address\ip you don't end up with %_ip 209.240.130.48 %_adress mirc.com * DNS Result: Nick: / Adress: mirc.com / IP: 209.240.130.48
Code:
on *:dns:{
[color:blue] if $dns(1).nick {[/color]
set $+(%,$v1,_ip) $dns(1).ip
set $+(%,$v1,_adress) $dns(1).addr
echo 4 -a * DNS Result:3 Nick: $v1 / Adress: $($+(%,$v1,_adress),2) / IP: $($+(%,$v1,_ip),2)
[color:blue] }[/color]
}