Rastor Posted June 4, 2005 Share Posted June 4, 2005 I am trying to change the kit usability of a few items in BG2: ToB using the bitwise operators. Thus far, I have had limited success. Here the the code that I am using to make some items usable by wizard slayers. COPY_EXISTING ~PLAT06.ITM~ ~override~ // Ankheg Plate Mail +2 ~BELT10.ITM~ ~override~ // Belt of Inertial Barrier ~CLCK05.ITM~ ~override~ // Cloak of Balduran ~CLCK26.ITM~ ~override~ // Cloak of Mirroring ~RODS01.ITM~ ~override~ // Rod of Absorption ~MISC3L.ITM~ ~override~ // Horn of Silence ~AMUL19.ITM~ ~override~ // Amulet of 5% Magic Resistance ~AMUL25.ITM~ ~override~ // Amulet of Spell Warding ~AMUL20.ITM~ ~override~ // Kaligun's Amulet of Magic Resistance ~MISC3E.ITM~ ~override~ // Black Spider Figurine ~MISC3I.ITM~ ~override~ // Silver Horn of Valhalla ~POTN11.ITM~ ~override~ // Potion of Invulnerability ~POTN33.ITM~ ~override~ // Potion of Magic Blocking ~POTN34.ITM~ ~override~ // Potion of Magic Protection ~POTN35.ITM~ ~override~ // Potion of Magic Shielding ~RING34.ITM~ ~override~ // Ring of Spell Turning ~WAND18.ITM~ ~override~ // Wand of Spell Striking ~MISC3H.ITM~ ~override~ // Horn of Blasting ~POTN42.ITM~ ~override~ // Potion of Invulnerability ~MISC72.ITM~ ~override~ // The Claw of Kazgaroth ~CLCK03.ITM~ ~override~ // Cloak of Displacement ~MISC3A3.ITM~ ~override~ // The Book of Infinite Spells (True Seeing) ~MISC3A5.ITM~ ~override~ // The Book of Infinite Spells (Spell Turning) ~MISC9Y.ITM~ ~override~ // Brine Potion ~POTN21.ITM~ ~override~ // Potion of Clarity ~POTN45.ITM~ ~override~ // Potion of Freedom ~POTN46.ITM~ ~override~ // Potion of Stone Form ~RING09.ITM~ ~override~ // Ring of Free Action ~RING39.ITM~ ~override~ // Ring of Gaxx ~RING33.ITM~ ~override~ // Ring of the Ram READ_BYTE 0x2f "usability" WRITE_BYTE 0x2f ("%usability%" BOR "0b00000010") BUT_ONLY_IF_IT_CHANGES When WeiDU runs that code, however, nothing happens. I will install that portion of the tp2, then load up the item in NI and see that it is still not useable by wizard slayers. Along the same vein, there are some items that I am trying to make not useable by wizard slayers. I am using this code to do it: COPY_EXISTING ~CHAN20.ITM~ ~override~ // White Dragon Scale ~WA2HELM.ITM~ ~override~ // Vhailor's Helm ~HELM16.ITM~ ~override~ // Helm of Brilliance ~MISC9W.ITM~ ~override~ // Drow Piwafwi Cloak ~SW1H16.ITM~ ~override~ // Ilbratha +1 READ_BYTE 0x2f "usability" WRITE_BYTE 0x2f ("%usability%" BOR "0b11111101") BUT_ONLY_IF_IT_CHANGES I get the same result as above. Absolutely nothing changes. Could someone please give me a hand in resolving this issue? Link to comment
This topic is now archived and is closed to further replies.