|
From: <ha...@us...> - 2003-03-07 19:18:03
|
Update of /cvsroot/decaldev/source/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv1339
Modified Files:
Decal.idl
Log Message:
SelectItemHook + fix for some of the hook enums
Index: Decal.idl
===================================================================
RCS file: /cvsroot/decaldev/source/Include/Decal.idl,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** Decal.idl 22 Feb 2003 04:56:52 -0000 1.30
--- Decal.idl 7 Mar 2003 19:17:53 -0000 1.31
***************
*** 8,21 ****
import "ocidl.idl";
! /* I'm not 100% sure about this */
! enum eTrainLevel
! {
! eUntrained = 1,
! eTrained = 2,
! eSpecialized = 3,
! eTrainLevel_DWORD = 0x7FFFFFFF
! };
!
! enum eVital
{
eCurrentHealth = 1,
--- 8,12 ----
import "ocidl.idl";
! enum eAttribute
{
eCurrentHealth = 1,
***************
*** 25,40 ****
eCurrentMana = 5,
eMaximumMana = 6,
! eBaseHealth = 7,
eBaseStamina = 8,
! eBaseMana = 9,
! eVital_DWORD = 0x7FFFFFFF
! };
!
! enum eAttribute
! {
eCurrentStrength = 1,
eCurrentEndurance = 2,
eCurrentQuickness = 3,
! eCurrentCoordination = 4,
eCurrentFocus = 5,
eCurrentSelf = 6,
--- 16,26 ----
eCurrentMana = 5,
eMaximumMana = 6,
! eBaseHealth = 7,
eBaseStamina = 8,
! eBaseMana = 9,
eCurrentStrength = 1,
eCurrentEndurance = 2,
eCurrentQuickness = 3,
! eCurrentCoordination = 4,
eCurrentFocus = 5,
eCurrentSelf = 6,
***************
*** 43,75 ****
eBaseQuickness = 9,
eBaseCoordination = 10,
! eBaseFocus = 11,
! eBaseSelf = 12,
! eAttribute_DWORD = 0x7FFFFFFF
};
enum eSkill
{
! eCurrentAxe = 1,
! eCurrentBow = 2,
! eCurrentCrossbow = 3,
! eCurrentDagger = 4,
! eCurrentMace = 5,
eCurrentMeleeDefense = 6,
eCurrentMissileDefense = 7,
! eCurrentSpear = 9,
! eCurrentStaff = 10,
! eCurrentSword = 11,
eCurrentThrownWeapons = 12,
! eCurrentUnarmed = 13,
! eCurrentArcaneLore = 14,
eCurrentMagicDefense = 15,
eCurrentManaConversion = 16,
eCurrentItemTinkering = 18,
eCurrentAssessPerson = 19,
! eCurrentDeception = 20,
! eCurrentHealing = 21,
! eCurrentJump = 22,
! eCurrentLockpick = 23,
! eCurrentRun = 24,
eCurrentAssessCreature = 27,
eCurrentWeaponTinkering = 28,
--- 29,60 ----
eBaseQuickness = 9,
eBaseCoordination = 10,
! eBaseFocus = 11,
! eBaseSelf = 12
};
enum eSkill
{
! eCurrentAxe = 1,
! eCurrentBow = 2,
! eCurrentCrossbow = 3,
! eCurrentDagger = 4,
! eCurrentMace = 5,
eCurrentMeleeDefense = 6,
eCurrentMissileDefense = 7,
! eCurrentSpear = 9,
! eCurrentStaff = 10,
! eCurrentSword = 11,
eCurrentThrownWeapons = 12,
! eCurrentUnarmed = 13,
! eCurrentArcaneLore = 14,
eCurrentMagicDefense = 15,
eCurrentManaConversion = 16,
eCurrentItemTinkering = 18,
eCurrentAssessPerson = 19,
! eCurrentDeception = 20,
! eCurrentHealing = 21,
! eCurrentJump = 22,
! eCurrentLockpick = 23,
! eCurrentRun = 24,
eCurrentAssessCreature = 27,
eCurrentWeaponTinkering = 28,
***************
*** 78,159 ****
eCurrentCreatureEnchantment = 31,
eCurrentItemEnchantment = 32,
! eCurrentLifeMagic = 33,
! eCurrentWarMagic = 34,
! eCurrentLeadership = 35,
! eCurrentLoyalty = 36,
eCurrentFletchingSkill = 37,
eCurrentAlchemySkill = 38,
eCurrentCookingSkill = 39,
! eBaseAxe = 51,
! eBaseBow = 52,
! eBaseCrossbow = 53,
! eBaseDagger = 54,
! eBaseMace = 55,
! eBaseMeleeDefense = 56,
! eBaseMissileDefense = 57,
! eBaseSpear = 59,
! eBaseStaff = 60,
! eBaseSword = 61,
! eBaseThrownWeapons = 62,
! eBaseUnarmed = 63,
! eBaseArcaneLore = 64,
! eBaseMagicDefense = 65,
! eBaseManaConversion = 66,
! eBaseItemTinkering = 68,
! eBaseAssessPerson = 69,
! eBaseDeception = 70,
! eBaseHealing = 71,
! eBaseJump = 72,
! eBaseLockpick = 73,
! eBaseRun = 74,
! eBaseAssessCreature = 77,
eBaseWeaponTinkering = 78,
! eBaseArmorTinkering = 79,
eBaseMagicItemTinkering = 80,
eBaseCreatureEnchantment = 81,
eBaseItemEnchantment = 82,
! eBaseLifeMagic = 83,
! eBaseWarMagic = 84,
! eBaseLeadership = 85,
! eBaseLoyalty = 86,
! eBaseFletchingSkill = 87,
! eBaseAlchemySkill = 88,
! eBaseCookingSkill = 89,
! eSkill_DWORD = 0x7FFFFFFF
};
enum eAvailableHooks
{
! ePrevSelect = 0x00000001,
eCurrentSelect = 0x00000002,
! eMouse = 0x00000004,
! eCastSpell = 0x00000008,
! eMoveItem = 0x00000010,
! eSelectItem = 0x00000020,
! eUseItem = 0x00000040,
eCombatState = 0x00000080,
! eChatState = 0x00000100,
eGetFellowStats = 0x00000200,
! eStackCount = 0x00000400,
eTestFormula = 0x00000800,
! eVendorID = 0x00001000,
! eBusyState = 0x00002000,
eBusyStateID = 0x00004000,
ePointerState = 0x00008000,
! eMoveItemEx = 0x00010000,
! ePosition = 0x00020000,
eFaceHeading = 0x00040000,
eArea3DWidth = 0x00080000,
eArea3DHeight = 0x00100000,
eObjectDestroyed = 0x00200000,
! eSendTell = 0x00400000,
! eSetAutorun = 0x00800000,
! eGetVital = 0x01000000,
! eSendTellEx = 0x02000000,
eLocalChatText = 0x04000000,
eLocalChatEmote = 0x08000000,
eSetCombatState = 0x10000000,
eGetAttribute = 0x20000000,
! eGetSkill = 0x40000000,
eHooksAvailEx = 0x80000000
};
--- 63,143 ----
eCurrentCreatureEnchantment = 31,
eCurrentItemEnchantment = 32,
! eCurrentLifeMagic = 33,
! eCurrentWarMagic = 34,
! eCurrentLeadership = 35,
! eCurrentLoyalty = 36,
eCurrentFletchingSkill = 37,
eCurrentAlchemySkill = 38,
eCurrentCookingSkill = 39,
! eBaseAxe = 51,
! eBaseBow = 52,
! eBaseCrossbow = 53,
! eBaseDagger = 54,
! eBaseMace = 55,
! eBaseMeleeDefense = 56,
! eBaseMissileDefense = 57,
! eBaseSpear = 59,
! eBaseStaff = 60,
! eBaseSword = 61,
! eBaseThrownWeapons = 62,
! eBaseUnarmed = 63,
! eBaseArcaneLore = 64,
! eBaseMagicDefense = 65,
! eBaseManaConversion = 66,
! eBaseItemTinkering = 68,
! eBaseAssessPerson = 69,
! eBaseDeception = 70,
! eBaseHealing = 71,
! eBaseJump = 72,
! eBaseLockpick = 73,
! eBaseRun = 74,
! eBaseAssessCreature = 77,
eBaseWeaponTinkering = 78,
! eBaseArmorTinkering = 79,
eBaseMagicItemTinkering = 80,
eBaseCreatureEnchantment = 81,
eBaseItemEnchantment = 82,
! eBaseLifeMagic = 83,
! eBaseWarMagic = 84,
! eBaseLeadership = 85,
! eBaseLoyalty = 86,
! eBaseFletchingSkill = 87,
! eBaseAlchemySkill = 88,
! eBaseCookingSkill = 89
};
enum eAvailableHooks
{
! ePrevSelect = 0x00000001,
eCurrentSelect = 0x00000002,
! eMouse = 0x00000004,
! eCastSpell = 0x00000008,
! eMoveItem = 0x00000010,
! eSelectItem = 0x00000020,
! eUseItem = 0x00000040,
eCombatState = 0x00000080,
! eChatState = 0x00000100,
eGetFellowStats = 0x00000200,
! eStackCount = 0x00000400,
eTestFormula = 0x00000800,
! eVendorID = 0x00001000,
! eBusyState = 0x00002000,
eBusyStateID = 0x00004000,
ePointerState = 0x00008000,
! eMoveItemEx = 0x00010000,
! ePosition = 0x00020000,
eFaceHeading = 0x00040000,
eArea3DWidth = 0x00080000,
eArea3DHeight = 0x00100000,
eObjectDestroyed = 0x00200000,
! eSendTell = 0x00400000,
! eSetAutorun = 0x00800000,
! eGetVital = 0x01000000,
! eSendTellEx = 0x02000000,
eLocalChatText = 0x04000000,
eLocalChatEmote = 0x08000000,
eSetCombatState = 0x10000000,
eGetAttribute = 0x20000000,
! eGetSkill = 0x40000000,
eHooksAvailEx = 0x80000000
};
***************
*** 162,171 ****
enum eAvailableHooksEx
{
! eLogout = 0,
! eSecureTrade_Add = 1,
! eColorEx = 2,
! eSkillInfo = 3,
! eAttributeInfo = 4,
! eVitalInfo = 5,
eAvailableHooksEx_DWORD = 0x7FFFFFFF // coerce enums into 4 byte instead of two
};
--- 146,153 ----
enum eAvailableHooksEx
{
! eLogout = 0,
! eObjectFromGUID = 1,
! eObjectFromGUIDClass = 2,
! eOnSelectItemEvent = 3,
eAvailableHooksEx_DWORD = 0x7FFFFFFF // coerce enums into 4 byte instead of two
};
***************
*** 264,280 ****
[id(43), helpstring("method Logout")] HRESULT Logout();
[id(44), helpstring("method SetDecal")] HRESULT SetDecal([in] IUnknown *pDecal);
- [id(45), helpstring("method SecureTrade_Add")] HRESULT SecureTrade_Add([in] long ItemID, [out, retval] VARIANT_BOOL *pVal);
-
- [propget, id(46), helpstring("property SkillTrainLevel")] HRESULT SkillTrainLevel([in] enum eSkill SkillID, [out, retval] enum eTrainLevel *pVal);
- [propget, id(47), helpstring("property SkillTotalXP")] HRESULT SkillTotalXP([in] enum eSkill SkillID, [out, retval] int *pVal);
- [propget, id(48), helpstring("property SkillFreePoints")] HRESULT SkillFreePoints([in] enum eSkill SkillID, [out, retval] int *pVal);
- [propget, id(49), helpstring("property SkillClicks")] HRESULT SkillClicks([in] enum eSkill SkillID, [out, retval] int *pVal);
-
- [propget, id(50), helpstring("property AttributeTotalXP")] HRESULT AttributeTotalXP([in] enum eAttribute AttributeID, [out, retval] int *pVal);
- [propget, id(51), helpstring("property AttributeClicks")] HRESULT AttributeClicks([in] enum eAttribute AttributeID, [out, retval] int *pVal);
- [propget, id(52), helpstring("property AttributeStart")] HRESULT AttributeStart([in] enum eAttribute AttributeID, [out, retval] int *pVal);
-
- [propget, id(53), helpstring("property VitalTotalXP")] HRESULT VitalTotalXP([in] enum eVital VitalD, [out, retval] int *pVal);
- [propget, id(54), helpstring("property VitalClicks")] HRESULT VitalClicks([in] enum eVital VitalID, [out, retval] int *pVal);
};
--- 246,249 ----
***************
*** 419,422 ****
--- 388,392 ----
[id(2), helpstring("method OnChatBoxMessage")] VARIANT_BOOL OnChatBoxMessage([in] BSTR bstrText, [in] LONG lColor, [in,out] VARIANT_BOOL *bEat );
[id(3), helpstring("method OnCommandLineText")] VARIANT_BOOL OnCommandLineText([in] BSTR bstrText, [in,out] VARIANT_BOOL *bEat );
+ [id(4), helpstring("method SelectItem")] HRESULT SelectItem([in] LONG lGuid);
};
|