Xbox Live Gamer-Tag Look-Up Socket
Platform: mIRC
Published Apr 18, 2012
Updated Apr 18, 2012
This looks-up gamer-tags/gamerscores for Xbox Live. Seeing what the persons online status an gamer score.
Copy/paste into a new remote of your bot trigger is @xbox <gamer-tag>
Have fun with it, and like always go ahead an rip, trash, or set fire to this snippet any way you see fit.
I don't care.
Example:
Quote
<~napa182> @xbox ur a moron
<~Sick0> Ooops! I don't know who "ur a moron" is. Looks like you may have misspelled the Gamer-tag you are looking for.
<~napa182> @xbox Rustyshack760sr
<~Sick0> Rustyshack760sr, Last seen 5 hours ago playing Call of Duty Black Ops - Gamerscore 60
<~napa182> @xbox rising son 13
<~Sick0> rising son 13, Last seen 8 hours ago playing Call of Duty Black Ops - Gamerscore 5775
<~napa182> @xbox rising son 13
<~Sick0> rising son 13, Online playing Modern Warfare® 2 - Playing Team Deathmatch in Terminal - Gamerscore 5775
<~napa182> @xbox StealthyPeer
<~Sick0> StealthyPeer, Last seen 13 hours ago playing Xbox Dashboard - Gamerscore 61515
on $*:text:/^@xbox\s(.+)/iS:# {
if (!%f) { inc -u3 %f
if ($sock(xbox)) sockclose xbox
sockopen xbox live.xbox.com 80
sockmark xbox $+(/en-US/Profile?gamertag=,$replace($regml(1),$chr(32),$+($chr(37),20))) $&
msg # $+(04,$regml(1),)
}
}
on *:sockopen:xbox: {
sockwrite -nt xbox GET $gettok($sock(xbox).mark,1,32) HTTP/1.1
sockwrite -nt xbox Host: $+($sock(xbox).addr,$str($crlf,2))
}
on *:load: {
echo 12 -a You Have Just Loaded Napa182's Xbox Live Look-up Socket
echo 07 -a A irc.EzzyChat.com Production
}
on *:sockread:xbox: {
var %xbox | sockread %xbox
if ($regex(%xbox,/<h1.+CustomErrorTitle.+>(Ooops!).+<\/h1>/)) {
$gettok($sock(xbox).mark,2-3,32) $regml(1) I don't know who $+(",$gettok($sock(xbox).mark,4-,32),") is. $&
Looks like you may have misspelled the Gamer-tag you are looking for.
sockclose xbox
}
if ($regex(%xbox,/<div.+presence.+>(.+)<\/div>/)) {
hadd -m xbox 1 $regsubex($regml(1),/&#(\d+);/g,$chr(\1))
}
if ($regex(%xbox,/<div.+gamerscore.+>(\d+)<\/div>/)) {
$+($gettok($sock(xbox).mark,2-,32),$chr(44)) $hget(xbox,1) - 04Gamerscore $regml(1)
sockclose xbox
}
}