Waypoints SF: Difference between revisions

From Project Skyfire
Jump to navigation Jump to search
No edit summary
 
Line 126: Line 126:
ID of the path
ID of the path


''The TDB standard way of assigning an ID is the [[creature_tc2#guid|GUID]] of the creature X 10.''
''The TDB standard way of assigning an ID is the [[creature_SF#guid|GUID]] of the creature X 10.''


''So for a creature with a GUID of 1234 the path ID would be 12340. Any waypoints submitted to TDB should  follow this standard.''
''So for a creature with a GUID of 1234 the path ID would be 12340. Any waypoints submitted to TDB should  follow this standard.''


''However, this is only a suggestion when creating your own waypoints. This ID can be anything you want as long as [[creature_addon_tc2#path_id|creature_addon.path_id]] is set to the ID you pick here for the creature you are creating a waypoint for.''
''However, this is only a suggestion when creating your own waypoints. This ID can be anything you want as long as [[creature_addon_SF#path_id|creature_addon.path_id]] is set to the ID you pick here for the creature you are creating a waypoint for.''


==== point ====
==== point ====
Line 149: Line 149:


==== action ====
==== action ====
ID of action in [[scripts_tc2|waypoint_scripts]] to be performed  
ID of action in [[scripts_SF|waypoint_scripts]] to be performed  


==== action_chance ====
==== action_chance ====

Latest revision as of 01:24, 6 July 2012

Back to world database list of tables.


The `waypoint_data` table

This table contains all the path data for creatures that use waypoints.


Field Type Attributes Key Null Default Extra Comment
id int(10) unsigned NO 0 Creature GUID
point mediumint(8) unsigned NO 0
position_x float signed NO 0
position_y float signed NO 0
position_z float signed NO 0
orientation float signed NO 0
delay int(10) unsigned NO 0
move_flag tinyint(1) signed NO 0
action int(11) signed NO 0
action_chance smallint(3) signed NO 100
wpguid int(11) signed NO 0


Description of the fields

id

ID of the path

The TDB standard way of assigning an ID is the GUID of the creature X 10.

So for a creature with a GUID of 1234 the path ID would be 12340. Any waypoints submitted to TDB should follow this standard.

However, this is only a suggestion when creating your own waypoints. This ID can be anything you want as long as creature_addon.path_id is set to the ID you pick here for the creature you are creating a waypoint for.

point

ID of point of path

position

X, Y and Z coordinates of destination

orientation

The orientation of the creature. (North = 0.0; South = pi (3.14159))

delay

Time (in ms) between each point

move_flag

0 - walk 1 - run

action

ID of action in waypoint_scripts to be performed

action_chance

Action chance in percents (0-100%)

wpguid

This field is used by the core and is NOT to be set by hand.

This field holds the GUID of the waypoint visual when you enable the visual mode for waypoints.