View Full Version : TrinityCore WotLK Waypoints question

07-25-2016, 09:17 PM
So i'm looking into custom npc and waypoints.
So i know how to load a waypoint for a npc and set it to be used.

But for now i'm using the npc id as waypoint id but how do you do this if you want like different waypoints that a certain npc could use.

More then one waypoint for a certain npc in the database.
Kinda like all the diffrent guards have each a different waypoint but yet the npcid is the same for those guards? right? Or does every guard have a npc database entry?

07-25-2016, 09:41 PM
From what i have realized is that the npc has a speific id. so lets say you got 2 creatures "1" & "2"

You create waypoint 3 and 4 on creature 1. then do the same on 2 then they will be 2 totally different way points.

As they contain different ids but the points are the same.

it works like this in the database.
You have the tables Waypoints > Waypoint_Data

In Waypoints you have the entry of the creature and the pointid.
Pointid is linked to waypoint_data which define the the points which tells the npc where to go.

Im really bad at explaining and im sorry for that but i hope you understand it, otherwise, you can go to trinitycore's website and read about this.
Link - https://trinitycore.atlassian.net/wiki/display/tc/waypoints

Anyway, i'd suggest you try this out by yourself, as thats the best way you can learn it and understand it.

08-10-2016, 03:09 AM
Is there a way to add waypoints to the database without reloading the table?

I need some custom wp generated at the spot and then load those. But for now when i add the db entries i first have to do .reload waypoint_data for them to work.

08-10-2016, 02:58 PM
if you cannot use MoveTo or was it MovePoint, then there is no way currently to create waypoints on the fly.

08-11-2016, 04:35 PM
Is there a way for MoveTo to launch an event? or hook when they arrive at the spot?

08-11-2016, 05:24 PM
Is there a way for MoveTo to launch an event? or hook when they arrive at the spot?

ID from moveto is passed to the hook.
Also the type in the hook is 6 or 8 or something for the moveto movement.