Skip to content

Spawning monsters in new zone #4554

Answered by zach2good
zDeadHeadFredz asked this question in Q&A
Discussion options

You must be logged in to vote

Hey!

Regular Mob (and NPC) IDs are specific to the zone they're from. This is the formula for building the long-ID of an entity:

auto id = 0x1000000 + (m_zone->GetID() << 12) + targid;

With targid being the index of that entity in the game's DAT files.

What you can do however, is spawn a dynamic entity. Take a look at the !fafnir GM command for how to do that.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@zDeadHeadFredz
Comment options

Answer selected by zDeadHeadFredz
Comment options

You must be logged in to vote
1 reply
@zDeadHeadFredz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants