You can't return a &bvar this way, here $hex2bvar will return "&bvar", you could do something like :

Quote:
alias sending {
bset &bvar 1 $regsubex($2-,/(\S+)/g,$base(\1,16,10))
sockwrite $1 &bvar
bunset &bvar
}

and use /sending sockname value value1 valueN


#mircscripting @ irc.swiftirc.net == the best mIRC help channel