igi Posted January 1, 2005 Share Posted January 1, 2005 BUG: "Scrolls of Conjure Lesser Fire Elemental bore the icon of Conjure Lesser Earth Elemental" CAUSE: Incorrect bam assignment. FIX: Correct the bam assignemnt (inventory, and exension headers). COPY_EXISTING ~scrl6x.itm~ ~override/scrl6x.itm~ WRITE_ASCII 0x003a ~SPWI516A~ // inventory READ_LONG 0x64 "abilitiesoffset" READ_LONG 0x6a "effectsoffset" READ_SHORT 0x68 "#abilities1" READ_SHORT 0x68 "#abilities2" READ_SHORT 0x70 "#globaleffects" WHILE ("%#abilities1%" > 0) BEGIN SET "ability#" = ("%#abilities1%" - 1) SET "ability" = ("%abilitiesoffset%" + "%ability#%" * 0x38) READ_SHORT ("%ability%" + 0x1e) "#effects" READ_SHORT ("%ability%" + 0x20) "effectsindex" SET "#abilities1" = ("%#abilities1%" - 1) END SET "ability#" = 0 SET "total#effects" = "%#globaleffects%" WHILE ("%ability#%" < "%#abilities2%") BEGIN WRITE_ASCII ("%abilitiesoffset%" + "%ability#%" * 0x38 + 0x0004) ~SPWI516A~ SET "total#effects" = ("%total#effects%" + "%#effects%") SET "ability#" = ("%ability#%" + 1) END NB. This code works, but it may be sub-optimal (as it's hacked together from other code). Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.