[DiscordArchive] Question on Waypoints
[DiscordArchive] Question on Waypoints
Archived author: Needle • Posted: 2025-04-21T02:27:52.790000+00:00
Original source
Archived author: Needle • Posted: 2025-04-21T02:27:53.290000+00:00
Original source
Thread automatically created by Cyclone Jack in <#415944535718494208>
Archived author: Needle • Posted: 2025-04-21T02:28:06.527000+00:00
Original source
Question on Waypoints
Archived author: Hawjiki • Posted: 2025-04-22T01:44:04.312000+00:00
Original source
Try looking into smart_scripts as well. Should be able to do what you want by linking them together that way. Would prolly take you a little bit of effort though.
Archived author: Hawjiki • Posted: 2025-04-22T01:52:08.788000+00:00
Original source
You can do it various ways in SAI. For example.
Creature B arrives back next to A and says "Must've been the wind."
Creature A and B will then use that text script to restart their waypoints and path together.
Also, alternatively you could make Creature A follow B after the text event is said, saving you from having to use two sets of waypoints.
Use this wiki to assist you in figuring out how to do the script setup.
https://trinitycore.atlassian.net/wiki/s...rt_scripts
Archived author: Hawjiki • Posted: 2025-04-22T02:00:21.380000+00:00
Original source
Also, if you want synced movement of npcs, look into creature_formations table. This table will allow you to set up a group of npcs to follow a main npc around, also saving you from doing multiple waypoints.
https://trinitycore.info/en/database/mas...formations
World_of_Warcraft_2025-04-21_20-59-16.mp4
Archived author: Cyclone Jack • Posted: 2025-04-22T02:48:10.287000+00:00
Original source
Excellent, I'll delve further into these in the morning. I hadn't thought of using something like a Say/Talk. Looking through the Events, that's 52 - Text_Over, correct? Then combine that with the Action: WP Start / Stop?
Then I'm guessing on the Waypoint side, I set an action on the appropriate waypoint, in which I'll need to set up the Talk in waypoint_scripts. Do you know if this will work with a whisper? I would imagine that would keep it hidden from the players?
Archived author: Hawjiki • Posted: 2025-04-22T08:27:49.659000+00:00
Original source
Aye. That would be the jist of it. Also options for when a NPC reaches a certain waypoint as well. A few waypoint options you can experiment with. Sadly it will probably get tedious but satisfying when you get it working!
Whispers should be controlled in text tables. Think it's mostly visual. Might require special targeting of the player or action invoker to get it to be a true whisper though.
Archived author: Cyclone Jack • Posted: 2025-04-22T14:41:03.293000+00:00
Original source
Hmm. None of the Waypoint Events / Actions seem to be doing anything. I've even tried something simple like:
Event: 40 - Waypoint Reached
Actions: 54 - WP_Pause
Target: 1 - Self
PointID: 3
PathID: 31104750 (for creature guid 3110475)
WP_Pause: 20000
I've even tried setting the Target to Creature Guid and set it to itself.
The Action in Waypoints, linking to waypoint_scripts which in turn link to broadcast_text, does seem to be working. But that won't do much if I can't get the WP stop/start/pause/resume to work in the smart scripts.
I'll toy with it a bit some more later. I'm sure there's some small thing I'm missing, as has been the case for many of my hurdles.
Archived author: Cyclone Jack • Posted: 2025-04-24T16:47:36.041000+00:00
Original source
After a lot of testing and tweaking, I think I found the issue. Waypoint_Start and Waypoint_Reached don't seem to do anything. But at the very bottom of the list is Waypoint_Data_Reached, and that one seems to trigger events.