Editing Server:Boats
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 38: | Line 38: | ||
</pre> | </pre> | ||
and temporarily stored in the `character_data`.boatid field in the database. | and temporarily stored in the `character_data`.boatid field in the database. | ||
GM characters can observe player profile packets showing boats being boarded/departed by setting debug logging: | |||
GM characters can observe player profile packets showing boats being boarded/departed by setting debug logging | |||
<pre> | <pre> | ||
UPDATE logsys_categories SET log_to_gmsay = '3' WHERE log_category_description = 'Boats'; | UPDATE logsys_categories SET log_to_gmsay = '3' WHERE log_category_description = 'Boats'; | ||
Line 67: | Line 50: | ||
</pre> | </pre> | ||
=== Zone Entry === | |||
Each time a client enters a zone, the server checks the client packet's player profile struct for a boatid > 0 and whether the client is currently in Timorous Deep or Firionia Vie. If this is true, the boatid in the player profile struct is set back to 0. | Each time a client enters a zone, the server checks the client packet's player profile struct for a boatid > 0 and whether the client is currently in Timorous Deep or Firionia Vie. If this is true, the boatid in the player profile struct is set back to 0. | ||
<pre> | <pre> | ||
Line 207: | Line 79: | ||
* grid_entries | * grid_entries | ||
==== npc_types ==== | ===== npc_types ===== | ||
Boats are implemented as NPCs, so you'll find them in the npc_types table with a race value of Launch (73). For example, | Boats are implemented as NPCs, so you'll find them in the npc_types table with a race value of Launch (73). For example, | ||
<pre> | <pre> | ||
Line 218: | Line 90: | ||
</pre> | </pre> | ||
==== spawnentry ==== | ===== spawnentry ===== | ||
<pre> | <pre> | ||
INSERT INTO `spawnentry` (`spawngroupID`, `npcID`, `chance`, `mintime`, `maxtime`, `expansion`, `min_expansion`, `max_expansion`) VALUES (448054, 849, 100, 0, 0, 0, 0, 0); | INSERT INTO `spawnentry` (`spawngroupID`, `npcID`, `chance`, `mintime`, `maxtime`, `expansion`, `min_expansion`, `max_expansion`) VALUES (448054, 849, 100, 0, 0, 0, 0, 0); | ||
Line 233: | Line 105: | ||
</pre> | </pre> | ||
==== grid ==== | ===== grid ===== | ||
<pre> | <pre> | ||
INSERT INTO `grid` (`id`, `zoneid`, `type`, `type2`) VALUES (16, 68, 4, 1); | INSERT INTO `grid` (`id`, `zoneid`, `type`, `type2`) VALUES (16, 68, 4, 1); | ||
Line 242: | Line 114: | ||
INSERT INTO `grid_entries` (`gridid`, `zoneid`, `number`, `x`, `y`, `z`, `heading`, `pause`, `centerpoint`) VALUES (16, 68, 11, 3595, 491, -11.9, 0, 0, 0); | INSERT INTO `grid_entries` (`gridid`, `zoneid`, `number`, `x`, `y`, `z`, `heading`, `pause`, `centerpoint`) VALUES (16, 68, 11, 3595, 491, -11.9, 0, 0, 0); | ||
</pre> | </pre> | ||
=== LUA Scripting === | === LUA Scripting === | ||
Line 253: | Line 121: | ||
* event_waypoint_arrive | * event_waypoint_arrive | ||
* event_waypoint_depart | * event_waypoint_depart | ||
==== Example Scripts ==== | ==== Example Scripts ==== | ||
Line 279: | Line 133: | ||
* https://github.com/EQMacEmu/quests/blob/main/timorous/Maidens_Voyage.lua | * https://github.com/EQMacEmu/quests/blob/main/timorous/Maidens_Voyage.lua | ||
* https://github.com/EQMacEmu/quests/blob/main/timorous/Muckskimmer.lua | * https://github.com/EQMacEmu/quests/blob/main/timorous/Muckskimmer.lua | ||