CamDawg Posted March 25, 2005 Share Posted March 25, 2005 Righteous magic has two durations that are incorrect. Being able to stack with itself is patched elsewhere. // two durations are incorrect for righteous magic; stacking handled below COPY_EXISTING ~sppr513.spl~ ~override~ READ_LONG 0x64 "abil_off" READ_SHORT 0x68 "abil_num" READ_LONG 0x6a "fx_off" WHILE ("%abil_num%" > 0) BEGIN SET "abil_num" = ("%abil_num%" - 1) READ_SHORT ("%abil_off%" + 0x10 + (0x28 * "%abil_num%")) "min_lev" PATCH_IF ("%min_lev%" = 10) BEGIN // if melee READ_SHORT ("%abil_off%" + 0x1e + (0x28 * "%abil_num%")) "abil_fx_num" READ_SHORT ("%abil_off%" + 0x20 + (0x28 * "%abil_num%")) "abil_fx_idx" WHILE ("%abil_fx_num%" > 0) BEGIN SET "abil_fx_num" = ("%abil_fx_num%" - 1) READ_SHORT ("%fx_off%" + (0x30 * ("%abil_fx_idx%" + "%abil_fx_num%"))) "opcode" PATCH_IF ("%opcode%" = 250) BEGIN // max damage per hit WRITE_LONG ("%fx_off%" + 0x0e + (0x30 * ("%abil_fx_idx%" + "%abil_fx_num%"))) 60 // dispel/not bypass END END END ELSE PATCH_IF ("%min_lev%" = 20) BEGIN // if melee READ_SHORT ("%abil_off%" + 0x1e + (0x28 * "%abil_num%")) "abil_fx_num" READ_SHORT ("%abil_off%" + 0x20 + (0x28 * "%abil_num%")) "abil_fx_idx" WHILE ("%abil_fx_num%" > 0) BEGIN SET "abil_fx_num" = ("%abil_fx_num%" - 1) READ_SHORT ("%fx_off%" + (0x30 * ("%abil_fx_idx%" + "%abil_fx_num%"))) "opcode" PATCH_IF ("%opcode%" = 142) BEGIN // display portrait icon WRITE_LONG ("%fx_off%" + 0x0e + (0x30 * ("%abil_fx_idx%" + "%abil_fx_num%"))) 120 // dispel/not bypass END END END END BUT_ONLY_IF_IT_CHANGES Link to comment
CamDawg Posted March 28, 2005 Author Share Posted March 28, 2005 Included in alpha 3. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.