smaitch / Grail

World of Warcraft addon to provide a database of quest information.
31 stars 20 forks source link

NPC ID generation #227

Closed NERON closed 3 years ago

NERON commented 4 years ago

Hi. I'm trying to add new NPCs and quests for Shadowlands...But i don't understand how keys for G array generated in Grail-NPCs.

But we also have keys that 5000000 ..to 7000000. Why we have such range? How gaps generated between keys (593805,593822,594429 this is sequence keys, for example..)

smaitch commented 4 years ago

The 5... ones were manually created a long while ago and were basically created from using the original NPC ID with a new location. Then life became more complicated because some NPCs have more then two locations. So, that is where the 7... values come from. Basically Grail now creates new locations in the Grail.lua saved variables file using the 3... range and when that file is submitted, those values get translated to the proper 7... range values based on what already exits. The same type of thing now happens for world quests using the Grail that is on GitHub. I would suggest that the easiest way to add new quests and NPCs in Shadowlands is to use the latest Grail from GitHub, and just play as you would normally. Then submit the Grail.lua saved variables file via email, a ticket, etc. and I can process it to have any new things you have found added to the release which will then be updated on GitHub until a new release is made to the public.