Can anyone help me with this..
alias tib.s {
sockclose Tibia
sockopen Tibia www.tibia.4players.de 80
if ($1-) {
.sockmark Tibia $+(/community/?subtopic=character&name=,$1-)
}
}
on *:sockopen:Tibia:{
if ($sockerr) {
echo $color(info) -s *** Socket Error (on open) \ $sockname - $sock($sockname).ip
return
}
sockwrite -n $sockname GET $sock($sockname).mark HTTP/1.1
sockwrite -n $sockname Accept: */*
sockwrite -n $sockname Host: www.tibia.com
sockwrite -n $sockname $crlf
}
on *:sockread:Tibia:{
if ($sockerr) {
echo $color(info) -s *** Socket Error (on read) \ $sockname - $sock($sockname).ip
return
}
sockread -fn %tmp
echo -a $iif(%tmp == $null,-,%tmp)
}
It's supposed to connect to..
http://tibia.4players.de/community/?subtopic=character&name=NAME, where NAME is what you use with the alias. I was wanting it to give me everything about the player up to Residence, and no more. Think anyone can help? Thanks.
Regards, Dillon Dixon (Magus)