Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Offline Shop Functionality: Bug Fix for Exploit Prevention


Recommended Posts

In this discussion, we will address an exploit found within the offline shop system, particularly regarding transactions involving high item values. This guide will help you implement a fix that ensures players don’t encounter issues when dealing with large amounts of currency in their offline shops.

Understanding the Exploit

The bug allows players to list items worth up to 120 billion yang in the offline shop. However, when another player purchases these items, the seller only receives a maximum of 2 billion yang, with any excess funds disappearing. This exploit needs to be addressed within the AddItem function to prevent further abuse.

A while back, someone reached out for assistance regarding this exploit, and I provided a fix at no cost. Unfortunately, that individual then profited substantially by selling my fix to others. To prevent this from happening again, I'm sharing this solution for free so everyone can benefit.

Implementation Steps

The following modifications will ensure the offline shop system operates securely and fairly for all players:

1. Modify service.h

Navigate to the file located at /Src/common/service.h. Add the following lines at the top of the file:

 
This is the hidden content, please

2. Update char.cpp

Now, open the file located at /Src/game/src/char.cpp. You’ll need to make adjustments in the relevant function.

Look for the section:

 
This is the hidden content, please

Replace it with this code:

 
This is the hidden content, please

 

With these adjustments, your offline shop should now effectively limit the amount of yang that can be handled, thus preventing the exploit from being utilized by players. This ensures a fair and stable game environment for everyone involved.

Link to comment
Share on other sites


  • 100% changed the title to Offline Shop Functionality: Bug Fix for Exploit Prevention

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