
graveyards table different?
Because I wanted to execute the arcscripts_full.sql script I noticed that the graveyards table is not the same as it is in the world structure:
World structure:
Code:
/*Table structure for table `graveyards` */
DROP TABLE IF EXISTS `graveyards`;
CREATE TABLE `graveyards` (
`id` int(10) unsigned NOT NULL auto_increment,
`position_x` float NOT NULL default '0',
`position_y` float NOT NULL default '0',
`position_z` float NOT NULL default '0',
`orientation` float NOT NULL default '0',
`zoneid` int(10) unsigned NOT NULL default '0',
`adjacentzoneid` int(10) unsigned NOT NULL default '0',
`mapid` int(10) unsigned NOT NULL default '0',
`faction` int(10) unsigned NOT NULL default '0',
`name` varchar(255) character set utf8 collate utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Graveyard System';
WhyDB:
Code:
DROP TABLE IF EXISTS `graveyards`;
CREATE TABLE `graveyards` (
`id` smallint(4) unsigned NOT NULL AUTO_INCREMENT,
`position_x` float NOT NULL DEFAULT '0',
`position_y` float NOT NULL DEFAULT '0',
`position_z` float NOT NULL DEFAULT '0',
`orientation` float NOT NULL DEFAULT '0',
`zoneid` tinyint(1) unsigned NOT NULL,
`adjacentzoneid` tinyint(1) unsigned NOT NULL,
`mapid` smallint(3) unsigned NOT NULL,
`faction` enum('0','1','3') NOT NULL,
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2001 DEFAULT CHARSET=latin1 COMMENT='Graveyard System';
I wanted to execute the following line:
Code:
REPLACE INTO `graveyards` VALUES ('142', '248.339', '7084.93', '36.6211', '0', '3521', '0', '530', '4', 'Twin Spire Ruins');
The differents why I can not execute the command:
1. zoneid is tinyint
2. faction is not int(10)
Remarks:
Because no one of the unfriendly arcemu guys give me an usable answer I still don't know 100% if this very old script is still needed.