Experimental load_13thflooritems.pl
I put together a quick and dirty update to the load_13thfloor_items.pl script to import the current file format in use at http://eqitems.13th-floor.org/
After researching the differences between the fields in the items database and the items.txt file I made these lists: Fields present in items table that are not present in the 13th floor items.txt file clickunk6, comment, focusunk6, heroic_cr, heroic_dr, heroic_fr, heroic_mr, heroic_pr, heroic_svcorrup, minstatus, pendingloreflag, procunk6, scrollunk6, serialization, serialized, stackable, summonedflag, wornunk6, UNK012, UNK033, UNK054, UNK059, UNK123, UNK127, UNK134, UNK137, UNK142, UNK147, UNK152, UNK157, UNK193 Fields present in the 13th floor items.txt file that are not present in the items table. UNK109, UNK219, UNK220, UNK221, UNK222, UNK223, UNK224, UNK225, UNK226, UNK227, UNK228, UNK229, UNK230, UNK231, UNK232, UNK233, UNK234, UNK235, UNK236, UNK237, UNK238, UNK239, UNK240, UNK241, UNK242 The only field no longer present in items.txt that seemed important to me was the stackable field, so I modified the script to set it to true on all items that have a stacksize > 1. I don't believe any items have heroic saves on them, and summonedflag seems to be used very inconsistently. I also set the bagslots to 10 on all items with more than that to avoid breaking existing code that assumes 10 is the upper limit. If you do import the bags you'll probably notice a fair number of discrepancies from what you might expect since a lot of sizes changed on live. Anyway, if you're feeling brave and want to import new items here's the script. No warranties, etc. Always keep a backup. :) Code:
#! /usr/bin/perl |
This is an older post, I know, but since no feedback was given I thought to share my experience.
The script does work despite some inserts failing due to improper column values (probably my fault there for having 'strict' on). One problem I did encounter is that something funky happened with food items. It must be the stacking. The server consumed the food items at an alarming rate (think 1 per tick..possibly 2 ticks) and the client (UF) said that they didn't exist if consumed manually. I say consumed, but it was probably the server just removing the item instead of putting it towards the character's food consumption. At any rate, I appreciate the contribution. |
I'm not sure all the column names actually match up anymore. There was a sql update after this was posted that may have tweaked things a bit.
This was a great discussion about how peq does the import, and why the blanket stacksize hack isn't the best approach: http://www.eqemulator.org/forums/showthread.php?t=34279 |
All times are GMT -4. The time now is 11:40 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.