View Single Post
  #7  
Old 01-13-2004, 02:38 PM
sandy
Hill Giant
 
Join Date: Oct 2002
Posts: 212
Default

hello

zonelines like doors have an ID hardcoded in the game I think, I don't know if you can find it via your client files, if yes I don't know the way to do it =)

here is the table zone_points :
CREATE TABLE `zone_points` (
`id` int(11) NOT NULL auto_increment,
`zone` char(16) NOT NULL default '',
`number` tinyint(3) unsigned NOT NULL default '1',
`x` float NOT NULL default '0',
`y` float NOT NULL default '0',
`z` float NOT NULL default '0',
`target_x` float NOT NULL default '0',
`target_y` float NOT NULL default '0',
`target_z` float NOT NULL default '0',
`target_heading` float NOT NULL default '0',
`target_zone` char(16) NOT NULL default '',
`heading` float NOT NULL default '0',
`keep_x` tinyint(1) NOT NULL default '0',
`keep_y` tinyint(1) NOT NULL default '0',
`zoneinst` smallint(5) unsigned default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `NewIndex` (`number`,`zone`)
)

zone lines are teleports, like some doors when they teleport you if you click on it, and like some platforms that teleport you when you walk on it
with this table you specify where it teleports you, it can be in the same zone, or another

'id' is an auto_increment, it's not important
'zone' is the name of the zone where is the teleport
'number' is the ID I was speaking of, it's very important then ) it specifies which teleport these infos are corresponding to

x,y,z and heading, are not important, I don't know if they are used ?

target_zone is the zone where the teleport leads, can be same zone or another
target_x,target_y,target_z and target_heading is the loc where it teleports you in the target zone

keep_x,keep_y are booleans where you specify if the player keep the same direction when it appears in the target_zone at the target loc

'zone_inst' I don't know what it is =)

so you have to know the 'number' of each zone_line
you will be able to collect it exactly with the target locs and zones with packet collectors when GOD will be live
but anyway, those numbers are usually 1 for the 1rst zone line, 2 for the 2nde zone line, etc ... =)
so you maybe can try some numbers and some test locs to discover which number correspond to which zone line =)

I hope it helps

In the topic "Platform Zoning" I gave an example for Bastion of Thunder, a zone with a lot of teleports/doors/zone lines you can download sql files
__________________
Sandy
Reply With Quote