Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

In this guide, we will explore the process of setting up the Shop Ex functionality, allowing you to manage in-game shops effectively. This includes crafting a configuration file and making necessary adjustments to your code. Let’s dive right in!

Step 1: Create the Configuration File

Begin by creating a file titled /share/locale/xx/shop_table_ex.txt. This file will define how your shops are structured. Here is a sample setup for the file:

This is the hidden content, please

Breakdown of the Configuration

  • ShopNPC Group: This section identifies the NPCs associated with their respective shops.
  • Shop1 and Shop2 Groups: Each group includes a unique identifier (Vnum), the shop name, the currency accepted, and the items available for sale with their respective counts and prices.

Step 2: Modify the Code in shopEx.cpp

Next, locate the instances of ITEM_SECONDARY_COIN within shopEx.cpp (you will find it twice). You will need to modify these references to align with the item Vnum based on your requirements.

Step 3: Update locale_game.txt

Afterward, open locale_game.txt and add the following line to define a new monetary unit:

This is the hidden content, please

This command connects the label "SecondCoin" with the monetary type in your game, ensuring it displays correctly.

Final Result

After completing these steps, your configuration should yield a visual result similar to what's shown in the image below:

Shop Ex Result

By following the above instructions, you'll be equipped to successfully utilize the Shop Ex functionality and customize it according to your gaming needs. Enjoy enhancing your game!

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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...