how can i access inventory items via database?where are the character's items stored?
Printable View
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...
gamedbd doesn't support importrole in pw
i do remember to have used command
./gamedbd gamesys.conf importrole rolefileexported.xml
to import a user back to database.
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?
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.