If you are running your script in EQ2Extreme.exe then you do not need to create the EQ2 object, just use the EQ object. (Example: MsgBox EQ.Player.Name)
If you are running in Exhume.exe try this:
Code: Select all
'****MyExhumeSample.VBS
Dim oEQData
set oEQData = COM.CreateCOMObject("EQ2Extreme.EQ2")
if (oEQData is NOTHING) then MsgBox "Nothing"
MsgBox oEQData.Player.Name
Always reference the object directly to get updated data and only use a variable if you don't want the data to change in the middle of your function (usually in loops)
For instance, I create a variable and set it to the player object in my radar display loop so the player position doesn't change while I am drawing.
Hope that helps
