Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

spacer.png

 

This guide outlines the necessary modifications to be made in order to implement a feature that allows players to purchase items using specific in-game items, akin to using rubinum. Follow these steps carefully to integrate this functionality seamlessly into the shop system of your game.

Step-by-Step Implementation

1. Update service.h

Begin by adding the following line:

 
This is the hidden content, please

2. Modify tabels.h

In the file, locate:

 
This is the hidden content, please

Then, add the subsequent code snippet:

 
This is the hidden content, please

3. Update Packet.h

Look for the line:

 
This is the hidden content, please

And append this below it:

 
This is the hidden content, please

Next, find:

 
This is the hidden content, please

And add:

 
This is the hidden content, please

4. Modify Shop.cpp

Within the function void CShop::SetShopItems(TShopItemTable *pTable, BYTE bItemCount), search for:

 
This is the hidden content, please

Insert:

 
This is the hidden content, please

Next, in the int CShop::Buy function, locate:

 
This is the hidden content, please

And include:

 
This is the hidden content, please

Then, find:

 
This is the hidden content, please

Replace it with:

 
This is the hidden content, please

Now, locate:

 
This is the hidden content, please

And modify it as follows:

 
This is the hidden content, please

Next, search for:

 
This is the hidden content, please

And add:

 
This is the hidden content, please

Finally, look for:

 
This is the hidden content, please

Add the following:

 
This is the hidden content, please

5. Update shop.h

Search for:

 
This is the hidden content, please

Then, append:

 
This is the hidden content, please

Next, find:

 
This is the hidden content, please

And add:

 
This is the hidden content, please

6. Modify ClientManagerBoot.cpp

Look for:

 
This is the hidden content, please

And include:

 
This is the hidden content, please

Next, find:

 
This is the hidden content, please

And add:

 
This is the hidden content, please

7. Update Locale_inc.h

Add the following line:

 
This is the hidden content, please

8. Modify GameType.h

Locate:

 
This is the hidden content, please

Then add:

 
This is the hidden content, please

9. Update PythonApplicationModule

Add the following block:

 
This is the hidden content, please

10. Modify PythonNetworkStreamPhaseGame.cpp

Look for the case statement:

 
This is the hidden content, please

And include:

 
#ifde
This is the hidden content, please

11. Update Packet.h Again

Locate the struct:

 
This is the hidden content, please

And ensure you include:

 
This is the hidden content, please

Find:

 
This is the hidden content, please

And add:

 
This is the hidden content, please

12. Modify locale_game.txt

Include the following entry:

 
This is the hidden content, please

Following these detailed steps will allow you to successfully implement the purchase functionality using items in the shop system. Make sure to test thoroughly for any potential issues that may arise.

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