Spawning monsters in new zone #4554
-
Hi can anyone help me out please? I am trying to spawn monsters in a different zone as many of them are not accessible to players and would like to spawn certain mobs in a new zone. Problem is when I change the zone ids and then try to spawn said monster I am now met with (wrong mob id) even though it worked fine in its original zone. if someone has insight and could point me in the right direction I would most appreciate it, thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
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:
With What you can do however, is spawn a dynamic entity. Take a look at the |
Beta Was this translation helpful? Give feedback.
-
not physically possible to move a mob to a different zone. Even when you have one that seems to do this, it reality its secretly 2 separate copies each in a different dat in the client side. the server can't change that. you can work around it using dynamic entities (see the or make dummy static entities at high IDs so they don't conflict (each zone has about 1023 "slots" for mobs, not including the zeroth one, that mobs and NPCs can use) and then use other tricks to rename the entity because the game will default label them |
Beta Was this translation helpful? Give feedback.
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:
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.