cowdude
Active Member
- Joined
- Feb 17, 2010
- Messages
- 337
- Reaction score
- 27
Hi folks,
Here's my latest beta build of CowStats. Currently running fine, does not crash HB anymore. It has been fully rewritten to be a LOT less dependant on LUA and threads. I currently lack of money but decided to work hours in order to update/upgrade this wonderful tool for the community. Hope you'll enjoy it.
Current: CowStats 3.0.2
Latest update: 7/15/2010
Reason: HB 1.9.50 compat.
If you're too lazy to read this page and think things just work out of the box, I suggest you get the **** out of here. Hint: Here.
Features
Displays stats: player name, class and level, XP, XP/hour, time to level up, gold/hour, and much more
Takes a screenshot of the game window
customizable layout (drag-and-drop)
"beep" on some chat events (flash 9 needed)
Shows a map with the player location
Chat logging
Displays Honorbuddy log
Logs anything your bot loots
Remote control (see below)
New: Fake live monitoring (max 4fps on localhost, else ~max 2fps)
New: Shows your toon and current target portraits
New (3.0.1): Supports sending accents/Unicode chars in remote commands, including chat messages
(New: Less goddamn bugs)
About remote control
Well, this has nothing to do with real freaking live remote control yet. It's a very basic command line interface. But still, it allows you to :
- Remote execute any LUA code, function or macro (complete list at http://www.wowwiki.com/World_of_Warcraft_API)
- Send any chat message
- Reply to whispers
- Shutdown HB and WoW
- New: reply to latest whisper
It still needs to be improved (which functions/macro could be helpful?)
Lua examples:
lua OpenAllBags() - Open all your bags
lua SendChatMessage("Hello world" ,"GUILD" ,GetDefaultLanguage("player")); - send a guild message
lua ForceQuit() - Close the game
lua return GetCoinText(GetMoney(),", ") - prints how much gold, silver and copper pieces you have
Install guide
Configuration
How does it work (technical stuff)
CowStats core opens a TCP port on your computer (1234 by default), which is password protected.
You can connect to it and fetch CowStats data using a simple ASCII "line-per-line" protocol. You can even get the screenshot (base64 encoded) or execute remote LUA code with it! Note that HB fails sometimes, which leads CowStats to answer "NAK" (not acknowledge) is something went wrong.
CowStats HTTP Server is a very, very basic HTTP server that only send files from the Plugins/CowStats_http/www/ folder. It uses by default the TCP port 8080. You can change it if you want: see "configuration".
Bugs
TODO
If you have any intelligent question, feel free to ask.
If you're smart enough to write an install guide for kids, (feel free)? to publish it somewhere on this board.
Currently working on HB 1.945 @ localhost. Couldnt test it on a remote computer, please give me any constructive feedback.
Thanks to everyone from the Dev board who answered my questions.
"Enjoy"
Here's my latest beta build of CowStats. Currently running fine, does not crash HB anymore. It has been fully rewritten to be a LOT less dependant on LUA and threads. I currently lack of money but decided to work hours in order to update/upgrade this wonderful tool for the community. Hope you'll enjoy it.
Current: CowStats 3.0.2
Latest update: 7/15/2010
Reason: HB 1.9.50 compat.
If you're too lazy to read this page and think things just work out of the box, I suggest you get the **** out of here. Hint: Here.

Features
Displays stats: player name, class and level, XP, XP/hour, time to level up, gold/hour, and much more
Takes a screenshot of the game window
customizable layout (drag-and-drop)
"beep" on some chat events (flash 9 needed)
Shows a map with the player location
Chat logging
Displays Honorbuddy log
Logs anything your bot loots
Remote control (see below)
New: Fake live monitoring (max 4fps on localhost, else ~max 2fps)
New: Shows your toon and current target portraits
New (3.0.1): Supports sending accents/Unicode chars in remote commands, including chat messages
(New: Less goddamn bugs)
About remote control
Well, this has nothing to do with real freaking live remote control yet. It's a very basic command line interface. But still, it allows you to :
- Remote execute any LUA code, function or macro (complete list at http://www.wowwiki.com/World_of_Warcraft_API)
- Send any chat message
- Reply to whispers
- Shutdown HB and WoW
- New: reply to latest whisper
It still needs to be improved (which functions/macro could be helpful?)
Lua examples:
lua OpenAllBags() - Open all your bags
lua SendChatMessage("Hello world" ,"GUILD" ,GetDefaultLanguage("player")); - send a guild message
lua ForceQuit() - Close the game
lua return GetCoinText(GetMoney(),", ") - prints how much gold, silver and copper pieces you have
Install guide
- I don't have an HTTP server yet
- Downloads: CowStats.zip and CowStats_http.zip
- Unzip both files into your Plugins/ folder. Check that this path is correct: "Plugins/CowStats_http/www", NOT "Plugins/CowStats_http/CowStats_http/www"...
- Close HB.
- Check that ports 1234 and 8080 are available (see "configuration" to change ports once you completed this install guide)
- Open HB, go to the Plugins tab. Enable both CowStats addons.
- Start HB. Any error message? I guess you should read and fix them.
- Go to http://localhost:8080/auth.htm and submit the form. Don't worry about the fields for the moment.
- You should have been redirected to http://localhost:8080/index.htm. If everything worked, you should see your bot in action.
- Duh, what if I dont know wtf is an HTTP server?
You mostly don't have one, then. Read "I don't have an HTTP server yet". - I have an HTTP server (can be on a remote host)
- Downloads: CowStats.zip and CowStats_http.zip (just keep the www/ folder)
- Install the www folder somewhere on your HTTP server.
- Install CowStats plugin inside your Plugins/ directory.
- Start reading "I don't have an HTTP server yet" at step 3 and follow the instructions.
Note: If you're using a different computer to host the HTTP client and run HB, ensure that you fill the HTML form correctly (default settings are fine, just check the host IP, which must be the computer's IP on which you run HB.
Configuration
- CowStats core
Just go to the Plugins tab of HB, select CowStats and click on the config button. Simple as that. yay. - CowStats HTTP Server
You cannot configure it with HB at the moment, because I'm a bit lazy. Once you started HB with this plugin installed, you can edit the Plugins/CowStats_http/config.txt file and set a different port for your HTTP server. - CowStats client (well, the webpage itself)
If you made a mistake when you configured your client, ie. you set a wrong password or whatever, you can reset your settings by going back on the auth.htm webpage or erase your cookies.
How does it work (technical stuff)
CowStats core opens a TCP port on your computer (1234 by default), which is password protected.
You can connect to it and fetch CowStats data using a simple ASCII "line-per-line" protocol. You can even get the screenshot (base64 encoded) or execute remote LUA code with it! Note that HB fails sometimes, which leads CowStats to answer "NAK" (not acknowledge) is something went wrong.
CowStats HTTP Server is a very, very basic HTTP server that only send files from the Plugins/CowStats_http/www/ folder. It uses by default the TCP port 8080. You can change it if you want: see "configuration".
Bugs
- CowStats core runs as long as it is installed into your Plugins folder
- Causes ~3.14^42 memread errors if you let the client run with a high refresh rate
- Loots tracking broken once the bot sells/mails his stuff
- Cannot send remote commands with non-ASCII chars..................................... Solved
- Wrong float format Solved
- Some maps don't have abs offsets to compute relative map coords (like Dalaran)
TODO
- CowStats Remote server + CowStats Remote (allow you to use CowStats even if you cannot open ports)
- Fix teh damn bugz
- Have a life and get a real job.
If you have any intelligent question, feel free to ask.
If you're smart enough to write an install guide for kids, (feel free)? to publish it somewhere on this board.
Currently working on HB 1.945 @ localhost. Couldnt test it on a remote computer, please give me any constructive feedback.
Thanks to everyone from the Dev board who answered my questions.

"Enjoy"
Attachments
Last edited: