[1.13c] Functions List
Moderators: Nefarius, Havvoric
[1.13c] Functions List
Re: [1.13c] Functions List
D2Common.#10017 (on Stack ItemNumber)
D2Common.#10432 (on Stack pUnit of the item)
Returns MaxStack from items.txt for item
D2Common.#10743 (on Stack ItemNumber)
D2Common.#10463 (on Stack pUnit of the item) [if Item haves modifier "item_extra_stack" -> add value to MaxStack; Sum is capped to 511]
Returns Pointer to the items.txt for item
D2Common.#10695 (on Stack ItemNumber)
GetStatSigned
D2Common.#10910 (on Stack layerNo, StatNo & ptUnit)
Re: [1.13c] Functions List
Code: Select all
D2Common.#10973
arg1: ptUnit
arg2: stat ID in ISC.txt
arg3: (always 0?)
Code: Select all
D2Common.#10672
arg1: ptUnit
Code: Select all
D2Game.0177DE90
arg1: defender ptUnit
arg2: AR%
arg3: attack type, 1=ranged, 0=melee
EAX: attacker ptUnit
return: 0 for miss, 1 for hit.
* rand(100) and 5/95% capping are all inlined here
Code: Select all
D2Game.#10653
arg1: ptUnit
arg2: skill id
arg3: skill level
Code: Select all
D2Common.#10082
arg1: row index in combined weapons/armo/misc
returns: row index in itemtypes.txt
Code: Select all
D2Common.#10744
arg1: item unit ptr
arg2: itemtype row idx (e.g. weapon = 2d)
returns: 1 if arg1 is of type arg2, 0 otherwise
Re: [1.13c] Functions List
>arg3: (always 0?)
No - for some IDs there is additional information. (f.e. SkillNo for ID 195 [skillonattack])
======
D2Lang.#10003 same as in v1.10 ( viewtopic.php?f=8&t=14293 )
D2.Common.#10049 - EAX = Inventory Gold Limit (Push pUnit of Player)
D2.Common.#11060 - EAX = Stash Gold Limit (Push pUnit of Player) [Returns always 2.5M]
Get Flag "2handed" (->EAX) from MiscArmorWeapon.TXT of a item:
D2Common.#10326 (Push pUnit Item) {Jumps to #11137}
D2Common.#11137 (Push Item No MiscArmorWeapon.TXT)
Get Word "type" (->AX) [Row number in ItemTypes.TXT] from MiscArmorWeapon.TXT of a item:
D2Common.#11088 (Push pUnit Item) {Jumps to #10082}
D2Common.#10082 (Push Item No MiscArmorWeapon.TXT)
Get Byte "Throwable" from ItemTypes.TXT for a item
D2Common.#10711 (Push pUnit Item)
Get Offset in MisArmorWeapon.TXT of item in pUnit Item
D2Common.#10695 (Push pUnit Item)
Get Byte "Class" (->EAX) from ItemTypes of the Item [07 for everybody use items]
D2Common.#10822 (Push pUnit Item)
Get ItemFormat of an item (->EAX)
D2Common.#10718 (Push pUnit of Item)
- Necrolis
- Throne
- Posts: 9125
- Joined: Sat Mar 25, 2006 1:22 pm
- Location: The Land of the Dead
- Contact:
Re: [1.13c] Functions List
this would be the param of the stat, internally its used to layer stats via (statid << 16 | layer & 0xFFFF)Pangaea" wrote:>D2Common.#10973
>arg3: (always 0?)
No - for some IDs there is additional information. (f.e. SkillNo for ID 195 [skillonattack])
Netiquette, Do you USE it?!?! | Nefarius' Fixed TXT Files | Terms Of Service
Blackened | Day of Death | D2GFEx
"What was yours is mine. Your land, your people, and now your life." - Lim-Dul, the Necromancer
Judgement is Final, Death is Eternal
Re: [1.13c] Functions List
D2Common.#10492
+00 number of affix
+04 Pointer to Affix table (=first entry MagicSuffix)
+08 Pointer to MagicSuffix
+0C Pointer to MagicPrefix
+10 Pointer to AutoMagic
Get Pointer to Item Seed -> EAX
D2Common.#10411 (Push pUnit Item)
Get Version of Item -> AX
D2Common.#10718 (Push pUnit Item)
Get qlvl of item -> AL
D2Common.#10395 (Push pUnit Item)
Get ilvl of item -> EAX
D2Common.#10086 (Push pUnit Item)
Get pointer to MiscArmorWeapon Entry of an item -> EAX
D2Common.#10695 (Push item number)
Test if Affix is allowed on item -> EAX (flag 0 = false / 1 = true)
D2Common.#10461 (Push Pointer to Affix entry & pUnit Item)
Get "hasinv" flag from MiscArmorWeapon of an item -> EAX
D2Common.#10211 (Push item number)
Get the maximum allowed gemsockets of the item -> AL
(MAW & ItemTypes entries without item size depend limit)
D2Common.#11151 (Push pUnit Item)
Get "gemsockets" from MiscArmorWeapon of an item -> AL
D2Common.#10060 (Push item number)
Get X MagicPrefix of item -> AX
D2Common.#10257 (Push pUnit item & entry number of the prefix (0/1/2))
Get X MagicSuffix of item -> AX
D2Common.#11028 (Push pUnit item & entry number of the suffix (0/1/2))
Set Row Number of Affix table in AutoMagic field of item
D2Common.#11050 (pUnit item & Push row number)
Get Pointer to Affix entry of a given row number -> EAX
D2Common.#10248 (Push row number)
Get RarePrefix row number of Item -> AX
D2Common.#10380 (Push pUnit Item)
Set RarePrefix row number of Item
D2Common.#10611 (Push pUnit Item, Push row number)
Get RareSuffix row number of Item -> AX
D2Common.#10433 (Push pUnit Item)
Set RareSuffix row number of Item
D2Common.#10883 (Push pUnit Item, Push row number)
Set a prefix on item
D2Common.#10312 (Push pUnit Item, Push Row number in MagicPrefix.TXT, Push Prefix number on item)
Set a suffix on item
D2Common.#10525 (Push pUnit Item, Push Row number in MagicSuffix.TXT, Push Suffix number on item)
Get suffix n on item -> AX
D2Common.#11028 (Push pUnit Item, Push Suffix number on item)
Get preffix n on item -> AX
D2Common.#10257 (Push pUnit Item, Push Prefix number on item)
Get current maxhp of char -> EAX
D2Common.#10913 (Push pUnit Char)
Get current maxmana of char -> EAX
D2Common.#10186 (Push pUnit Char)
Get current maxstamina of char -> EAX
D2Common.#10578 (Push pUnit Char)
- DragoonWraith
- Posts: 50
- Joined: Wed Mar 04, 2009 12:29 am
Re: [1.13c] Functions List
The returned value is based on the missile's level and the values of ELen, ELevLen1, ELevLen2, and ELevLen3 from missiles.txt for that missile. The formula is this (numbers here in decimal):
Code: Select all
if(missile level > 16)
len = ELen + ELevLen1*7 + ELevLen2*8 + ELevLen3*(missile level - 16)
elseif(missile level > 8)
len = ELen + ELevLen1*7 + ELevLen2*(missile level - 8)
elseif(missile level > 0)
len = ELen + ELevLen1*(missile level - 1)
else
len = ELen
Code: Select all
if(missile level > 28)
LevDam = LevDam1*7 + LevDam2*8 + LevDam3*6 + LevDam4*6 + LevDam5*(missile level - 28)
elseif(missile level > 22)
LevDam = LevDam1*7 + LevDam2*8 + LevDam3*6 + LevDam4*(missile level - 22)
elseif(missile level > 16)
LevDam = LevDam1*7 + LevDam2*8 + LevDam3*(missile level - 16)
elseif(missile level > 8)
LevDam = LevDam1*7 + LevDam2*(missile level - 8)
elseif(missile level > 1)
LevDam = LevDam1*(missile level - 1)
else
LevDam = 0
D2Common.#10256 — 0x6A580
D2Common.#10205 — 0x6A3E0
D2Common.#10532 — 0x6A4B0 — Each function is nearly identical, varying on only three lines, to change between the Min/Max/EMin/EMax versions of various fields in missiles.txt. The "LevDam" figures are calculated using function 0x4DDB0, described above. By the end of the function, EAX contains the whole damage, but ECX and EDX retain some of those fields. I've tabulated this below.
Code: Select all
Offset ECX field EDX field EAX
0x6A3E0 MinELev1 (+F0) EMinDmg (+E8) (EMinDmg + EMinLevDam) << HitShift? (+196)
0x6A4B0 MaxELev1 (+104) EMaxDmg (+EC) (EMaxDmg + EMaxLevDam) << HitShift? (+196)
0x6A580 MaxLevDam1 (+CC) MaxDmg (+B4) (MaxDmg + MinLevDam) << HitShift? (+196)
0x6B360 MinLevDam1 (+B8) MinDmg (+B0) (MinDmg + MaxLevDam) << HitShift? (+196)
Anyway, each function takes four arguments; I'll try to describe how each is used:
arg1 — Missile's level, which is passed to function 0x4DDB0 described above. In some cases, if a negative number is passed for the first argument, arg4 will point to an alternate missile level (see arg4).
arg2 — Missile's ID, as listed in the Id field of missiles.txt. If less than 0, replaced by a DWORD that starts at arg4+4, assuming arg4 itself is a pointer (to a 3; see below).
arg3 — unknown.
arg4 — A pointer. It can be null, in which case it does nothing. However, if it is not null, the DWORD it points to must equal 3, or the function returns 0 Anyway, when it's not null, it can point to alternative places to get the missile's ID and level, if the first two arguments fail to point to a valid one.
First, if the missile ID is negative and arg4 points to a 3, the ID gets replaced by the DWORD that starts at arg4+4.
Second, if the missile level is non-positive (<=0) and arg4 points to a 3, the program first checks to see if arg4+14 points to a non-zero DWORD. If so, the missile level is then replaced with the WORD at arg4+C.
Each function accesses DmgSymPerCalc (+E0) or EDmgSymPerCalc (+118), and if it is not -1, runs a couple of subroutines (D2Common.#10231 and D2Common 0x11E0). What these actually do (presumably related to DmgSymPerCalc), I haven't determined, since I've been seeing that value come up -1 every time, despite that fact that that field is blank in my missile's entry. Since only a handful of missiles seem to use EDmgSymPerCalc (it seems to be related to synergies for Immolation Arrow, Meteor, Fist of the Heavens, Fists of Fire, Claws of Thunder, Phoenix Strike, and Armageddon), and none at all use DmgSymPerCalc, I haven't bothered to test it. It seems likely that arg3 would play a role?
- kidpaddle94
- Principality
- Posts: 2057
- Joined: Thu Aug 13, 2009 2:54 pm
- Location: localhost
Re: [1.13c] Functions List
Code: Select all
/*
Function: SKILLS_GetClass
Address: D2Common.#10000
Notes:
*/
BOOL __stdcall SKILLS_GetClass(int nSkill, int* nClass)
Code: Select all
/*
Function: QUESTS_SetFlag
Address: D2Common.#10003
Notes:
*/
void __stdcall QUESTS_SetFlag(D2QuestFlagStrc* pQuestData, DWORD dwQuest, DWORD dwFlag)
Code: Select all
/*
Function: SKILLS_Alloc
Address: D2Common.#10008
Notes:
*/
D2SkillStrc* __stdcall SKILLS_Alloc(D2UnitStrc* pUnit, int nSkill)
Code: Select all
/*
Function: ITEMS_SetInvPage
Address: D2Common.#10012
Notes:
*/
void __stdcall ITEMS_SetInvPage(D2UnitStrc* pItem, BYTE nPage)
Code: Select all
/*
Function: TXT_GetLevelsRecord
Address: D2Common.#10014
Notes:
*/
D2LevelsTXT* __stdcall TXT_GetLevelsRecord(int nRecord)
Code: Select all
/*
Function: ITEMS_GetInvPage
Address: D2Common.#10020
Notes:
*/
BYTE __stdcall ITEMS_GetInvPage(D2UnitStrc* pItem)
Code: Select all
/*
Function: ITEMRECORDS_GetQntWarning
Address: D2Common.#10026
Notes:
*/
BYTE __stdcall ITEMRECORDS_GetQntWarning(D2UnitStrc* pItem)
Code: Select all
/*
Function: TXT_GetSuperuniquesRecord
Address: D2Common.#10038
Notes:
*/
D2SuperuniquesTXT* __stdcall TXT_GetSuperuniquesRecord(int nRecord)
Code: Select all
/*
Function: MISSILES_GetMinimumDamage
Address: D2Common.#10040
Notes:
*/
int __stdcall MISSILES_GetMinimumDamage(D2UnitStrc* pMissile, D2UnitStrc* pOwner, int nMissile, int nLevel)
Code: Select all
/*
Function: SKILLS_GetClassSkill
Address: D2Common.#10044
Notes:
*/
int __stdcall SKILLS_GetClassSkill(int nClass, int nSkill)
Code: Select all
/*
Function: ITEMRECORDS_GetStackable
Address: D2Common.#10048
Notes:
*/
int __stdcall ITEMRECORDS_GetStackable(D2UnitStrc* pItem)
Code: Select all
/*
Function: STATS_GetBeltGoldLimit
Address: D2Common.#10049
Notes:
*/
DWORD __stdcall STATS_GetBeltGoldLimit(D2UnitStrc* pPlayer)
Code: Select all
/*
Function: ITEMS_AddToContainer
Address: D2Common.#10050
Notes:
*/
void __stdcall ITEMS_AddToContainer(D2InventoryStrc* pInventory, D2UnitStrc* pItem)
Code: Select all
/*
Function: DRLG_RoomIsTown
Address: D2Common.#10057
Notes:
*/
BOOL __stdcall DRLG_RoomIsTown(D2RoomStrc* pRoom)
Code: Select all
/*
Function: ITEMS_SetBodyLoc
Address: D2Common.#10058
Notes:
*/
void __stdcall ITEMS_SetBodyLoc(D2UnitStrc* pItem, BYTE nBodyLoc)
Code: Select all
/*
Function: ITEMRECORDS_GetGemSockets
Address: D2Common.#10060
Notes:
*/
BYTE __stdcall ITEMRECORDS_GetGemSockets(int nItemHcIdx)
Code: Select all
/*
Function: STATS_GetMaxLevel
Address: D2Common.#10066
Notes:
*/
int __stdcall STATS_GetMaxLevel(int nClass)
Code: Select all
/*
Function: STATEMASK_CheckRlRed
Address: D2Common.#10068
Notes:
*/
BOOL __stdcall STATEMASK_CheckRlRed(D2UnitStrc* pUnit)
Code: Select all
/*
Function: ITEMS_GetType
Address: D2Common.#10082
Notes:
*/
int __stdcall ITEMS_GetType(int nItemHcIdx)
Code: Select all
/*
Function: ITEMS_GetInscribedName
Address: D2Common.#10083
Notes:
*/
char* __stdcall ITEMS_GetInscribedName(D2UnitStrc* pItem)
Code: Select all
/*
Function: ITEMS_GetLevel
Address: D2Common.#10086
Notes:
*/
int __stdcall ITEMS_GetLevel(D2UnitStrc* pItem)
Code: Select all
/*
Function: ITEMS_CanBeRepaired
Address: D2Common.#10087
Notes:
*/
BOOL __stdcall ITEMS_CanBeRepaired(D2UnitStrc* pItem)
Code: Select all
/*
Function: ITEMS_IsClassSpecific
Address: D2Common.#10089
Notes:
*/
BOOL __stdcall ITEMS_IsClassSpecific(D2UnitStrc* pItem)
Code: Select all
/*
Function: SHRINES_GetRecordFromObject
Address: D2Common.#10092
Notes:
*/
D2ShrinesTXT* __stdcall SHRINES_GetRecordFromObject(D2UnitStrc* pObject)
Code: Select all
/*
Function: TILES_GetWarpLevelNo
Address: D2Common.#10093
Notes:
*/
int __stdcall TILES_GetWarpLevelNo(D2RoomStrc* pRoom, DWORD dwWarp)
Code: Select all
/*
Function: CHAT_SetHoverLocale
Address: D2Common.#10097
Notes:
*/
void __stdcall CHAT_SetHoverLocale(D2HoverTextStrc* pHoverText, int nLocale)
Code: Select all
/*
Function: STATEMASK_CheckArmRed
Address: D2Common.#10100
Notes:
*/
BOOL __stdcall STATEMASK_CheckArmRed(D2UnitStrc* pUnit)
Code: Select all
/*
Function: ITEMS_GetQuality
Address: D2Common.#10106
Notes:
*/
int __stdcall ITEMS_GetQuality(D2UnitStrc* pItem)
Code: Select all
/*
Function: ITEMS_GetTransactionCost
Address: D2Common.#10107
Notes:
*/
int __stdcall ITEMS_GetTransactionCost(D2UnitStrc* pUnit, D2UnitStrc* pItem, int nDifficulty, D2QuestFlagStrc* pQuestFlags, int nClass, int nType)
Code: Select all
/*
Function: ITEMTYPERECORDS_GetThrowable
Address: D2Common.#10108
Notes:
*/
BYTE __stdcall ITEMTYPERECORDS_GetThrowable(int nItemType)
Code: Select all
/*
Function: OBJECTS_SetPortalFlag
Address: D2Common.#10111
Notes:
*/
void __stdcall OBJECTS_SetPortalFlag(D2UnitStrc* pObject, BYTE nFlag)
Code: Select all
/*
Function: SKILLCALC_EvalDiminishingReturns
Address: D2Common.#10115
Notes:
*/
int __stdcall SKILLCALC_EvalDiminishingReturns(int nSkillLevel, DWORD dwParam1, DWORD dwParam2)
Code: Select all
/*
Function: ITEMRECORDS_GetUnique
Address: D2Common.#10119
Notes:
*/
BYTE __stdcall ITEMRECORDS_GetUnique(D2UnitStrc* pItem)
Code: Select all
/*
Function: SHRINES_SetRecord
Address: D2Common.#10128
Notes:
*/
void __stdcall SHRINES_SetRecord(D2UnitStrc* pObject, D2ShrinesTXT* pRecord)
Code: Select all
/*
Function: PLAYERS_SetName
Address: D2Common.#10140
Notes: sets the name in pPlayer->pPlayerData only
*/
void __stdcall PLAYERS_SetName(D2UnitStrc* pPlayer, char* szName)
Code: Select all
/*
Function: UNITS_Update
Address: D2Common.#10158
Notes:
*/
void __stdcall UNITS_Update(D2UnitStrc* pUnit)
Code: Select all
/*
Function: STATEMASK_CheckBlue
Address: D2Common.#10162
Notes:
*/
BOOL __stdcall STATEMASK_CheckBlue(D2UnitStrc* pUnit)
Code: Select all
/*
Function: STATLISTS_Merge
Address: D2Common.#10164
Notes:
*/
void __stdcall STATLISTS_Merge(D2UnitStrc* pDestination, D2UnitStrc* pSource, BOOL bA3)
Code: Select all
/*
Function: QUESTS_CheckFlag
Address: D2Common.#10174
Notes:
*/
BOOL __stdcall QUESTS_CheckFlag(D2QuestFlagStrc* pQuestFlags, DWORD dwQuest, DWORD dwFlag)
Code: Select all
/*
Function: ITEMRECORDS_GetQuest
Address: D2Common.#10176
Notes:
*/
BYTE __stdcall ITEMRECORDS_GetQuest(D2UnitStrc* pItem)
Code: Select all
/*
Function: STATS_GetMaxMana
Address: D2Common.#10186
Notes:
*/
int __stdcall STATS_GetMaxMana(D2UnitStrc* pUnit)
Code: Select all
/*
Function: STATLISTS_SetStat
Address: D2Common.#10188
Notes:
*/
void __stdcall STATLISTS_SetStat(D2StatListStrc* pStatList, int nStat, int nValue, WORD nLayer)
Code: Select all
/*
Function: ITEMS_GetInitSeed
Address: D2Common.#10193
Notes:
*/
DWORD __stdcall ITEMS_GetInitSeed(D2UnitStrc* pItem)
Code: Select all
/*
Function: ITEMS_GetStatlist
Address: D2Common.#10195
Notes:
*/
D2StatListStrc* __stdcall ITEMS_GetStatlist(D2UnitStrc* pItem, DWORD dwFlags)
Code: Select all
/*
Function: STATEMASK_CheckRemHit
Address: D2Common.#10198
Notes:
*/
BOOL __stdcall STATEMASK_CheckRemHit(D2UnitStrc* pUnit)
Code: Select all
/*
Function: ITEMS_CheckFlag
Address: D2Common.#10202
Notes:
*/
BOOL __stdcall ITEMS_CheckFlag(D2UnitStrc* pItem, DWORD dwFlag, int nLine, char* szFile)
Code: Select all
/*
Function: MISSILES_GetMinElementalDamage
Address: D2Common.#10205
Notes:
*/
int __stdcall MISSILES_GetMinElementalDamage(D2UnitStrc* pMissile, D2UnitStrc* pOwner, int nMissile, int nLevel)
Code: Select all
/*
Function: DRLG_AllocLevel
Address: D2Common.#10207
Notes:
*/
D2DrlgLevelStrc* __stdcall DRLG_AllocLevel(D2DrlgDataStrc* pDrlgData, int nLevel)
Code: Select all
/*
Function: ITEMTYPERECORDS_GetVarInvGfx
Address: D2Common.#10208
Notes:
*/
BYTE __stdcall ITEMTYPERECORDS_GetVarInvGfx(D2UnitStrc* pItem)
Code: Select all
/*
Function: ITEMRECORDS_GetHasInv
Address: D2Common.#10211
Notes:
*/
BOOL __stdcall ITEMRECORDS_GetHasInv(int nItemHcIdx)
Code: Select all
/*
Function: LEVELRECORDS_GetRain
Address: D2Common.#10215
Notes:
*/
BYTE __stdcall LEVELRECORDS_GetRain(int nLevel)
Code: Select all
/*
Function: SETITEMS_GetRecord
Address: D2Common.#10218
Notes:
*/
D2SetItemsTXT* __stdcall SETITEMS_GetRecord(D2UnitStrc* pItem)
Code: Select all
/*
Function: ITEMFLAGS_CheckEthereal
Address: D2Common.#10225
Notes:
*/
BOOL __stdcall ITEMFLAGS_CheckEthereal(D2UnitStrc* pItem)
Code: Select all
/*
Function: PATHS_Free
Address: D2Common.#10234
Notes:
*/
void __stdcall PATHS_Free(D2UnitStrc* pUnit)
Code: Select all
/*
Function: TXT_GetDifficultyLevelsRecord
Address: D2Common.#10237
Notes:
*/
D2DiffLevelsTXT* __stdcall TXT_GetDifficultyLevelsRecord(int nRecord)
Code: Select all
/*
Function: ITEMRECORDS_GetWeapClass
Address: D2Common.#10238
Notes:
*/
int __stdcall ITEMRECORDS_GetWeapClass(D2UnitStrc* pItem)
Code: Select all
/*
Function: MONSTERS_IsUndead
Address: D2Common.#10239
Notes:
*/
BOOL __stdcall MONSTERS_IsUndead(D2UnitStrc* pMonster)
Code: Select all
/*
Function: MISSILES_GetSkill
Address: D2Common.#10240
Notes:
*/
int __stdcall MISSILES_GetSkill(D2UnitStrc* pMissile)
Code: Select all
/*
Function: MISSILES_GetElemLength
Address: D2Common.#10242
Notes:
*/
int __stdcall MISSILES_GetElemLength(D2UnitStrc* pMissile, D2UnitStrc* pOwner, int nMissile, int nLevel)
Code: Select all
/*
Function: ITEMS_CheckRequirements
Address: D2Common.#10244
Notes:
*/
BOOL __stdcall ITEMS_CheckRequirements(D2UnitStrc* pItem, D2UnitStrc* pUnit, BOOL bEquip, BOOL* bStr, BOOL* bDex, BOOL* bLvl)
Code: Select all
/*
Function: TXT_GetMagicAffixRecord
Address: D2Common.#10248
Notes:
*/
D2MagicAffixTXT* __stdcall TXT_GetMagicAffixRecord(int nRecord)
Code: Select all
/*
Function: STATEMASK_CheckRfRed
Address: D2Common.#10254
Notes:
*/
BOOL __stdcall STATEMASK_CheckRfRed(D2UnitStrc* pUnit)
Code: Select all
/*
Function: MONSTERS_IsDemon
Address: D2Common.#10255
Notes:
*/
BOOL __stdcall MONSTERS_IsDemon(D2UnitStrc* pMonster)
Code: Select all
/*
Function: MISSILES_GetMaximumDamage
Address: D2Common.#10256
Notes:
*/
int __stdcall MISSILES_GetMaximumDamage(D2UnitStrc* pMissile, D2UnitStrc* pOwner, int nMissile, int nLevel)
Code: Select all
/*
Function: ITEMS_GetMagicPrefix
Address: D2Common.#10257
Notes:
*/
WORD __stdcall ITEMS_GetMagicPrefix(D2UnitStrc* pItem, int nPos)
Code: Select all
/*
Function: OBJECTS_GetPortalFlag
Address: D2Common.#10258
Notes:
*/
BYTE __stdcall OBJECTS_GetPortalFlag(D2UnitStrc* pObject)
Code: Select all
/*
Function: STATEMASK_CheckDamBlue
Address: D2Common.#10263
Notes:
*/
BOOL __stdcall STATEMASK_CheckDamBlue(D2UnitStrc* pUnit)
Code: Select all
/*
Function: SKILLS_GetNext
Address: D2Common.#10273
Notes:
*/
D2SkillStrc* __stdcall SKILLS_GetNext(D2SkillStrc* pSkill)
Code: Select all
/*
Function: ITEMRECORDS_GetTransmogrify
Address: D2Common.#10275
Notes:
*/
int __stdcall ITEMRECORDS_GetTransmogrify(int nItemHcidx)
Code: Select all
/*
Function: STATEMASK_CheckActive
Address: D2Common.#10276
Notes:
*/
BOOL __stdcall STATEMASK_CheckActive(D2UnitStrc* pUnit)
Code: Select all
/*
Function: TXT_GetCompCodeRecord
Address: D2Common.#10293
Notes:
*/
D2CompCodeTXT* __stdcall TXT_GetCompCodeRecord(int nRecord)
Code: Select all
/*
Function: OBJECTS_GetRecordFromObject
Address: D2Common.#10296
Notes:
*/
D2ObjectsTXT* __stdcall OBJECTS_GetRecordFromObject(D2UnitStrc* pObject)
Code: Select all
/*
Function: SKILLS_GetMaximumDamage
Address: D2Common.#10297
Notes:
*/
int __stdcall SKILLS_GetMaximumDamage(D2UnitStrc* pUnit, int nSkill, int nSkillLevel, int nType)
Code: Select all
/*
Function: SKILLS_Assign
Address: D2Common.#10302
Notes:
*/
void __stdcall SKILLS_Assign(D2UnitStrc* pUnit, int nSkill, int nSkillLevel, int nA4, char* szFile, int nLine)
Code: Select all
/*
Function: SKILLS_GetLevel
Address: D2Common.#10306
Notes: setting third arg to false returns the base level
*/
int __stdcall SKILLS_GetLevel(D2UnitStrc* pUnit, D2SkillStrc* pSkill, BOOL bTotal)
Code: Select all
/*
Function: STATLISTS_MergeBaseStats
Address: D2Common.#10308
Notes:
*/
void __stdcall STATLISTS_MergeBaseStats(D2StatListStrc* pDestination, D2StatListStrc* pSource)
Code: Select all
/*
Function: DRLG_GetCoordListFromRoom
Address: D2Common.#10310
Notes:
*/
D2RoomCoordListStrc* __stdcall DRLG_GetCoordListFromRoom(D2RoomStrc* pRoom)
Code: Select all
/*
Function: ITEMS_SetMagicPrefix
Address: D2Common.#10312
Notes:
*/
void __stdcall ITEMS_SetMagicPrefix(D2UnitStrc* pItem, WORD nPrefix, int nPos)
Code: Select all
/*
Function: SKILLRECORDS_GetPassiveState
Address: D2Common.#10313
Notes:
*/
int __stdcall SKILLRECORDS_GetPassiveState(int nSkill)
Code: Select all
/*
Function: LEVELRECORDS_GetLevelType
Address: D2Common.#10319
Notes:
*/
int __stdcall LEVELRECORDS_GetLevelType(int nLevel)
Code: Select all
/*
Function: ITEMRECORDS_GetMissileType
Address: D2Common.#10321
Notes:
*/
WORD __stdcall ITEMRECORDS_GetMissileType(D2UnitStrc* pItem)
Code: Select all
/*
Function: DRLG_InitializeLevel
Address: D2Common.#10322
Notes:
*/
void __stdcall DRLG_InitializeLevel(D2DrlgLevelStrc* pDrlgLevel)
Code: Select all
/*
Function: ITEMS_Is2Handed
Address: D2Common.#10326
Notes:
*/
BOOL __stdcall ITEMS_Is2Handed(D2UnitStrc* pItem)
Code: Select all
/*
Function: DRLG_GetRoomFromUnit
Address: D2Common.#10331
Notes:
*/
D2RoomStrc* __stdcall DRLG_GetRoomFromUnit(D2UnitStrc* pUnit)
Code: Select all
/*
Function: PATHS_SetTarget
Address: D2Common.#10336
Notes:
*/
void __stdcall PATHS_SetTarget(D2DynamicPathStrc* pPath, D2UnitStrc* pTarget)
Code: Select all
/*
Function: STATEMASK_CheckHide
Address: D2Common.#10341
Notes:
*/
BOOL __stdcall STATEMASK_CheckHide(D2UnitStrc* pUnit)
Code: Select all
/*
Function: STATEMASK_CheckRcRed
Address: D2Common.#10355
Notes:
*/
BOOL __stdcall STATEMASK_CheckRcRed(D2UnitStrc* pUnit)
Code: Select all
/*
Function: PLAYERS_AllocPlayerData
Address: D2Common.#10356
Notes:
*/
BOOL __stdcall PLAYERS_AllocPlayerData(D2UnitStrc* pPlayer)
Code: Select all
/*
Function: ITEMS_CanDualWield
Address: D2Common.#10364
Notes:
*/
BOOL __stdcall ITEMS_CanDualWield(D2UnitStrc* pUnit, D2UnitStrc* pItem)
Code: Select all
/*
Function: STATEMASK_CheckRpRed
Address: D2Common.#10370
Notes:
*/
BOOL __stdcall STATEMASK_CheckRpRed(D2UnitStrc* pUnit)
Code: Select all
/*
Function: STATEMASK_CheckLife
Address: D2Common.#10372
Notes:
*/
BOOL __stdcall STATEMASK_CheckLife(D2UnitStrc* pUnit)
Code: Select all
/*
Function: ITEMS_SetLevel
Address: D2Common.#10377
Notes:
*/
void __stdcall ITEMS_SetLevel(D2UnitStrc* pItem, int nLevel)
Code: Select all
/*
Function: STATS_GetBonuses
Address: D2Common.#10379
Notes:
*/
int __stdcall STATS_GetBonuses(D2UnitStrc* pUnit, int nStat, WORD nLayer)
Code: Select all
/*
Function: ITEMS_SetOwnerGUID
Address: D2Common.#10386
Notes:
*/
void __stdcall ITEMS_SetOwnerGUID(D2UnitStrc* pItem, DWORD dwGUID)
Code: Select all
/*
Function: INVENTORY_Alloc
Address: D2Common.#10387
Notes:
*/
BOOL __stdcall INVENTORY_Alloc(void* pMemoryPool, D2UnitStrc* pUnit)
Code: Select all
/*
Function: PATHS_GetTarget
Address: D2Common.#10392
Notes:
*/
D2UnitStrc* __stdcall PATHS_GetTarget(D2DynamicPathStrc* pPath)
Code: Select all
/*
Function: ITEMRECORDS_GetAlternateGfx
Address: D2Common.#10394
Notes:
*/
DWORD __stdcall ITEMRECORDS_GetAlternateGfx(D2UnitStrc* pItem)
Code: Select all
/*
Function: ITEMRECORDS_GetLevel
Address: D2Common.#10395
Notes:
*/
BYTE __stdcall ITEMRECORDS_GetLevel(D2UnitStrc* pItem)
Code: Select all
/*
Function: STATS_GetExpForNextLevel
Address: D2Common.#10399
Notes:
*/
DWORD __stdcall STATS_GetExpForNextLevel(int nClass, int nLevel)
Code: Select all
/*
Function: STATEMASK_CheckAttBlue
Address: D2Common.#10402
Notes:
*/
BOOL __stdcall STATEMASK_CheckAttBlue(D2UnitStrc* pUnit)
Code: Select all
/*
Function: TXT_GetShrinesRecord
Address: D2Common.#10403
Notes:
*/
D2ShrinesTXT* __stdcall TXT_GetShrinesRecord(int nRecord)
Code: Select all
/*
Function: STATEMASK_CheckArmBlue
Address: D2Common.#10404
Notes:
*/
BOOL __stdcall STATEMASK_CheckArmBlue(D2UnitStrc* pUnit)
Code: Select all
/*
Function: ITEMS_GetSeed
Address: D2Common.#10411
Notes:
*/
D2SeedStrc* __stdcall ITEMS_GetSeed(D2UnitStrc* pItem)
Code: Select all
/*
Function: ITEMS_SetInitSeed
Address: D2Common.#10414
Notes:
*/
void __stdcall ITEMS_SetInitSeed(D2UnitStrc* pItem, DWORD dwSeed)
Code: Select all
/*
Function: ITEMS_GetBodyloc
Address: D2Common.#10417
Notes:
*/
BYTE __stdcall ITEMS_GetBodyloc(D2UnitStrc* pItem)
Code: Select all
/*
Function: UNITS_UpdateSkills
Address: D2Common.#10418
Notes:
*/
void __stdcall UNITS_UpdateSkills(D2UnitStrc* pUnit)
Code: Select all
/*
Function: CHAT_FreeHoverText
Address: D2Common.#10422
Notes:
*/
void __stdcall CHAT_FreeHoverText(void* pMemoryPool, D2HoverTextStrc* pHoverText)
Code: Select all
/*
Function: ITEMCALC_Eval
Address: D2Common.#10428
Notes:
*/
int __stdcall ITEMCALC_Eval(D2UnitStrc* pUnit, D2UnitStrc* pItem, DWORD dwCalc)
Code: Select all
/*
Function: ITEMTYPERECORDS_GetQuiver
Address: D2Common.#10430
Notes:
*/
WORD __stdcall ITEMTYPERECORDS_GetQuiver(int nItemType)
Code: Select all
/*
Function: ITEMRECORDS_GetMinStack
Address: D2Common.#10432
Notes:
*/
int __stdcall ITEMRECORDS_GetMinStack(D2UnitStrc* pItem)
Code: Select all
/*
Function: WAYPOINTS_Check
Address: D2Common.#10436
Notes:
*/
BOOL __stdcall WAYPOINTS_Check(int nWaypoint, D2WaypointDataStrc* pWaypointData)
Code: Select all
/*
Function: ITEMS_GetOwnerGUID
Address: D2Common.#10438
Notes:
*/
DWORD __stdcall ITEMS_GetOwnerGUID(D2UnitStrc* pItem)
Code: Select all
/*
Function: PATHS_AllocStaticPath
Address: D2Common.#10445
Notes:
*/
D2StaticPathStrc* __stdcall PATHS_AllocStaticPath(D2UnitStrc* pUnit)
Code: Select all
/*
Function: ITEMS_GetRecordFromCode
Address: D2Common.#10450
Notes:
*/
D2ItemsTXT* __stdcall ITEMS_GetRecordFromCode(DWORD dwCode, int* nIndex)
Code: Select all
/*
Function: CHAT_AllocHoverText
Address: D2Common.#10454
Notes:
*/
D2HoverTextStrc* __stdcall CHAT_AllocHoverText(void* pMemoryPool, char* szText, DWORD dwFrame)
Code: Select all
/*
Function: DRLG_GetActFromLevel
Address: D2Common.#10459
Notes:
*/
int __stdcall DRLG_GetActFromLevel(int nLevel)
Code: Select all
/*
Function: INVENTORY_GetFirstItem
Address: D2Common.#10460
Notes:
*/
D2UnitStrc* __stdcall INVENTORY_GetFirstItem(D2InventoryStrc* pInventory)
Code: Select all
/*
Function: ITEMRECORDS_GetMaxStack
Address: D2Common.#10463
Notes:
*/
int __stdcall ITEMRECORDS_GetMaxStack(D2UnitStrc* pItem)
Code: Select all
/*
Function: INVENTORY_GetNextItem
Address: D2Common.#10464
Notes:
*/
D2UnitStrc* __stdcall INVENTORY_GetNextItem(D2UnitStrc* pItem)
Code: Select all
/*
Function: ITEMS_SetEarLevel
Address: D2Common.#10467
Notes:
*/
void __stdcall ITEMS_SetEarLevel(D2UnitStrc* pItem, BYTE nLevel)
Code: Select all
/*
Function: PATHS_GetType
Address: D2Common.#10471
Notes:
*/
int __stdcall PATHS_GetType(D2DynamicPathStrc* pPath)
Code: Select all
/*
Function: ITEMRECORDS_GetUseable
Address: D2Common.#10478
Notes:
*/
BYTE __stdcall ITEMRECORDS_GetUseable(D2UnitStrc* pItem)
Code: Select all
/*
Function: STATES_CheckState
Address: D2Common.#10494
Notes:
*/
BOOL __stdcall STATES_CheckState(D2UnitStrc* pUnit, int nState)
Code: Select all
/*
Function: LEVELRECORDS_GetMud
Address: D2Common.#10499
Notes:
*/
BYTE __stdcall LEVELRECORDS_GetMud(int nLevel)
Code: Select all
/*
Function: ITEMS_SetFormat
Address: D2Common.#10503
Notes:
*/
void __stdcall ITEMS_SetFormat(D2UnitStrc* pItem, WORD nFormat)
Code: Select all
/*
Function: SKILLS_InitializeList
Address: D2Common.#10506
Notes:
*/
void __stdcall SKILLS_InitializeList(D2UnitStrc* pUnit)
Code: Select all
/*
Function: SKILLS_GetRightSkill
Address: D2Common.#10507
Notes:
*/
D2SkillStrc* __stdcall SKILLS_GetRightSkill(D2UnitStrc* pUnit)
Code: Select all
/*
Function: DRLG_GetTargetRoom
Address: D2Common.#10509
Notes:
*/
D2RoomStrc* __stdcall DRLG_GetTargetRoom(D2RoomStrc* pRoom, D2CoordStrc* pCoord, int nUnitSize, DWORD dwCollideFlags, int nA5)
Code: Select all
/*
Function: SKILLS_GetUsedSkill
Address: D2Common.#10511
Notes:
*/
D2SkillStrc* __stdcall SKILLS_GetUsedSkill(D2UnitStrc* pUnit)
Code: Select all
/*
Function: SEED_GetLoSeed
Address: D2Common.#10513
Notes:
*/
DWORD __stdcall SEED_GetLoSeed(D2SeedStrc* pSeed)
Code: Select all
/*
Function: STATLISTS_GetSkillLevel
Address: D2Common.#10515
Notes:
*/
int __stdcall STATLISTS_GetSkillLevel(D2StatListStrc* pStatList)
Code: Select all
/*
Function: ITEMS_IsMagical
Address: D2Common.#10516
Notes:
*/
BOOL __stdcall ITEMS_IsMagical(D2UnitStrc* pItem)
Code: Select all
/*
Function: ITEMS_SetMagicSuffix
Address: D2Common.#10525
Notes:
*/
void __stdcall ITEMS_SetMagicSuffix(D2UnitStrc* pItem, WORD nSuffix, int nPos)
Code: Select all
/*
Function: ITEMRECORDS_GetComponent
Address: D2Common.#10530
Notes:
*/
BYTE __stdcall ITEMRECORDS_GetComponent(D2UnitStrc* pItem)
Code: Select all
/*
Function: MISSILES_GetMaxElemDamage
Address: D2Common.#10532
Notes:
*/
int __stdcall MISSILES_GetMaxElemDamage(D2UnitStrc* pMissile, D2UnitStrc* pOwner, int nMissile, int nLevel)
Code: Select all
/*
Function: ITEMS_SetFileIndex
Address: D2Common.#10536
Notes:
*/
void __stdcall ITEMS_SetFileIndex(D2UnitStrc* pItem, int nIndex)
Code: Select all
/*
Function: ITEMTYPERECORDS_GetShoots
Address: D2Common.#10543
Notes:
*/
int __stdcall ITEMTYPERECORDS_GetShoots(D2UnitStrc* pItem)
Code: Select all
/*
Function: STATS_Add
Address: D2Common.#10551
Notes:
*/
void __stdcall STATS_Add(D2UnitStrc* pUnit, int nStat, int nValue, WORD nLayer)
Code: Select all
/*
Function: STATLISTS_GetSkillId
Address: D2Common.#10555
Notes:
*/
int __stdcall STATLISTS_GetSkillId(D2StatListStrc* pStatList)
Code: Select all
/*
Function: ITEMTYPERECORDS_GetNormal
Address: D2Common.#10556
Notes:
*/
BYTE __stdcall ITEMTYPERECORDS_GetNormal(D2UnitStrc* pItem)
Code: Select all
/*
Function: MISSILES_GetElemType
Address: D2Common.#10557
Notes:
*/
BYTE __stdcall MISSILES_GetElemType(int nMissileHcIdx)
Code: Select all
/*
Function: SKILLS_GetMinimumDamage
Address: D2Common.#10567
Notes:
*/
int __stdcall SKILLS_GetMinimumDamage(D2UnitStrc* pUnit, int nSkill, int nSkillLevel, int nType)
Code: Select all
/*
Function: STATEMASK_CheckUDead
Address: D2Common.#10576
Notes:
*/
BOOL __stdcall STATEMASK_CheckUDead(D2UnitStrc* pUnit)
Code: Select all
/*
Function: STATS_GetMaxStamina
Address: D2Common.#10578
Notes:
*/
int __stdcall STATS_GetMaxStamina(D2UnitStrc* pUnit)
Code: Select all
/*
Function: ITEMS_GetMaxThrowDamage
Address: D2Common.#10583
Notes:
*/
int __stdcall ITEMS_GetMaxThrowDamage(D2UnitStrc* pItem)
Code: Select all
/*
Function: DRLG_GetTownFromAct
Address: D2Common.#10585
Notes:
*/
int __stdcall DRLG_GetTownFromAct(BYTE nAct)
Code: Select all
/*
Function: STATS_GetBase
Address: D2Common.#10587
Notes:
*/
int __stdcall STATS_GetBase(D2UnitStrc* pUnit, int nStat, WORD nLayer)
Code: Select all
/*
Function: ITEMS_GetEarLevel
Address: D2Common.#10588
Notes:
*/
BYTE __stdcall ITEMS_GetEarLevel(D2UnitStrc* pItem)
Code: Select all
/*
Function: UNITS_GetSizeX
Address: D2Common.#10589
Notes:
*/
int __stdcall UNITS_GetSizeX(D2UnitStrc* pUnit)
Code: Select all
/*
Function: ITEMS_GetAttackSpeed
Address: D2Common.#10592
Notes:
*/
int __stdcall ITEMS_GetAttackSpeed(D2UnitStrc* pUnit, D2UnitStrc* pItem)
Code: Select all
/*
Function: QUESTS_UnsetFlag
Address: D2Common.#10593
Notes:
*/
void __stdcall QUESTS_UnsetFlag(D2QuestFlagStrc* pQuestFlags, DWORD dwQuest, DWORD dwFlag)
Code: Select all
/*
Function: SKILLS_GetSkillNo
Address: D2Common.#10601
Notes:
*/
int __stdcall SKILLS_GetSkillNo(D2SkillStrc* pSkill, char* szFile, int nLine)
Code: Select all
/*
Function: ITEMS_HasUsedCharges
Address: D2Common.#10607
Notes:
*/
BOOL __stdcall ITEMS_HasUsedCharges(D2UnitStrc* pItem, BOOL* bHasChargedSkill)
Code: Select all
/*
Function: ITEMS_SetRarePrefix
Address: D2Common.#10611
Notes:
*/
void __stdcall ITEMS_SetRarePrefix(D2UnitStrc* pItem, WORD nPrefix)
Code: Select all
/*
Function: DRLG_GetTownFromAct
Address: D2Common.#10613
Notes:
*/
int __stdcall DRLG_GetTownFromAct(D2DrlgActStrc* pDrlgAct)
Code: Select all
/*
Function: ITEMRECORDS_GetHitClass
Address: D2Common.#10617
Notes:
*/
BYTE __stdcall ITEMRECORDS_GetHitClass(D2UnitStrc* pItem)
Code: Select all
/*
Function: ITEMS_GetFileIndex
Address: D2Common.#10620
Notes:
*/
int __stdcall ITEMS_GetFileIndex(D2UnitStrc* pItem)
Code: Select all
/*
Function: STATEMASK_CheckAura
Address: D2Common.#10625
Notes:
*/
BOOL __stdcall STATEMASK_CheckAura(D2UnitStrc* pUnit)
Code: Select all
/*
Function: UNITS_GetOffsets
Address: D2Common.#10628
Notes:
*/
void __stdcall UNITS_GetOffsets(D2UnitStrc* pUnit, D2CoordStrc* pOutput)
Code: Select all
/*
Function: SKILLS_GetSkillFromUnit
Address: D2Common.#10630
Notes: not __stdcall
*/
D2SkillStrc* __fastcall SKILLS_GetSkillFromUnit(D2UnitStrc* pUnit, int nSkill)
Code: Select all
/*
Function: TILES_GetWarpRecord
Address: D2Common.#10633
Notes:
*/
D2LvlWarpTXT* __stdcall TILES_GetWarpRecord(D2RoomStrc* pRoom, D2UnitStrc* pWarpTile)
Code: Select all
/*
Function: UNITS_GetOffsetX
Address: D2Common.#10651
Notes:
*/
int __stdcall UNITS_GetOffsetX(D2UnitStrc* pUnit)
Code: Select all
/*
Function: ITEMTYPERECORDS_GetShoots
Address: D2Common.#10657
Notes:
*/
WORD __stdcall ITEMTYPERECORDS_GetShoots(int nItemType)
Code: Select all
/*
Function: ITEMS_CanTransmogrify
Address: D2Common.#10661
Notes:
*/
BOOL __stdcall ITEMS_CanTransmogrify(D2UnitStrc* pItem)
Code: Select all
/*
Function: PATHS_GetDirection
Address: D2Common.#10663
Notes:
*/
int __stdcall PATHS_GetDirection(D2UnitStrc* pUnit)
Code: Select all
/*
Function: ITEMRECORDS_Get2HandedWClass
Address: D2Common.#10664
Notes:
*/
int __stdcall ITEMRECORDS_Get2HandedWClass(D2UnitStrc* pItem)
Code: Select all
/*
Function: STATS_ApplyProperty
Address: D2Common.#10665
Notes: https://d2mods.info/forum/viewtopic.php?p=474486#p474486
*/
void __stdcall STATS_ApplyProperty(int nType, int nArg, D2UnitStrc* pUnit, void* pMods, int nIndex, int nPropSet, D2PropertyStrc* pProp, int nState, DWORD dwListFlags, int nSubType)
Code: Select all
/*
Function: PATHS_GetTargetGUID
Address: D2Common.#10669
Notes:
*/
int __stdcall PATHS_GetTargetGUID(D2UnitStrc* pUnit)
Code: Select all
/*
Function: ITEMSTATS_GetDefense
Address: D2Common.#10672
Notes:
*/
int __stdcall ITEMSTATS_GetDefense(D2UnitStrc* pItem)
Code: Select all
/*
Function: TXT_GetCubemainRecordCount
Address: D2Common.#10675
Notes:
*/
int __stdcall TXT_GetCubemainRecordCount()
Code: Select all
/*
Function: STATLISTS_GetStatTotal
Address: D2Common.#10680
Notes:
*/
int __stdcall STATLISTS_GetStatTotal(D2StatListStrc* pStatList, int nStat, WORD nLayer)
Code: Select all
/*
Function: PATHS_CheckCollision
Address: D2Common.#10686
Notes: not __stdcall
*/
BOOL __fastcall PATHS_CheckCollision(D2UnitStrc* pUnit, int nTargetX, int nTargetY, WORD nCollisionFlags)
Code: Select all
/*
Function: TXT_GetObjectsRecord
Address: D2Common.#10688
Notes:
*/
D2ObjectsTXT* __stdcall TXT_GetObjectsRecord(int nRecord)
Re: [1.13c] Functions List
D2Game.6FC451F0 - Spawn a SuperUnique
- misiek1294
- Paladin
- Posts: 168
- Joined: Mon Dec 29, 2014 3:58 pm
Re: [1.13c] Functions List
Re: [1.13c] Functions List
viewtopic.php?f=8&t=60933misiek1294" wrote:O.o Where is a Whist post with functions list ? ;x
- misiek1294
- Paladin
- Posts: 168
- Joined: Mon Dec 29, 2014 3:58 pm
Re: [1.13c] Functions List
This is a table adress not function list ;/Xibalba" wrote:viewtopic.php?f=8&t=60933misiek1294" wrote:O.o Where is a Whist post with functions list ? ;x
- kidpaddle94
- Principality
- Posts: 2057
- Joined: Thu Aug 13, 2009 2:54 pm
- Location: localhost
Re: [1.13c] Functions List
I deleted it as it was the last post in the topic and it bumped the topic every time I would update it, quite annoying. See this post instead. Although it isn't complete as I'm in the process of formatting them. There's quite a few already there though.misiek1294" wrote:O.o Where is a Whist post with functions list ? ;x
- misiek1294
- Paladin
- Posts: 168
- Joined: Mon Dec 29, 2014 3:58 pm
Re: [1.13c] Functions List
Code: Select all
D2Common.#11169 int __stdcall D2COMMON_GetMissileVelocity(int, int)Adress:[0x7C4A0]
Code: Select all
D2Common.#11168 int __stdcall D2COMMON_GetUnitPositionY(UnitAny*)Adress:[0x302E0]
Code: Select all
D2Common.#11166 void __stdcall D2COMMON_AllocStatListEx(UnitAny*,DWORD, void*, void*)Adress:[0x3AF00]
Code: Select all
D2Common.#11161 DWORD __stdcall D2COMMON_GetSetItemMask(UnitAny*, UnitAny*, BOOL)Adress:[0x23F90]
Code: Select all
D2Common.#11160 UnitAny* __stdcall D2COMMON_GetOwnerFromStatList(UnitAny*, BOOL*)Adress:[0x37E70]
Code: Select all
D2Common.#11155 BYTE __stdcall D2COMMON_GetAutoStackFromItemTypeTxt(int)Adress:[0x23590]
Code: Select all
D2Common.#11154 void __stdcall D2COMMON_SetWaypoint(waypointdata*, int)Adress:[0x67C20]
Code: Select all
D2Common.#11153 UnitAny* __stdcall D2COMMON_AllocUnit(void*, int)Adress:[0x2F370]
Code: Select all
D2Common.#11151 BYTE __stdcall D2COMMON_GetItemMaxSockets(UnitAny*)Adress:[0x24610]
Code: Select all
D2Common.#11147 UnitAny* __stdcall D2COMMON_CheckIfUnitIsItem(UnitAny*)Adress:[0x1E400]
Code: Select all
D2Common.#11144 int __stdcall D2COMMON_GetItemQuiverType(UnitAny*)Adress:[0x24E60]
Code: Select all
D2Common.#11142 int __stdcall D2COMMON_GetUnitOffsetY(UnitAny*)Adress:[0x30240]
Code: Select all
D2Common.#11139 UnitAny* __stdcall D2COMMON_GetItemByBodyLoc(Inventory*, int)Adress:[0x1E670]
Code: Select all
D2Common.#11137 BOOL __stdcall D2COMMON_CheckIfItemIndexIsTwoHanded(DWORD)Adress:[0x22E70]
Code: Select all
D2Common.#11127 void __stdcall D2COMMON_ExpireUnitStatList(UnitAny*, UnitAny*)Adress:[0x3A5D0]
Code: Select all
D2Common.#11120 int __stdcall D2COMMON_GetClassSkillCount(DWORD)Adress:[0x4E520]
Code: Select all
D2Common.#11116 int __stdcall D2COMMON_GetItemMaxDurability(UnitAny*)Adress:[0x38FF0]
Code: Select all
D2Common.#11111 void __stdcall D2COMMON_StatlistExpire(UnitAny*, StatList*)Adress:[0x3A5F0]
Code: Select all
D2Common.#11110 int __stdcall D2COMMON_CopyStats(StatListEx*, int, void*, size_t)Adress:[0x38710]
Code: Select all
D2Common.#11108 void __stdcall D2COMMON_FreeStatList(StatList*)Adress:[0x3AD40]
Code: Select all
D2Common.#11107 BOOL __stdcall D2COMMON_AddInventoryItem(Inventory*, UnitAny*, int,int, int, BOOL, BYTE)Adress:[0x21DD0]
Code: Select all
D2Common.#11103 void __stdcall D2COMMON_SetUsedSkill(UnitAny*, Skill*)Adress:[0x303E0]
Code: Select all
D2Common.#11099 void __stdcall D2COMMON_RemoveRoomData(Act * ptAct, int LevelId, int Xpos,int Ypos, Room1 * pRoom)Adress:[0x3CBE0]
Code: Select all
D2Common.#11098 WORD __stdcall D2COMMON_GetItemAutoAffix(UnitAny*)Adress:[0x23A90]
Code: Select all
D2Common.#11092 BOOL __stdcall D2COMMON_CheckStateMask31(UnitAny*)Adress:[0x33DA0]
Code: Select all
D2Common.#11090 void __stdcall D2COMMON_SetAnimMode(UnitAny*,int)Adress:[0x33920]
Code: Select all
D2Common.#11088 int __stdcall D2COMMON_GetItemTypeFromItem(UnitAny*)Adress:[0x230F0]
Code: Select all
D2Common.#11087 void __stdcall D2COMMON_MapToAbsScreen(long *pX, long *pY)Adress:[0x4DB70]
Code: Select all
D2Common.#11082 BOOL __stdcall D2COMMON_CheckStateMask21(UnitAny*)Adress:[0x33EC0]
Code: Select all
D2Common.#11081 void __stdcall D2COMMON_SetSkillLevelInList(StatList*, int)Adress:[0x37D40]
Code: Select all
D2Common.#11080 int __stdcall D2COMMON_GetUnitPositionX(UnitAny*)Adress:[0x30340]
Code: Select all
D2Common.#11079 int __stdcall D2COMMON_GetSpawnStackFromItem(UnitAny*)Adress:[0x24800]
Code: Select all
D2Common.#11075 BYTE __stdcall D2COMMON_GetStorePageFromItemTypeTxt(UnitAny*)Adress:[0x234A0]
Code: Select all
D2Common.#11067 int __stdcall D2COMMON_GetHoverTxtExpirationFrame(D2HoverTextStrc*)Adress:[0x18240]
Code: Select all
D2Common.#11065 D2BooksTXT* __stdcall D2COMMON_TXT_GetBookRecord(int)Adress:[0x714D0]
Code: Select all
D2Common.#11065 D2BooksTXT* __stdcall D2COMMON_GetBookRecord(int)Adress:[0x714D0]
Code: Select all
D2Common.#11060 DWORD __stdcall D2COMMON_GetStashGoldLimit(UnitAny*)Adress:[0x2E9C0]
Code: Select all
D2Common.#11059 int __stdcall D2COMMON_GetObjectNameOffset(UnitAny*)Adress:[0x2EAB0]
Code: Select all
D2Common.#11054 BYTE __stdcall D2COMMON_GetReEquipFromItemTypeTxt(UnitAny*)Adress:[0x234F0]
Code: Select all
D2Common.#11051 BOOL __stdcall D2COMMON_CheckItemCmdFlag(UnitAny*, DWORD)Adress:[0x238B0]
Code: Select all
D2Common.#11050 void __stdcall D2COMMON_SetItemAutoAffix(UnitAny*, WORD)Adress:[0x23A70]
Code: Select all
D2Common.#11049 Room1* __stdcall D2COMMON_CheckSpawnCollision(Room1*,D2CoordStrc*, int,DWORD, int)Adress:[0x4D810]
Code: Select all
D2Common.#11043 void __stdcall D2COMMON_SetListExpirationFrame(StatList*,int)Adress:[0x38380]
Code: Select all
D2Common.#11038 BOOL __stdcall D2COMMON_CheckStateMask10(UnitAny*)Adress:[0x33F60]
Code: Select all
D2Common.#11036 BYTE __stdcall D2COMMON_GetRareFromItemTypeTxt(UnitAny*)Adress:[0x23400]
Code: Select all
D2Common.#11032 int __stdcall D2COMMON_GetRunesRecordCount()Adress:[0x710A0]
Code: Select all
D2Common.#11029 int __stdcall D2COMMON_GetMissileLevel(UnitAny*)Adress:[0x6A2D0]
Code: Select all
D2Common.#11028 int __stdcall D2COMMON_GetItemSuffix(UnitAny* pItem, DWORD)Adress:[0x23A40]
Code: Select all
D2Common.#11023 void __stdcall D2COMMON_FreeDataTables()Adress:[0x5E870]
Code: Select all
D2Common.#11020 bool _stdcall D2COMMON_CheckIfObjectIsDoor(UnitAny*)Adress:[0x2EDA0]
Code: Select all
D2Common.#11019 void __stdcall D2COMMON_SetItemVarGfx(UnitAny*,BYTE)Adress:[0x23650]
Code: Select all
D2Common.#11017 UnitAny* __stdcall D2COMMON_GetCursorItem(Inventory*)Adress:[0x1DFB0]
Code: Select all
D2Common.#11016 void __stdcall D2COMMON_DRLG_RemoveFromRoom(UnitAny*)Adress:[0x66700]
Code: Select all
D2Common.#11015 int __stdcall D2COMMON_GetLevelRequirement(UnitAny*, UnitAny*)Adress:[0x26DA0]
Code: Select all
D2Common.#11013 StatList* __stdcall D2COMMON_D2CreateStatList(void * pmempool, DWORD flags, int lenght, DWORD type, DWORD guid)Adress:[0x38100]
Code: Select all
D2Common.#11006 BOOL __stdcall D2COMMON_ItemIsEquipable(UnitAny*)Adress:[0x23EF0]
Code: Select all
D2Common.#11002 void __stdcall D2COMMON_FreePlayerData(void*, UnitAny*)Adress:[0x30880]
Code: Select all
D2Common.#10997 WORD __fastcall D2COMMON_GetUnitCollisionFlags(UnitAny*)Adress:[0x2FF30]
Code: Select all
D2Common.#10996 void __stdcall D2COMMON_ApplyProperties(int, int, UnitAny*, void*, int, int)Adress:[0x460B0]
Code: Select all
D2Common.#10992 void __stdcall D2COMMON_ItemAddSockets(UnitAny*,int)Adress:[0x2A480]
Code: Select all
D2Common.#10983 int __stdcall D2COMMON_GetTargetXpos(Path*)Adress:[0x34AB0]
Code: Select all
D2Common.#10982 int __stdcall D2COMMON_GetSpawnStackFromItemTxt(DWORD)Adress:[0x22B20]
Code: Select all
D2Common.#10978 void __stdcall D2COMMON_AddSkill(UnitAny* pUnit,DWORD skillID,DWORD SkillLevel)Adress:[0x4ECC0]
Code: Select all
D2Common.#10977 void __stdcall D2COMMON_SetItemFlag(UnitAny* ptItem,DWORD, BOOL)Adress:[0x23900]
Code: Select all
D2Common.#10975 BOOL __stdcall D2COMMON_CheckStateMask08(UnitAny*)Adress:[0x33FA0]
Code: Select all
D2Common.#10973 DWORD __stdcall D2COMMON_GetUnitStat(UnitAny* Unit, DWORD Stat, DWORD Stat2)Adress:[0x38B70]
Code: Select all
D2Common.#10971 void __stdcall D2COMMON_SetMonsterName(UnitAny*, const wchar_t*)Adress:[0x1A6D0]
Code: Select all
D2Common.#10957 BYTE __stdcall D2COMMON_GetItemStaffMods(UnitAny*)Adress:[0x246A0]
Code: Select all
D2Common.#10951 Act* __stdcall D2COMMON_LoadAct(DWORD ActNumber, DWORD InitSeed, DWORD Unk0, game *pGame, DWORD DiffLvl, DWORD* pMemPool, DWORD TownLevelId, DWORD Func1, DWORD Func2)Adress:[0x3CB30]
Code: Select all
D2Common.#10947 Skill* __stdcall D2COMMON_GetFirstSkill(UnitAny*)Adress:[0x304A0]
Code: Select all
D2Common.#10945 void __stdcall D2COMMON_ToggleState(UnitAny* ptItem, int tate, BOOL remove)Adress:[0x34510]
Code: Select all
D2Common.#10944 CharStatsTxt* __stdcall D2COMMON_GetCharstatsFirstRecord()Adress:[0x5DB50]
Code: Select all
D2Common.#10943 void __stdcall D2COMMON_LoadDataTables(void*, int, int)Adress:[0x66160]
Code: Select all
D2Common.#10935 int __stdcall D2COMMON_GetItemDefense(UnitAny*)Adress:[0x38DE0]
Code: Select all
D2Common.#10934 BYTE __stdcall D2COMMON_GetObjectSubclass(UnitAny*)Adress:[0x2ED30]
Code: Select all
D2Common.#10931 BYTE __stdcall D2COMMON_GetItemVarGfx(UnitAny*)Adress:[0x23670]
Code: Select all
D2Common.#10930 StatList* __stdcall D2COMMON_GetFirstListByFilter(UnitAny*, int,DWORD)Adress:[0x37EC0]
Code: Select all
D2Common.#10927 BOOL __stdcall D2COMMON_CheckStateMask30(UnitAny*)Adress:[0x33DC0]
Code: Select all
D2Common.#10925 int __stdcall D2COMMON_GetItemMaxDamage(UnitAny*, int)Adress:[0x38F60]
Code: Select all
D2Common.#10920 PlayerData* __stdcall D2COMMON_GetPlayerData(UnitAny*)Adress:[0x2EB70]
Code: Select all
D2Common.#10916 DWORD __stdcall D2COMMON_CheckCollision1(Room1* pRoom,DWORD dwX, DWORD dwY, DWORD dwBitMask)Adress:[0x3C6D0]
Code: Select all
D2Common.#10913 DWORD __fastcall D2COMMON_GetMaxHp(UnitAny* pUnit)Adress:[0x390F0]
Code: Select all
D2Common.#10911 void __stdcall D2COMMON_AssignListExpireFunc(StatList*, D2StatlistExpire_t)Adress:[0x37D70]
Code: Select all
D2Common.#10910 int __stdcall D2COMMON_GetUnitStatSigned(UnitAny*, int, WORD)Adress:[0x39430]
Code: Select all
D2Common.#10905 BYTE __stdcall D2COMMON_GetReloadFromItemTypeTxt(UnitAny*)Adress:[0x23540]
Code: Select all
D2Common.#10904 int __stdcall D2COMMON_GetUnitSizeY(UnitAny*)Adress:[0x30EE0]
Code: Select all
D2Common.#10896 int __stdcall D2COMMON_10896(void*,int)Adress:[0x7E4F0]
Code: Select all
D2Common.#10893 BYTE* __stdcall D2COMMON_GetItemPalette(UnitAny*, UnitAny*, BYTE*, int)Adress:[0x251C0]
Code: Select all
D2Common.#10892 void __stdcall D2COMMON_SetItemCmdFlag(UnitAny*,DWORD, BOOL)Adress:[0x23870]
Code: Select all
D2Common.#10890 void __stdcall D2COMMON_ApplyEtherealBonuses(UnitAny*)Adress:[0x46A40]
Code: Select all
D2Common.#10887 void __stdcall D2COMMON_SetUnitStat(UnitAny* Unit, int nStat, int nValue, int nLayer)Adress:[0x3A740]
Code: Select all
D2Common.#10885 void __stdcall D2COMMON_CreateRoomDelete(Room1*, int, int)Adress:[0x3B500]
Code: Select all
D2Common.#10884 BYTE __stdcall D2COMMON_GetNoPerFromLevelRecord(int)Adress:[0x6CC60]
Code: Select all
D2Common.#10883 void __stdcall D2COMMON_SetItemRareSuffix(UnitAny*, WORD)Adress:[0x23970]
Code: Select all
D2Common.#10875 void __stdcall D2COMMON_SetItemQuality(UnitAny, DWORD)Adress:[0x23B20]
Code: Select all
D2Common.#10874 void __stdcall D2COMMON_AllocItemData(void*,UnitAny*)Adress:[0x23C70]
Code: Select all
D2Common.#10872 StatList* __stdcall D2COMMON_GetFirstListByFilterEx(UnitAny*, int, DWORD)Adress:[0x384B0]
Code: Select all
D2Common.#10871 StatList* __stdcall D2COMMON_GetStateStatList(UnitAny* ptUnit, int StateNo)Adress:[0x38520]
Code: Select all
D2Common.#10868 unsigned __stdcall D2COMMON_UnloadAct(Act* pAct)Adress:[0x3C990]
Code: Select all
D2Common.#10867 int __stdcall D2COMMON_GetPosXFromPath(Path*)Adress:[0x34BB0]
Code: Select all
D2Common.#10866 BOOL __stdcall D2COMMON_CheckStateMask(UnitAny*, DWORD)Adress:[0x33D10]
Code: Select all
D2Common.#10865 BOOL __stdcall D2COMMON_ItemHasDurability(UnitAny*)Adress:[0x26D40]
Code: Select all
D2Common.#10858 void* __fastcall D2COMMON_GetSkillData(Skill*)Adress:[0x4E1C0]
Code: Select all
D2Common.#10856 Skill* __stdcall D2COMMON_AllocSkillList(void*)Adress:[0x4E3F0]
Code: Select all
D2Common.#10855 DWORD __stdcall D2COMMON_GetLosDrawFromLevelIndex(int)Adress:[0x2D810]
Code: Select all
D2Common.#10849 void* __stdcall D2COMMON_CompileTxt(void*, char*, BinField*, int*, DWORD)Adress:[0x5EF40]
Code: Select all
D2Common.#10848 int __stdcall D2COMMON_GetStatFromListQuick(Stat*, int)Adress:[0x391A0]
Code: Select all
D2Common.#10847 int __stdcall D2COMMON_GetClassFromSkillRecord(int)Adress:[0x4E8C0]
Code: Select all
D2Common.#10846 int __stdcall D2COMMON_10846(int)Adress:[0x4E450]
Code: Select all
D2Common.#10845 int __stdcall D2COMMON_GetThrowMinDamage(UnitAny*)Adress:[0x38E30]
Code: Select all
D2Common.#10844 BOOL __stdcall D2COMMON_CheckIfItemIndexIsClassSpecific(DWORD)Adress:[0x24320]
Code: Select all
D2Common.#10843 BOOL __stdcall D2COMMON_CheckStateMask22(UnitAny*)Adress:[0x33EA0]
Code: Select all
D2Common.#10839 DWORD __stdcall D2COMMON_CheckUnitCollision(UnitAny* pUnitA, UnitAny* pUnitB, DWORD dwBitMask)Adress:[0x314A0]
Code: Select all
D2Common.#10838 DWORD __stdcall D2COMMON_GetItemFlags(UnitAny*)Adress:[0x238E0]
Code: Select all
D2Common.#10835 BOOL __stdcall D2COMMON_ItemIsBeltable(UnitAny*)Adress:[0x2F8A0]
Code: Select all
D2Common.#10830 int __stdcall D2COMMON_GetAlignment(UnitAny*)Adress:[0x391F0]
Code: Select all
D2Common.#10828 Skill* __stdcall D2COMMON_GetLeftSkill(UnitAny*)Adress:[0x30460]
Code: Select all
D2Common.#10827 D2ArenaTXT* __fastcall D2COMMON_GetArenaRecord(int)Adress:[0x7FF80]
Code: Select all
D2Common.#10826 int __stdcall D2COMMON_GetLevelNoFromRoom(Room1* pUnit)Adress:[0x3C000]
Code: Select all
D2Common.#10824 BOOL __stdcall D2COMMON_CheckStateMask20(UnitAny*)Adress:[0x33EE0]
Code: Select all
D2Common.#10823 int __stdcall D2COMMON_GetItemMinDamage(UnitAny*,int)Adress:[0x38ED0]
Code: Select all
D2Common.#10822 int __stdcall D2COMMON_GetClassFromItemType(UnitAny*)Adress:[0x24280]
Code: Select all
D2Common.#10820 void __stdcall D2COMMON_FreeInventory(Inventory*)Adress:[0x21B40]
Code: Select all
D2Common.#10816 Room1* __stdcall D2COMMON_FindRoom(Act*, int, int,int*, int*, int)Adress:[0x3CDF0]
Code: Select all
D2Common.#10814 int __stdcall D2COMMON_GetItemIndexFromCode(DWORD)Adress:[0x71940]
Code: Select all
D2Common.#10808 DWORD __stdcall D2COMMON_GetTargetType(UnitAny*)Adress:[0x2FDB0]
Code: Select all
D2Common.#10807 void __stdcall D2COMMON_D2AssignStatList(UnitAny *pUnit, StatList* pStatList, bool arg3)Adress:[0x3A7D0]
Code: Select all
D2Common.#10806 GemsBIN* __stdcall D2COMMON_GetGemRecord(int)Adress:[0x71570]
Code: Select all
D2Common.#10802 DWORD __stdcall D2COMMON_GetCodeFromItemTxt(UnitAny*)Adress:[0x23290]
Code: Select all
D2Common.#10787 int __stdcall D2COMMON_ValidateSkillUsage(UnitAny*, Skill*)Adress:[0x52340]
Code: Select all
D2Common.#10786 int __stdcall D2COMMON_EvalSkillCalc(UnitAny*,DWORD, int, int)Adress:[0x51BF0]
Code: Select all
D2Common.#10785 void __stdcall D2COMMON_AssignListState(StatList*, int)Adress:[0x38060]
Code: Select all
D2Common.#10783 CubeMainTxt* __stdcall D2COMMON_GetCubemainRecord(int)Adress:[0x1B890]
Code: Select all
D2Common.#10782 void __stdcall D2COMMON_InscribeItem(UnitAny*, char*)Adress:[0x236D0]
Code: Select all
D2Common.#10769 int __stdcall D2COMMON_GetDistance(int, int, int,int)Adress:[0x34580]
Code: Select all
D2Common.#10766 DWORD __fastcall D2COMMON_GetHiSeed(D2Seed*)Adress:[0x36700]
Code: Select all
D2Common.#10764 int __stdcall D2COMMON_GetTargetYpos(Path*)Adress:[0x34AA0]
Code: Select all
D2Common.#10761 BOOL __stdcall D2COMMON_CheckStateMask04(UnitAny*)Adress:[0x34040]
Code: Select all
D2Common.#10757 BOOL __stdcall D2COMMON_ItemHasInv(UnitAny*)Adress:[0x246F0]
Code: Select all
D2Common.#10750 int __stdcall D2COMMON_GetPosYFromPath(Path*)Adress:[0x34B80]
Code: Select all
D2Common.#10749 void* __fastcall D2COMMON_GetLevelDefRecord(int)Adress:[0x6CB20]
Code: Select all
D2Common.#10744 int __stdcall D2COMMON_CheckItemType(UnitAny* pItem,DWORD itemType)Adress:[0x24430]
Code: Select all
D2Common.#10725 void __stdcall D2COMMON_SetSkillInList(StatList*, int)Adress:[0x37D60]
Code: Select all
D2Common.#10722 BOOL __stdcall D2COMMON_CheckStateMask23(UnitAny*)Adress:[0x33E80]
Code: Select all
D2Common.#10718 WORD __stdcall D2COMMON_GetItemFormat(UnitAny*)Adress:[0x221C0]
Code: Select all
D2Common.#10717 Room1* __stdcall D2COMMON_GetFirstRoomFromAct(Act*)Adress:[0x3B550]
Code: Select all
D2Common.#10710 BYTE __stdcall D2COMMON_GetMagicFromItemTypeTxt(UnitAny*)Adress:[0x233B0]
Code: Select all
D2Common.#10708 Skill* __fastcall D2COMMON_GetSkillFromUnitEx(UnitAny*, WORD, DWORD)Adress:[0x4F080]
Code: Select all
D2Common.#10698 int __stdcall D2COMMON_GetItemNodePage(UnitAny*)Adress:[0x1E8C0]
Code: Select all
D2Common.#10696 BYTE __stdcall D2COMMON_GetRangeAdderFromItemTxt(UnitAny*)Adress:[0x22F20]
Code: Select all
D2Common.#10695 D2ItemsTXT* __stdcall D2COMMON_GetItemRecord(int)Adress:[0x719A0]
Code: Select all
D2Common.#10688 ObjectTxt* __stdcall D2COMMON_GetObjectTxt(DWORD objno)Adress:[0x3E980]
-
- Posts: 33
- Joined: Mon Mar 11, 2019 5:34 am
Re: [1.13c] Functions List
Help.....
- misiek1294
- Paladin
- Posts: 168
- Joined: Mon Dec 29, 2014 3:58 pm
Re: [1.13c] Functions List
Maybe this will help You
Code: Select all
D2FUNC(D2COMMON, SKILLS_GetSkillById, Skill*, __fastcall, (UnitAny*, int nSkill, DWORD dwGuid), 0x4F080)//D2Common.#10708/code]