LibCareerDB

This project has become inactive.

This project is inactive and its default file will likely not work with the most recent version of Warhammer Online: Age of Reckoning. The author may have abandoned it, or it may have outlived its usefulness.

LibCareerDB is a storage library for capturing player careers in scenarios and groups and saving them between sessions.

By default, the WAR API does not make career data available for units outside of groups or scenarios. This addon simply saves that data for later retrieval.

Data capture and storage is automatic. If you have ever seen a player in a scenario or a group, you will know the career of that player whenever you run across them. Devs simple need to access the stored data using one of the following two methods:

Usage
playerCareer, hasCareer = CareerDB.GetCareer(playerName)
---where playerName = wstring of player's name; parses out extra characters if needed
playerCareer, hasCareer = CareerDB.GetCareerByTarget(targetType)
---where targetType = "selffriendlytarget" or "selfhostiletarget" or "mouseovertarget"

Getting other TargetInfo:
This library is designed to only save Career information because that is the only information not easily found in the Default API. Most other information can be found by simple using the default WAR API:

TargetInfo.m_Units[targetType].name
TargetInfo.m_Units[targetType].entityid
TargetInfo.m_Units[targetType].healthPercent
TargetInfo.m_Units[targetType].type (ex: SystemData.TargetObjectType.SELF)
TargetInfo.m_Units[targetType].level
TargetInfo.m_Units[targetType].tier
TargetInfo.m_Units[targetType].conType
TargetInfo.m_Units[targetType].isPvP
TargetInfo.m_Units[targetType].isNPC

TargetInfo.m_Units["selffriendlytarget"].name = returns the player name of your friendly target.

Proof of concept
Please see my proof of concept addon CareerText for an example of how to use this data.

You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
17 Oct 2008
Category
Last update
17 Oct 2008
Development stage
Inactive
Language
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
LibCareerDB
Recent file

Authors