access items in inventory

Initiate Mage
Joined
Feb 19, 2023
Messages
2
Reaction score
0
how can i access inventory items via database?where are the character's items stored?
 
Character (role) and game data is stored in gamedbd/data or path similar set in gamedbd/gamesys.conf. Simplest method to access is in v1.5.3+ via command prompt...

Navigate to gamedbd by :

cd /home/gamedbd

List all commands by :

./gamedbd gamesys.conf ?

Export role by :

./gamedbd gamesys.conf exportrole 1024 > /root/1024.xml

Make your changes to the 1024.xml, then import by :

./gamedbd gamesys.conf importrole /root/1024.xml

Make several copies before you break something...

The role will have to be logged in at least once before exportrole will work...

If gamedbd doesn't support importrole, you'll need to use pwadmin or something similar...
 
Very Good, thank you!!!!!

I exported the data.But I was not able to import.

Is there any way to remove an item from inventory?

I see that the "game dbd" file has many commands, some like:exportrolelist roleidfilename;Is there any tutorial that teaches how to use them?
 
Last edited:
You can read and write protocol to remove an item from inventory. packet structure on GRolePocket if i'm not mistaken. idk if it's the same in perfect world.
 
Back