Jump to content

Mod Request - Custom Prices


joebeefhash
 Share

Recommended Posts

Also, if you do manage to make it work, we should make it possible to sell crackers, and biscuits as well as candies and bread chunks besides being able to sell opened items. 🙂 Btw, is it possible to disable the new austin sniper so we could visit as Arthur?

Link to comment
Share on other sites

  • 4 months later...

I'm not sure how to accomplish this, but I might have an idea of what needs to be done.

 

 

 

data_0.rpf\data\itemdatabase\catalog_sp.rpf\0xCF8DA776.ymt

this is the item database file that appears to be referenced by catalog_sp.ymt, and I think it just needs to be modified to match the added texts in catalog_sp.ymt

 

The hashes should be able to be relatively easily decoded using <tags> under the item keys in catalog_sp.ymt and by comparing the tags of an nonsell-able item (cigarettes, etc.) with those of an sell-able item (pineapple, etc.). There are 10 consistent key omissions under tags with type 0xC76BC07D that happen to be common for these unsellable items.

 

Some items have many different item variations, these are examples of some that should be the right ones:

<item key="CONSUMABLE_CIGARETTE_BOX_CHEAP">,  

<item key="CONSUMABLE_CIGARETTE_BOX">,

<item key="CONSUMABLE_COCAINE_CHEWING_GUM">

which should include some changes like the following:

Spoiler

       <sellprices>
          <item>
            <key>SELL_SHOP_DEFAULT</key>
            <quantity value="1" />
            <costtype>COST_TYPE_PRICE</costtype>
            <items>
              <item>
                <item>CURRENCY_CASH</item>
                <quantity value="x" />
              </item>
            </items>
            <unlocks />
          </item>
        </sellprices>

Spoiler

<item>         

<key>CI_TAG_SHOP_PACKAGED</key>
<type>0x42D03BDE</type>
</item>

 

I hope my work will be able to help some more experienced modder figure out how to accomplish this, even if it's not entirely accurate.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...