hi i think no need for goto loop and i prefer to add "wx" only to unset the global variable and replace the sockmark by set %wxchan # and %wxnick $nick
Code:
on *:sockread:player:{
var %read | sockread %read
if ($regex(read,%read,/\<tr class="TBLmid"><td>([^<]+)<\/td><td>/)) set -l %wx $+ $replace($regml(read,1),$chr(32),_) $remove($nohtml(%read),$regml(read,1))
}
then u use ON SOCKCLOSE event to send msg if exist result something like
Code:
on *:sockclose:player:{
if %var here {
msg %wxchan %wxplayer $+(<,%wxguild,>) Rank: %wxrealmrank Pts: %wxrealmpoints
unset %wx*
}
}
and for the alias nohtml u can use $regsubex
Code:
alias -l nohtml return $remove($regsubex($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,), ,$chr(9))