Dear visitor, welcome to Gaming Insight Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Anonymous

Unregistered

1

Sunday, March 16th 2008, 4:45pm

dbm version check api

Hi, im writing a simple raid check addons that reports various info about all the members of a raid.

i would like to be able to query to see if a user has dbm and what version. i did a quick read of the core.lua and couldnt find any "check version" function.

whats the easiest way for me to do something like that?

2

Sunday, March 16th 2008, 6:45pm

There is a version check build in DBM already ;)

Open DBM Options Menu -> 'General' tab -> "Version Check" button in the right upper corner of the options window

This will print a list of DBM-users and which version they use in the default(?) chat window.

(Will take a quick look on what the command is to list it without pressing that button: "/dbm ver" is the chat command)


function DBM.OnLoad() -- (line 579 in the API.lua of v3.10 Alpha 15)

3

Tuesday, March 18th 2008, 1:17pm

CHAT_MSG_ADDON, RAID
arg1 = "LVBM NSP"
arg2 = "VER version version_beta revision"

There are 2 different version numbers for legacy reasons. Your addon should use the version_beta and revision variables. DBM also shows these variables in version checks and in the GUI.