whitevo
Feeling good, thats what I do.
So yesterday when I played it and one thing bothered me. If I wanted to see what items I have in other character depot I had to log out and log in with the second character.
Today I though I'm going to make the depot same for whole account, but the database is a bit more "eh" for me. Besides I don't rly know how the depot works.
So I though I will ask first and maybe someone can answer few of these question, before I start with my trial and error thing.
1. What does column "sid" store?
2. What does column "pid" store?
3. How do you store and read item attributes with LUA?
4. How are the items created to depot? (you can guide me the code lines too)
5. How are items registered to database?
6. How are items unregistered from database?
At this state what I would do is create table with columns like that:
accid, itemid, itemaid, itemtext, itemdesc, fluidtype, count
And then when player opens depot I will create these items for him with the data gained from database.
However would be nice if I don't have to reinvent the wheel and there is much easier solution for this.
Today I though I'm going to make the depot same for whole account, but the database is a bit more "eh" for me. Besides I don't rly know how the depot works.
So I though I will ask first and maybe someone can answer few of these question, before I start with my trial and error thing.
2. What does column "pid" store?
3. How do you store and read item attributes with LUA?
4. How are the items created to depot? (you can guide me the code lines too)
5. How are items registered to database?
6. How are items unregistered from database?
At this state what I would do is create table with columns like that:
accid, itemid, itemaid, itemtext, itemdesc, fluidtype, count
And then when player opens depot I will create these items for him with the data gained from database.
However would be nice if I don't have to reinvent the wheel and there is much easier solution for this.