server/sql/updates/0.9/4633_spell_teleport.sql
freghar 95840fd2c3 Removed trailing whitespaces and CRLFs
With /contrib/ and /dep/ excluded.

Signed-off-by: freghar <compmancz@gmail.com>
2008-10-22 11:52:03 +02:00

17 lines
776 B
SQL

DROP TABLE IF EXISTS `spell_teleport`;
CREATE TABLE `spell_teleport` (
`id` int(11) unsigned NOT NULL default '0' COMMENT 'Identifier',
`target_map` int(11) unsigned NOT NULL default '0',
`target_position_x` float NOT NULL default '0',
`target_position_y` float NOT NULL default '0',
`target_position_z` float NOT NULL default '0',
`target_orientation` float NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Spell System';
INSERT INTO `spell_teleport`
SELECT `id`,`target_map`,`target_position_x`,`target_position_y`,`target_position_z`,`target_orientation`
FROM `areatrigger_teleport`;
DELETE FROM `spell_teleport` WHERE `target_position_x` = 0 AND `target_position_y` = 0 AND `target_position_z` = 0;