Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

In this tutorial, we will guide you through the process of incorporating two new items—Marble and Bless—into your shop system in a C++ game. Follow the detailed instructions below to seamlessly integrate these features.

Step-by-Step Instructions

  1. Locate the shop.cpp File

    Begin by navigating to game/src/shop.cpp.

  2. Search for the Following Code:

    Find the line:

     
    This is the hidden content, please

     

This section needs to be modified as follows:

 
  • This is the hidden content, please

     

  • Update the Code as Shown Below:

    Replace the previous code block with this optimized version:

     
  • This is the hidden content, please

     

  • Search Again in shop.cpp for:

     
// HIVALUE_ITEM_EVENT
    

Make sure the code appears as follows:

 
  • This is the hidden content, please

     

  • Modify This Section to Fit the Following Structure:

    Update the existing code to streamline the checks for the new items:

     
  1. This is the hidden content, please

     

 

By following these steps, you can successfully add the Marble and Bless items to your shop system, allowing players the opportunity to purchase these special items. This enhancement not only improves your game's item roster but also makes for a more engaging gameplay experience.

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...