I need a weidu code, please. I have read the weidu readme, but this is complicated for me without practice :-/
I need to patch all the wizard spells scrolls to be forbidden for hundead slayer.
Posted 07 February 2012 - 04:13 PM
COPY_EXISTING_REGEXP GLOB ~.*\.itm~ override PATCH_IF SOURCE_SIZE>0x71 BEGIN
READ_SHORT 0x1c item
PATCH_IF item=0xb BEGIN
arc=0
GET_OFFSET_ARRAY ab_arr ITM_V10_HEADERS
PHP_EACH ab_arr AS i => ab_off BEGIN
GET_OFFSET_ARRAY2 ef_arr ab_off ITM_V10_HEAD_EFFECTS
PHP_EACH ef_arr AS i2 => ef_off BEGIN
READ_SHORT ef_off op
PATCH_IF op=147 BEGIN // the 'learn spell' opcode
READ_ASCII ef_off+0x14 spell (8) NULL
PATCH_IF FILE_EXISTS_IN_GAME ~%spell%.spl~ BEGIN
INNER_ACTION BEGIN
COPY_EXISTING - ~%spell%.spl~ override PATCH_IF SOURCE_SIZE>0x71 BEGIN
READ_SHORT 0x1c tp
PATCH_IF tp=1 BEGIN // spell type is arcane
arc=1
END
END
END
END
END // PATCH_IF op=147
END
END
PATCH_IF arc BEGIN
WRITE_BYTE 0x2f (THIS | 32)
END
END // PATCH_IF item=0xb
END BUT_ONLY
Posted 08 February 2012 - 02:55 AM
Edited by deratiseur, 08 February 2012 - 02:56 AM.
Posted 24 February 2012 - 01:38 AM

0 members, 1 guests, 0 anonymous users