Overview
The Item Mall system allows players to:- Purchase items using cash points
- Gift items to other players
- View their current point balance
- Process transactions through stored procedures
All Item Mall features are implemented based on client specifications with the intent to keep everything as vanilla as possible.
Installation
Install Stored Procedures
Install the following stored procedures to enable Item Mall functionality:
Required Stored Procedures
Create or Alter Procedures
The stored procedures are original code. If you receive an error during installation, change
ALTER to CREATE and try again.Database Procedures
Read User Cash Points
Retrieves the current cash point balance for a user from the UsersMaster table.
Buy Point Items
Processes the purchase of items using cash points. This is the EP6 version of the buy procedure.
Gift Point Items
Handles gifting items to other players using cash points. This is the EP6 version of the gift procedure.
Update User Points
Updates the user’s point balance after transactions.
Stored Procedure Location
The stored procedures are available at:Troubleshooting
Error: ALTER PROCEDURE failed
Error: ALTER PROCEDURE failed
If you receive an error stating that the procedure doesn’t exist, change
ALTER to CREATE in the SQL script and execute it again.Permissions Issues
Permissions Issues
Ensure the database user has the following permissions:
- CREATE PROCEDURE
- ALTER PROCEDURE
- EXECUTE on the procedures
Integration Notes
- The Item Mall uses the EP6 version of stored procedures (indicated by the
2suffix) - Point balances are stored in the
UsersMastertable - All transactions are processed server-side for security
- The client interface is automatically enabled when the stored procedures are properly configured
Related Features
- Reward Item: Another point-based system for time-based rewards
- Database Configuration: See the main configuration guide for database setup