Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Database/World Building

Archive::Database/World Building Archive area for General Discussion's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-09-2003, 03:55 PM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

Thought I would post this. It is sql commands to "compress" all the door ID's so there aren't any gaps and it starts at 1

As long as you have less than 10000 doors this will fix the door ID limit. Normaly there are about 5500 doors that we have data for.

Replace eq440 (2 places) with the name of your DB.

Code:
use eq440;
drop database lurk_temp;
create database lurk_temp;

create table lurk_temp.doors select doors.* from doors;
truncate table doors;

#EQEmu 4.4 doors format
insert into eq440.doors (doorid, zone, name, pos_y, pos_x, pos_z, heading, opentype, guild, lockpick, keyitem, triggerdoor, triggertype, doorisopen, liftheight, dest_zone, dest_x, dest_y, dest_z, dest_heading) select lurk_temp.doors.doorid, lurk_temp.doors.zone, lurk_temp.doors.name, lurk_temp.doors.pos_y, lurk_temp.doors.pos_x, lurk_temp.doors.pos_z, lurk_temp.doors.heading, lurk_temp.doors.opentype, lurk_temp.doors.guild, lurk_temp.doors.lockpick, lurk_temp.doors.keyitem, lurk_temp.doors.triggerdoor, lurk_temp.doors.triggertype, lurk_temp.doors.doorisopen, lurk_temp.doors.liftheight, lurk_temp.doors.dest_zone, lurk_temp.doors.dest_x, lurk_temp.doors.dest_y, lurk_temp.doors.dest_z, lurk_temp.doors.dest_heading from lurk_temp.doors;

drop database lurk_temp;
__________________
Please read the forum rules and look at reacent messages before posting.
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:48 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3