• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

TrinityCore WotLK Waypoints question

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?
 

Syphex

Exalted Member
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.
 
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.
 

Rochet2

Moderator / Eluna Dev
if you cannot use MoveTo or was it MovePoint, then there is no way currently to create waypoints on the fly.
 
Top