Jump to content

lefreut

Modders
  • Posts

    249
  • Joined

  • Last visited

Posts posted by lefreut

  1. In enchant_items.tra, ref @115106 & @115107 are duplicated. The duplicated one should probably be @115108 & @115109 instead.

    And in scroll_crafting.tpa:

    //masterwork materials
     COPY ~%folder%/data/scrolls/B_BPG01.itm~ ~override/B_BPG03.itm~  //blank scroll item
            SAY NAME1 @115108
            SAY NAME2 @115108
            SAY UNIDENTIFIED_DESC @115108
        SAY DESC @115108
        WRITE_LONG 0x0034 ~200~ //gold
        WRITE_BYTE 0x0038 ~9~ //stack

    I guess UNIDENTIFIED_DESC & DESC should use ref @115109.

  2. The easiest is probably to add the change in this function yes.

    string.gsub is used to replace a substring by another one. The first argument is the string, the second the pattern and the third the replacement.

    For example,

    this to change all occurrences of '^0xff7da58c' (you have to escape the ^ with a % as otherwise it has a special meaning in regex) into '^0xFFC0CBFF':

    text = string.gsub(text, "%^0xff7da58c", "^0xFFC0CBFF")

    or this to replace all colors (^0x followed by 8 hex character) with '^0xFFC0CBFF':

    text = string.gsub(text, "%^0x%x%x%x%x%x%x%x%x", "^0xFFC0CBFF")

     

×
×
  • Create New...