Monday, 2024-05-06, 3:11 PM
Main Sign Up RSS
Welcome, Guest
[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Forum moderator: Ðimentio  
Forum » Diablo II modding » Programs and Mods » 1.13c Function List
1.13c Function List
SeaAngelDate: Tuesday, 2011-12-06, 9:29 AM | Message # 1
3D Modeling
Group: Administrators
Messages: 972
Awards: 1
Reputation: 42
Status: Offline
Returns MinStack from items.txt for item
Code

D2Common.#10017 (on Stack ItemNumber)
D2Common.#10432 (on Stack pUnit of the item)


Returns MaxStack from items.txt for item

Code
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

Code
D2Common.#10695 (on Stack ItemNumber)


GetStatSigned

Code
D2Common.#10910 (on Stack layerNo, StatNo & ptUnit)
 
SeaAngelDate: Tuesday, 2011-12-06, 9:31 AM | Message # 2
3D Modeling
Group: Administrators
Messages: 972
Awards: 1
Reputation: 42
Status: Offline
Get unit stat

Code
D2Common.#10973
arg1: ptUnit
arg2: stat ID in ISC.txt
arg3: (always 0?)


Get base defense value:
Code
D2Common.#10672
arg1: ptUnit
[/code]

Hit/miss test for attack:

Code
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


Get skill AR%:

Code
Code: Select all
D2Game.#10653
arg1: ptUnit
arg2: skill id
arg3: skill level


Get item type by row id:
Code
Code: Select all
D2Common.#10082
arg1: row index in combined weapons/armo/misc


returns: row index in itemtypes.txt

Check if item is of itemtype:
Code
Code: Select all
D2Common.#10744
arg1: item unit ptr
arg2: itemtype row idx (e.g. weapon = 2d)

Code

returns: 1 if arg1 is of type arg2, 0 otherwise
 
SeaAngelDate: Tuesday, 2011-12-06, 9:33 AM | Message # 3
3D Modeling
Group: Administrators
Messages: 972
Awards: 1
Reputation: 42
Status: Offline
Get pointer to magic affix -> EAX

Code
D2Common.#10492


Code
+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

Code
D2Common.#10411 (Push pUnit Item)

Get Version of Item -> AX

Code
D2Common.#10718 (Push pUnit Item)


Get qlvl of item -> AL
Code

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


Code
D2Common.#10186 (Push pUnit Char)


Get current maxstamina of char -> EAX

Code
D2Common.#10578 (Push pUnit Char)


_________________
I'm working with v1.13c
 
Forum » Diablo II modding » Programs and Mods » 1.13c Function List
  • Page 1 of 1
  • 1
Search: