CamDawg Posted March 9, 2005 Share Posted March 9, 2005 Heartseeker's THAC0 bonus is generic THAC0, not missile THAC0. A recode from BD; this is included in alpha v3. // Heartseeker gives regular THAC0 instead of missile THAC0 COPY_EXISTING ~bow10.itm~ ~override~ READ_LONG 0x64 "abil_off" READ_SHORT 0x68 "abil_num" READ_LONG 0x6a "fx_off" WHILE ("%abil_num%" > 0) BEGIN // looks for magical ability header SET "abil_num" = ("%abil_num%" - 1) READ_BYTE ("%abil_off%" + ("%abil_num%" * 0x38)) "type" PATCH_IF ("%type%" = 3) BEGIN // magical ability check READ_SHORT ("%abil_off%" + 0x1e + ("%abil_num%" * 0x38)) "abil_fx_num" READ_SHORT ("%abil_off%" + 0x20 + ("%abil_num%" * 0x38)) "abil_fx_idx" WHILE ("%abil_fx_num%" > 0) BEGIN // searches through fx for THAC0 bonus SET "abil_fx_num" = ("%abil_fx_num%" - 1) READ_SHORT ("%fx_off%" + (("%abil_fx_idx%" + "%abil_fx_num%") * 0x30)) "type1" PATCH_IF ("%type1%" = 54) BEGIN // changes it from regular to missile THAC0 bonus WRITE_SHORT ("%fx_off%" + (("%abil_fx_idx%" + "%abil_fx_num%") * 0x30)) 167 END END END END Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.