Comments (2)
Found it out... the current implementation works when the price is set for an item which is already located in the store. However, when moving an item from the inventory to the store, the client does the following:
- Sets the price with the item slot of the item in the inventory (below InventoryConstants.FirstStoreItemSlotIndex)
- Moves the item from the inventory to the store
So our item price array is not big enough to hold all prices. Maybe we should also consider to add a price property to the Item itself instead of using the array - when an item moves, the price does not move yet, too.
Adding the price to the Item could also be a nice extension for the standard behavior... store prices could be persistent :) Who doesn't remember the stupid task of setting item prices after reconnecting?
from openmu.
Should be fixed with 5286341.
However, I think that's currently not possible to send the persistent prices of the own items of the store back to the client - I found no message type for that. So the last point of my last comment remains a dream for now ;)
from openmu.
Related Issues (20)
- [Feature] Marriage HOT 1
- [Bug] Stuck on "Please Wait" Box when Creating Character with Existing Name HOT 1
- Where can i download the MU Client? HOT 1
- Guild creation doesn't clear the info of the last guild that was created. HOT 1
- [Feature] Admin Panel Localization
- [Bug] Adding points by /add disconnects the character from BC and DS HOT 2
- OpenMU on Kubernetes HOT 2
- After restart i lost all my data HOT 2
- Local Run - No Internet HOT 3
- Can I help with any tasks? HOT 3
- Can't build the solution HOT 2
- Prevent equipping weapons and shields when not enough hands are free HOT 3
- Level-up points should be compensated when gaining Hero Status beyond level 220
- Guardian Angel damage absorption works in reverse HOT 7
- CPU 100% when the server is running HOT 11
- I love to help HOT 3
- Broken link on packets docs HOT 1
- A Fenrir cannot be repaired with a Jewel of Bless
- Can't promote guild members to battle master and assistant guild master HOT 1
- Guild Alliance, Hostility, Suspend Hostility nor working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openmu.