Sounds good! Thanks!
Hello.
First of all thanks for publishing your work.
I would like to ask one thing. I use the namespaces you provided us with from the first post but for some reason I cant use "Process" to get the wow-process. I ma getting (The type or namespace name 'Process' could not be found (are you missing a using directive or an assembly reference?))
As fare as I can see "Process" is nowhere to find within "BlackRain" when I look in the object browser(Visual studio). Or am I totally lost here?
Process is part of System.Diagnostics, so you are indeed missing a using directive![]()
Last edited by caytchen; 06-07-2010 at 02:54 PM.
Thanks!
It is going to be a long night for me tonight![]()
Okay, flame if neccessary but a mineral vein / Herb would be considered what type of object? Looking for a way to generate a list of nearby nodes...
Reported to the issues tracker:
Issue 3 - blackrainobjects - Maximum mana is maximum health - Project Hosting on Google Code
Thanks.
Is there any kind of flag stored that determines whether the node is an herbalism or mining node? Other than looking for the EntryID, and comparing it to an XML file containing all of the Herb and Mineral node ID's? Thanks for any advice...
ISXWoW used to use the model name. There's a virtual function in CGObject_C that returns the model string which you should be able to find and use easily.
You don't need to do a list of all model names or anything, they all have a prefix in their path which you can (ab)use for detection.
EDIT:
That being said, if you have the address of GetLockRec then the method Kynox proposed is much better.
Last edited by Cypher; 06-13-2010 at 02:13 AM.
That should get you going.Code:LockRec* pLockRec = pObject->GetGameObject()->GetLockRec(); if ( pLockRec != nullptr ) { int lockTypeIndex = pLockRec->Index[0]; // If its not herbalism, and its not mining if ( lockTypeIndex != 2 && lockTypeIndex != 3 ) return false; }
Hello,
So I am trying to use Black Rain To get a targets Health. With some help from -Ryuk- we came up with this,
It does not work, so any ideas? It is something simple but I am just not seeing it.Code:/// <summary> /// The Targets Health /// </summary> public virtual int TargetHealth { get { var GUID = GetStorageField<ulong>((uint)Offsets.WowPlayerFields.TargetGUID); return Memory.ReadInt(GUID + (uint)Offsets.WowUnitFields.UNIT_FIELD_BASE_HEALTH); } }
Thanks so much!