Page 1 of 1
[Fixed]/spawn add problem
Posted: Sun Jul 08, 2012 2:21 pm
by Durge
After I added one npc to my new zone and I added a spawn for him, every spawn after that I try to add is trying to duplicate the first spawn's ID, no idea why it wants to copy the first spawn, but I can't seem to add any npcs to the zone now.
Re: /spawn add problem
Posted: Sun Jul 08, 2012 8:32 pm
by Jabantiz
I can confirm this bug, /spawn add new is attempting to add a spawn with an id of zone_id * 10000 but if that id already exists it just gives a db error in the console, I will be looking into this.
Re: /spawn add problem
Posted: Sun Jul 08, 2012 8:55 pm
by Jabantiz
Fixed this bug and submited code to dev svn, locking this topic.
Re: [Fixed]/spawn add problem
Posted: Mon Jul 09, 2012 10:48 am
by John Adams
FYI, I recently added this new spawn_id calculation code to World, so new spawns would fit into the current zone_id * 10000 scheme we decided on years ago. I see the fix, and that was dumb of me to not bump it +1

Sorry. I had tested it on an empty DB, not one with spawns already in it

Re: [Fixed]/spawn add problem
Posted: Wed Jul 26, 2017 9:27 pm
by Cynnar
Flagged to be archived.