[DiscordArchive] im trying to move an NPC spawn point but i am unable to force the change to be reflected in world...
[DiscordArchive] im trying to move an NPC spawn point but i am unable to force the change to be reflected in world...
Archived author: Admiral Morketh • Posted: 2022-07-24T21:50:12.876000+00:00
Original source
im trying to move an NPC spawn point but i am unable to force the change to be reflected in world....
Ive used ```.npc move``` and the server happily moves the NPC i do believe the entries DB Entry also changes but the creature in gmae is not being reloaded?
Also issued the ```.reload all```
command just to make sure it refreshed all the database stuff do i need to restart the core to make the changes take effect?
Archived author: ModoX • Posted: 2022-07-25T01:34:14.811000+00:00
Original source
it should respawn the creature at the desired position within ~1s ish
Archived author: ModoX • Posted: 2022-07-25T01:35:26.462000+00:00
Original source
<https://github.com/TrinityCore/TrinityCore/blob/master/src/server/scripts/Commands/cs_npc.cpp#L609-L656>
Archived author: Admiral Morketh • Posted: 2022-07-25T01:37:48.577000+00:00
Original source
ill do further testing on that i dug up on a github issue that sending ```.npc move``` twice forced the move.... I tried that and next time i killed the creature is did respawn in the _new_ location......
aaaahhhhh code : ) ill go look through the relevant bits there Thank you ModoX for your help
Archived author: ModoX • Posted: 2022-07-25T01:38:26.814000+00:00
Original source
killing and respawning is essentially "reseting" the npc yeah 