PDA

View Full Version : Races field in PEQ Database


zeroktal
01-12-2026, 03:39 PM
How is the Races / Classes calculation done in the PEQ database? For instance, the Cryosilk Cap has Race: HUM ERU HIE DEF GNM IKS FRG DRK , that number is 55349 in the DB.

joligario
01-12-2026, 06:22 PM
Bitwise math. Best to use an editor like PEQ or do the math by hand.

zeroktal
01-12-2026, 06:54 PM
Is there someplace that says what the math is? I'm trying to import items automatically.

joligario
01-12-2026, 07:31 PM
https://github.com/ProjectEQ/peqphpeditor/blob/master/lib/data.php

Go down and find the races. In that order, apply your math.

zeroktal
01-20-2026, 12:30 PM
Since it was the math I was asking about, I wasn't able to figure it out. BUT, gemini was.
Human 1
Barbarian 2
Erudite 4
Wood Elf 8
High Elf 16
Dark Elf 32
Half Elf 64
Dwarf 128
Troll 256
Ogre 512
Halfling 1024
Gnome 2048
Iksar 4096
Vah Shir 8192
Froglok 16384
Drakkin 32768


Then just add for each.

(in case anyone else is looking for it)