Jump to content

Drow Halberd fixes


Recommended Posts

dwhalb01 has incorrect unusability flags and also has a colorization effect which should be persistent. BD recode; included in alpha v3.


// unusability flags and non-persistent color effects
COPY_EXISTING ~dwhalb01.itm~ ~override~
 READ_BYTE  0x2b "use"
 WRITE_BYTE 0x2b ("%use%" BOR   0b00000010) // adds beastmaster flag
 READ_LONG  0x6a "fx_off"
 READ_SHORT 0x70 "fx_num"
 WHILE ("%fx_num%" > 0) BEGIN
   SET "fx_num" = ("%fx_num%" - 1)
   READ_SHORT ("%fx_off%" +        ("%fx_num%" * 0x30)) "type"
   READ_SHORT ("%fx_off%" + 0x08 + ("%fx_num%" * 0x30)) "part"
   PATCH_IF (("%type%" = 7) AND ("%part%" = 16)) BEGIN // looks for set item color effect on wpn head
     READ_BYTE ("%fx_off%" + 0x0c + ("%fx_num%" * 0x30)) 2 // instant/while equipped

Link to comment
has a colorization effect which should be persistent
There are a lot of these.


~^AX1H0[4568]\.ITM$~ ~OVERRIDE~
~^BLUN\(0[146]\|2[34]\|31\)\.ITM$~ ~OVERRIDE~
~^BOW\(02\|[01][589]\|[12][0146]\)\.ITM$~ ~OVERRIDE~
~^DAGG\(0[45]\|16\)\.ITM$~ ~OVERRIDE~
~^HA\(LB\|MM\)01\.ITM$~ ~OVERRIDE~
~^SW2H0[12]\.ITM$~ ~OVERRIDE~
 READ_LONG 0x6a ~effectsOffset~ ELSE 0x72
 FOR (READ_SHORT 0x70 globalEffects ELSE 0x00; globalEffects > 0x00; globalEffects = globalEffects - 0x01) BEGIN
   READ_BYTE ~%effectsOffset%~ + 0x0c ~effectDuration~ ELSE 0x02
   READ_SHORT ~%effectsOffset%~ ~effectType~ ELSE 0x00
   WRITE_BYTE ~%effectsOffset%~ + 0x0c ((~%effectType%~ = 0x07) AND (~%effectDuration%~ != 0x02)) ? 0x02 : ~%effectDuration%~
   SET ~effectsOffset~ = ~%effectsOffset%~ + 0x30

Link to comment


This topic is now archived and is closed to further replies.

  • Create New...