Jump to content

Summoned creatures shouldn't drop anything


Recommended Posts

Summoned creatures shouldn't be dropping squat.


// summoned creatures shouldn't drop items
COPY_EXISTING ~dagnoll.cre~  ~override~ // halb01.itm, rndtre04.itm, rndtre02.itm
             ~gibbersu.cre~ ~override~ // rndtre02.itm
             ~gnollsu.cre~  ~override~ // helm01.itm, halb01.itm
             ~hamasu.cre~   ~override~ // dagg01.itm, potn20.itm, potn08.itm
             ~hobgobsu.cre~ ~override~ // bow05.itm, arow01.itm, leat01.itm, sw1h01.itm
             ~koboldsu.cre~ ~override~ // sw1h07.itm, bow05.itm, arow08.itm, arow01.itm, helm01.itm
             ~ogremasu.cre~ ~override~ // sw1h02.itm
             ~sahangu.cre~  ~override~ // rndtre04.itm, sper01.itm
             ~sahlace.cre~  ~override~ // rndtre04.itm
             ~sahskel.cre~  ~override~ // sw2h02.itm, rndtre05.itm, helm08.itm
             ~tasloisu.cre~ ~override~ // rndtre02.itm, sper01.itm, slng01.itm, bull01.itm, helm01.itm
             ~wolfwisu.cre~ ~override~ // misc01.itm
             ~wolfwwsu.cre~ ~override~ // misc01.itm
             ~wyvernsu.cre~ ~override~ // misc52.itm
             ~xvartsu.cre~  ~override~ // sw1h07.itm, rndtre02.itm, helm01.itm
 READ_LONG 0x2bc "item_off"
 READ_LONG 0x2c0 "item_num"
 FOR (index = 0; index < item_num; index = index + 1) BEGIN
   READ_BYTE ("%item_off%" + 0x10 + ("%index%" * 0x14)) "flags"
   PATCH_IF (("%flags%" BAND 0b00001000) = 0b00000000) BEGIN // if droppable
     WRITE_BYTE ("%item_off%" + 0x10 + ("%index%" * 0x14)) ("%flags%" BOR 0b00001000) // adds undroppable flag

Link to comment


This topic is now archived and is closed to further replies.

  • Create New...