Jump to content

[beta 3] item cost

Guest erik

Recommended Posts

The Crypt King has this item, but i has zero charges listed in his creature file. Items that have zero charges can only be sold for 1gp; if you rest you should be able to sell it for full price (or if you have a bag of holding, pop it in and then back out to recharge it). For the next version we'll add charges to the Crypt King's creature file.


// adds a charge to Namarra on the Crypt King
COPY_EXISTING ~bhcrypt.cre~ ~override~
 READ_LONG 0x2bc "itm_off"
 READ_LONG 0x2c0 "itm_num"
 FOR (index = 0; index < itm_num; index = index + 1) BEGIN
READ_ASCII ("%itm_off%" + (0x14 * "%index%")) "item"
PATCH_IF ("%item%" STRING_COMPARE_CASE "sw1h36" = 0) BEGIN
  WRITE_SHORT ("%itm_off%" + 0x0a + (0x14 * "%index%")) 3
  SET "index" = "%itm_num%" // kills loop

Link to comment


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

  • Create New...