[Opinion] Loading user assigned items (inventory/equipments)
So I'm using a SQL DataBase (MsSQL to be more specific) , and I can't really decide how I should load user assigned items, e.g. the inventory.
I could:
load all items at once and assign them to users when they log on
load them using a query which would only return items with a specific value as a owner
create one table per user, but this would affect organization
What I'm saying is that you'd create a table (note, table) for example, items. So you create an table called items, with columns (note, column) including the entity ID and the item information you want to load.
I'd suggest you do this for most of the stuff, for example skills.
The only things I don't load in memory when I start the server are the characters and the accounts. The difference of memory usage is really not considerable and you don't have to load something more than one time...
What I'm saying is that you'd create a table (note, table) for example, items. So you create an table called items, with columns (note, column) including the entity ID and the item information you want to load.
I'd suggest you do this for most of the stuff, for example skills.
Exactly.
A column is only a part of a table.
A table is not a part of a column.
So why create multiple tables for items only?
Exactly.
A column is only a part of a table.
A table is not a part of a column.
So why create multiple tables for items only?
He never said create multiple tables just for items he meant, for all the things you need to load (items, skills, quests, etc) You create a table for each of these things (1 table for items, 1 for skills, 1 for quests) and then populate them accordingly.
In your database have one table for player items, with a column with the owners UID.
When they login, query the table for every item who's owner UID is the same as the UID of the player logging in, and populate a dictionary for that player.
[Question] delete Items from Inventory 08/12/2010 - EO PServer Hosting - 4 Replies Perhaps it is rather a stupid question, but I ask anyway.
Is there an Action Type ID what items will automatically delete after the maintenance?
Or do I have to make that over a Query?
And I could be whoever they happened to Action ID list post. Because I can not find here.
The once forcer or funhacker created.
l2w ig items in inventory not showing. 04/11/2010 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 2 Replies Hi,
I am having problems with my igw, i have the latest version, Oracles 2.17j, it works fine but I have a nig issue where inventory items are not showing correctly, as a result no consumables can be used also I cannot farm seeds.
I can drop and pick up potions so they would work, but same trick didnt work for seeds, anyone else faced this problem and come across a solution?
Thanks.
[Help] Loading items (Database.cs line 1210) 07/09/2009 - CO2 Private Server - 9 Replies Ok this happened after not even touching Database.cs but adding a new health pot.
But whenever i start the gameserver up (LOTF) it now says "Specified Cast is not valid" and then says "Database.cs:line 1210"
And what is on that line:
else if (Level == 89)//Line 1209
return 31033236;//Line 1210
Does anyone have the numbers assigned to specific monsters? 09/08/2008 - Dekaron - 3 Replies I know that styx is 2251 from the vac hack tut. Does anyone have the new assignments of numbers to monsters? Also, does anyone know where I can find a list of the monsters updated in each of the crespo dungeons? thank you =)
Gems Assigned by Timing? 04/27/2006 - Conquer Online 2 - 12 Replies Ok, heres food for thought.
"Gems are determined by time of day"
I present this idea based on the fact that i had 2 chars in independent mines mining and both got a gem at the exact same time (to the minute anyway) My flatmate also was mining in another mine and said he got one too when i whispered him minutes later.
The Gems where all normal and for 3 players all to get gems at the same time i feel is a bit co-incidental.
This idea could be plausable as say at 45min past the hour a...