WoWHead client for Linux

This is highly unofficial, but if you want to upload your World of Warcraft statistics to WoWHead in Linux, then you might be able to do so by using the following script. You will need curl and wget installed.


#!/bin/sh

#Path to WoW
WOW="/home/user/games/World of Warcraft"
#User name on WoWHead
USER="guest"
#MD5sum of your WoWHead password
PASS="badbeef666badbeef666badbeef666ba"
#You MAC address (without separators, lower case)
MAC="010203040a0b"
#WoW account name
ACC="wowman"
#WoW Locale
LOCALE="enUS"

# Ignoring the update info for now, just downloading it all
wget -q http://client.wowhead.com/files/updates.xml -O /dev/null
rm -rf "$WOW/Interface/Addons/+Wowhead_Looter"
mkdir -p "$WOW/Interface/Addons/+Wowhead_Looter"
wget -q http://client.wowhead.com/files/Wowhead_Looter.lua -O "$WOW/Interface/Addons/+Wowhead_Looter/Wowhead_Looter.lua"
wget -q http://client.wowhead.com/files/+Wowhead_Looter.toc -O "$WOW/Interface/Addons/+Wowhead_Looter/+Wowhead_Looter.toc"
wget -q http://client.wowhead.com/files/Wowhead_Looter.xml -O "$WOW/Interface/Addons/+Wowhead_Looter/Wowhead_Looter.xml"
wget -q http://client.wowhead.com/files/Localization.lua -O "$WOW/Interface/Addons/+Wowhead_Looter/Localization.lua"

# Ignoring authentification errors. This should return "0" on a sucessful login.
wget -nv "http://client.wowhead.com/auth.php?username=$USER&password=$PASS&macAddress=$MAC" -O /dev/null

# Uploading all data
TMPDIR=`mktemp -d`
cd $TMPDIR
cp "$WOW/wtf/Account/$ACC/SavedVariables/+Wowhead_Looter.lua" .
cp "$WOW/Cache/wdb/$LOCALE/creaturecache.wdb" .
cp "$WOW/Cache/wdb/$LOCALE/gameobjectcache.wdb" .
cp "$WOW/Cache/wdb/$LOCALE/itemcache.wdb" .
cp "$WOW/Cache/wdb/$LOCALE/pagetextcache.wdb" .
cp "$WOW/Cache/wdb/$LOCALE/questcache.wdb" .
gzip *
curl -F "file0=@+Wowhead_Looter.lua.gz" -F "file1=@creaturecache.wdb.gz" -F "file2=@gameobjectcache.wdb.gz" -F "file3=@itemcache.wdb.gz" -F "file4=@pagetextcache.wdb.gz" -F "file5=@questcache.wdb.gz" "http://client.wowhead.com/upload.php?username=$USER&password=$PASS&macAddress=$MAC"
cd
rm -rf $TMDIR

To get MD5sum of your password use this:

echo -n "password" | md5sum

Popularity: 18% [?]

Comments (2) to “WoWHead client for Linux”

  1. This script works rather well.

    Beware case sensitivity! My WTF and WDB folders were capitalized. Same goes for my login name.

  2. Would be nice to get some feedback… maybe parse the wdb files? Or at least say how much of it was new?

    (For reference, my WDB and WTF folders were also capitalised.)

    Thanks for the script!

Post a Comment
*Required
*Required (Never published)