PDA

View Full Version : Help with items


rottendeath
09-28-2007, 08:42 AM
I'm trying to create custom items for my server, and i have had minimal success.
I overwrote one item because i could not figure out how to assign it to the right class/race, and when i tried to just create a new weapon, it was an unusable bag the did a LOT of damage.
Is there an item editor that creates the row for you to insert, or at least a chart i can refer to or something when making an item, or am i stuck picking attributes off of other items?

(I tried to download the item editor that comes up on this site when you search the forums, but the page is dead.)

Theeper
09-28-2007, 01:20 PM
Classes and races are set like bitfields in the items table. They use a power of two to specify which class/race can equip the item. From classes.h and races.h we can see the values (I took them out of alphabetical order for readibility).


#define warrior_1 1
#define cleric_1 2
#define paladin_1 4
#define ranger_1 8
#define shadow_1 16
#define druid_1 32
#define monk_1 64
#define bard_1 128
#define rogue_1 256
#define shaman_1 512
#define necromancer_1 1024
#define wizard_1 2048
#define mage_1 4096
#define enchanter_1 8192
#define beastlord_1 16384
#define berserker_1 32768


#define human_1 1
#define barbarian_1 2
#define erudite_1 4
#define woodelf_1 8
#define highelf_1 16
#define darkelf_1 32
#define halfelf_1 64
#define dwarf_1 128
#define troll_1 256
#define ogre_1 512
#define halfling_1 1024
#define gnome_1 2048
#define iksar_1 4096
#define vahshir_1 8192


If you wanted an item to be WAR only, you would set it's class field to 1. If you wanted it to be WAR and ROG usable, you can add the numbers together and set it to 257 (1 + 256) .. etc. The same goes for classes.

Look on the wiki or search the forums for a list of item types. I have seen a few.

techguy84
09-29-2007, 04:16 AM
There are a couple great editors out there that can handle the grunt work of DB manipulation for you, which is somthing that I reccomend you use first to get a feel for things.

First one is Kayot's Editor. It can edit a multitude of things in the db. It has some quirks, but is a very nice editor. Next would be all of GeorgeS tools. He has made countless tools for you to use and I recommend you try them out.

Kayot's Page (http://www.eqemulator.net/forums/showthread.php?t=23607)

GeorgeS Page (http://66.159.225.58/eqemu/eq.html)