Go Back   EQEmulator Home > EQEmulator Forums > Development > EQEmu Operations Center

EQEmu Operations Center Web development tools

Reply
 
Thread Tools Display Modes
  #1  
Old 02-17-2016, 03:58 PM
Slaymore
Fire Beetle
 
Join Date: Nov 2007
Posts: 21
Default EOC - Copy zone observation

HI,

Was playing around in the copy zone tool and I noticed something that may be important.

I was making a copy of fhalls (99 to play around with a custom zone and I noticed that when it creates the new npc entries it increments the npc numbers to 999XXX.. This could be a problem, if I understand the npc numbering system correctly.

If I have this right, any npc should have the first 3 digits of its id as the zone they are in. So 344 is guildlobby and the npcs all start with 344.

But I noticed that when I made my fhalls copy (zone 99 it created all the new npcs as 999 which is apprentice (999).

I was lucky in that 999 is really nothing. But i think this could be a problem if I had chosen say any other zone to copy. Then all the npcs for my copy would be incorrectly id'ed into the next incremented zone prefix. This would make using the zone prefix for npc queries not so good..

Last edited by Slaymore; 02-17-2016 at 04:00 PM.. Reason: emotes messing up my numbers
Reply With Quote
  #2  
Old 02-17-2016, 07:56 PM
N0ctrnl's Avatar
N0ctrnl
Discordant
 
Join Date: Jan 2007
Posts: 443
Default

It will start at the next available NPC ID. If you want them to match the zone (as the PEQ editor looks for - since I'm assuming that's what you're after), you will have to move them manually.

Note that it makes absolutely no difference what the NPC ID really is. Same with everything else it imports (grids, spawngroup, etc).

If you really want to make the IDs match, make a scratch database and remove all NPCs up to the point you want the ID to start with. Then you'll be good.
__________________
Ender - Lead GM/Developer
Vegarlson Asylum Server - http://www.vegarlson-server.org/
Reply With Quote
  #3  
Old 02-17-2016, 08:24 PM
Slaymore
Fire Beetle
 
Join Date: Nov 2007
Posts: 21
Default

Yeah, I guess I am just being @nal .. any mob in a zone should (best practice) have the zone prefix... in my ind :)

I get that it doesnt matter what the id is from a functional view point, but from a development view its not ideal..

For example

I wanted to copy a zone in EOC then use the mass field editor to change level .. say 68-72. Now I know that I can use the mass field editor to set hit points, min max hit etc. But It would be better if I could run queries and apply formulas to them ie. set hp = level * 1000 / min hit = level* 3 / max hit = level* 5 and apply them all to zone prefix number..

Again I am just being @nal I guess... I noticed that when I spawn a new npc with #spawn then write to db with #npcspawn create it also uses the next available id number... not the next available id number with that zone prefix..

oh well .. its all good as long as it works .. just seems messy to my brain lol

thanks for the reply.
Reply With Quote
  #4  
Old 02-17-2016, 10:26 PM
N0ctrnl's Avatar
N0ctrnl
Discordant
 
Join Date: Jan 2007
Posts: 443
Default

You could write queries to change it around like you're wanting to do. I mean, it is SQL after all

I've imported a mix and match of a lot of different databases. I just make a copy of the NPC, add 'em into the spawn group, and remove the high ID version. Takes me like 10 minutes at most to do almost any zone.
__________________
Ender - Lead GM/Developer
Vegarlson Asylum Server - http://www.vegarlson-server.org/
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:27 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3