Transporters
Posted: Fri Jan 02, 2009 1:42 pm
I have created a new table called transporters that allows you to setup up ... you guessed it - transporters
There are 3 types of transporters right now:
1. Those that give you a list of destinations (mariner bells).
2. Those that are setup via a specific location and warp to to another location like in the SQ mage tower.
3. Generic objects that are able to transport you to other locations.
The table is self explanatory for the most part, you just need to use the same transport_id for your list of destinations if you are using type 1. Otherwise you need to use a different transport_id for each entry. If using type 1, after you have set up a list of valid transport locations you simply set the spawn's transport_id field to the transport_id you used to set up the list. Then you can do a /reload spawns and test it out
Notes:
1. destination_heading is only used if the player leaves the zone.
2. the cost field works but doesn't display the cost of the route before you take it (I'm working on it).
3. Message (if given) is displayed to the client when they use the transport
John the following will data get you started, feel free to make you changes you need to:
1. Those that give you a list of destinations (mariner bells).
2. Those that are setup via a specific location and warp to to another location like in the SQ mage tower.
3. Generic objects that are able to transport you to other locations.
The table is self explanatory for the most part, you just need to use the same transport_id for your list of destinations if you are using type 1. Otherwise you need to use a different transport_id for each entry. If using type 1, after you have set up a list of valid transport locations you simply set the spawn's transport_id field to the transport_id you used to set up the list. Then you can do a /reload spawns and test it out
Notes:
1. destination_heading is only used if the player leaves the zone.
2. the cost field works but doesn't display the cost of the route before you take it (I'm working on it).
3. Message (if given) is displayed to the client when they use the transport
John the following will data get you started, feel free to make you changes you need to:
Code: Select all
INSERT INTO "transporters" ("id", "transport_id", "transport_type", "display_name", "destination_zone_id", "destination_x", "destination_y", "destination_z", "destination_heading", "trigger_location_zone_id", "trigger_location_x", "trigger_location_y", "trigger_location_z", "trigger_radius", "cost", "message") VALUES
('2','1','Zone','Nettleville','233','684.31','-35.4','339.18','0','0','-1','-1','-1','-1','0',NULL);
INSERT INTO "transporters" ("id", "transport_id", "transport_type", "display_name", "destination_zone_id", "destination_x", "destination_y", "destination_z", "destination_heading", "trigger_location_zone_id", "trigger_location_x", "trigger_location_y", "trigger_location_z", "trigger_radius", "cost", "message") VALUES
('3','1','Zone','The Baubbleshire','238','966.52','-18.2','-436.97','0','0','-1','-1','-1','-1','0',NULL);
INSERT INTO "transporters" ("id", "transport_id", "transport_type", "display_name", "destination_zone_id", "destination_x", "destination_y", "destination_z", "destination_heading", "trigger_location_zone_id", "trigger_location_x", "trigger_location_y", "trigger_location_z", "trigger_radius", "cost", "message") VALUES
('4','1','Zone','Qeynos Harbor','221','999.14','-25.79','27.04','0','0','-1','-1','-1','-1','0',NULL);
INSERT INTO "transporters" ("id", "transport_id", "transport_type", "display_name", "destination_zone_id", "destination_x", "destination_y", "destination_z", "destination_heading", "trigger_location_zone_id", "trigger_location_x", "trigger_location_y", "trigger_location_z", "trigger_radius", "cost", "message") VALUES
('5','1','Zone','Graystone Yard','235','950.74','-25.22','-156.65','0','0','-1','-1','-1','-1','0',NULL);
INSERT INTO "transporters" ("id", "transport_id", "transport_type", "display_name", "destination_zone_id", "destination_x", "destination_y", "destination_z", "destination_heading", "trigger_location_zone_id", "trigger_location_x", "trigger_location_y", "trigger_location_z", "trigger_radius", "cost", "message") VALUES
('6','1','Zone','The Willow Wood','237','829.24','-20.36','-780.82','0','0','-1','-1','-1','-1','0',NULL);
INSERT INTO "transporters" ("id", "transport_id", "transport_type", "display_name", "destination_zone_id", "destination_x", "destination_y", "destination_z", "destination_heading", "trigger_location_zone_id", "trigger_location_x", "trigger_location_y", "trigger_location_z", "trigger_radius", "cost", "message") VALUES
('7','1','Zone','Starcrest Commune','234','724.88','-35.2','325.29','0','0','-1','-1','-1','-1','0',NULL);
INSERT INTO "transporters" ("id", "transport_id", "transport_type", "display_name", "destination_zone_id", "destination_x", "destination_y", "destination_z", "destination_heading", "trigger_location_zone_id", "trigger_location_x", "trigger_location_y", "trigger_location_z", "trigger_radius", "cost", "message") VALUES
('8','2','Location','N/A','0','719.8','35.22','123.31','0','231','725.48','-20.36','125.77','0.6','0',NULL);
INSERT INTO "transporters" ("id", "transport_id", "transport_type", "display_name", "destination_zone_id", "destination_x", "destination_y", "destination_z", "destination_heading", "trigger_location_zone_id", "trigger_location_x", "trigger_location_y", "trigger_location_z", "trigger_radius", "cost", "message") VALUES
('9','3','Location','N/A','0','721.09','-19.64','118.38','0','231','721.29','35.22','117.68','0.6','0',NULL);