Well i think u can do it with some SQL,
U need to make a temporary table first :
Code:
/*
SQLyog Enterprise - MySQL GUI v6.07
Host - 5.0.45-community-nt : Database - world
*********************************************************************
Server version : 5.0.45-community-nt
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
create database if not exists `world`;
USE `world`;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*Table structure for table `tmp` */
DROP TABLE IF EXISTS `tmp`;
CREATE TABLE `tmp` (
`id` int(11) unsigned NOT NULL auto_increment,
`entry` int(30) NOT NULL,
`map` int(30) NOT NULL,
`position_x` float NOT NULL,
`position_y` float NOT NULL,
`position_z` float NOT NULL,
`orientation` float NOT NULL,
`movetype` int(30) NOT NULL default '0',
`displayid` int(30) unsigned NOT NULL default '0',
`faction` int(30) NOT NULL default '14',
`flags` int(30) NOT NULL default '0',
`bytes` int(30) NOT NULL default '0',
`bytes2` int(30) NOT NULL default '0',
`emote_state` int(30) NOT NULL default '0',
`npc_respawn_link` int(30) NOT NULL default '0',
`channel_spell` int(30) NOT NULL default '0',
`channel_target_sqlid` int(30) NOT NULL default '0',
`channel_target_sqlid_creature` int(30) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*Data for the table `tmp` */
LOCK TABLES `tmp` WRITE;
UNLOCK TABLES;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
My Database has name World and the table is called TMP
Then i went to the Console of my navcat and typed :
Code:
INsert into TMP TMPSELECT * FROM world.creature_spawns WHERE (entry >50000) and (entry <50081);
To get all the spawns for My vendors Which are in the range of 50000 - 500081.
Then all i did was dump the tmp table to a sql. Maybe u need to adjust the file to get the SPAWNID out, so it wont conflict with some future dbase..
Hope this will help u out.
Edit :
Guess it will work out fine with the gameobjects spaws too but then i guess u have to make some check in u're query line where mapid = 530 orso. or take the highest gameobjects ?? (not Sure)