Unofficial World of Warcraft Forums  
Please respect other members. Please do not post links or information about hacking/warez/cheats.
Read the rules of these forums as we rarely warn before banning. Lost or need RSS check the forum map.

Quick Site Nav
Navigation
Worldofwar.Net
WoW Forums
WoWDigger WoW Database
Articles
Community Blogs
WoW Info
Wrath of the Lich King Info
Primary Professions
Secondary Professions
Maps
Classes
PvP
A-Z Index
Guides
Submit Guides
List Guides
UI/Mods
Latest Mods
Submit Mod
List Macros
Submit Macro
Media Gallery
Gallery Home
Upload Pics
Community WoW Shots
Community BC Shots
Player Pics
Official WoW Shots
Official BC Shots


Donate and get extra forum perks
Support WoW:IncGamers

Go Back   Unofficial World of Warcraft Forums > WoW Community Forums > UI Customisation > UI/Mod Developer Forum

Reply
 
Thread Tools Display Modes
Old 02-06-2006, 10:11 AM   #1
bnelsonjax
WorldofWar.Net Member
 
Join Date: Apr 2006
Posts: 12
possible to get class info from a whisper?

I need to find out the class type of a person that whispers me.

Does anyone know the function or code to do that?
bnelsonjax is offline   Reply With Quote
Old 02-06-2006, 07:29 PM   #2
Xinh
WorldofWar.Net Member
 
Xinh's Avatar
 
Join Date: Dec 2005
Location: Torino, Italy
Posts: 647
Shift click on the person's name to get Class, guild, and location info
Xinh is offline   Reply With Quote
Old 04-06-2006, 07:37 AM   #3
bnelsonjax
WorldofWar.Net Member
 
Join Date: Apr 2006
Posts: 12
this is the developers forum, im aware how to shift click on a name.

Im asking for function or code that would lookup the players class if they whisper you.
something like UnitClass...anyone know?
bnelsonjax is offline   Reply With Quote
Old 04-06-2006, 09:11 AM   #4
BamED
WoW: IncGamers Member
 
Join Date: Oct 2005
Location: Denmark
Posts: 79
There is no direct way of doing that. You will probably have to use the functions and events that the "Who"-interface uses. I have never used them myself, so I cannot give much help. There is some documentation here:

http://www.wowwiki.com/World_of_Warc...#Who_Functions

AFAIK, the who-functionality is asynchrone. That means, when you request information from the server, the result is not returned immediately. Instead an event will be fired later when the result is ready for retrieval using other functions. There is also a time limit on how often the client can make a who-request. So you are not guaranteed to always get a result back. Lastly, doing a who-request may open up the Who-dialog or print results to the chat window. It is possible that you could hook into Blizzard's code for the who-dialog to prevent that, though.

In summary, it's not easy and you are never sure to get a result. So don't make you program too dependent on it.
BamED is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:39 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Advertisement System V2.5 By   Branden