[DiscordArchive] But i wonder why you're not using the `cometome` gm command tbh. What's different with yours?
[DiscordArchive] But i wonder why you're not using the `cometome` gm command tbh. What's different with yours?
Archived author: Revision • Posted: 2023-05-23T19:17:48.293000+00:00
Original source
so I would just say, copy the command
Archived author: Gromix • Posted: 2023-05-23T19:18:29.005000+00:00
Original source
and then how to move the creature? Example `creature->GetMotionMaster()->MovePoint(0, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ());`
Archived author: Revision • Posted: 2023-05-23T19:18:56.825000+00:00
Original source
Oh wait, I was looking at AddMove......
Archived author: Gromix • Posted: 2023-05-23T19:18:57.441000+00:00
Original source
ofc x, y, z would be entered from the console
Archived author: Revision • Posted: 2023-05-23T19:19:45.268000+00:00
Original source
But the command `.npc move` does use the DB guid
Archived author: Revision • Posted: 2023-05-23T19:19:56.962000+00:00
Original source
Obviously it instantly moves the creature
Archived author: Gromix • Posted: 2023-05-23T19:20:22.028000+00:00
Original source
i took example from .npc follow
Archived author: Revision • Posted: 2023-05-23T19:20:22.116000+00:00
Original source
Look at the script for `npc move` and replace `ObjectGuid::LowType lowguid = creature->GetSpawnId();` with the DB guid
Archived author: Revision • Posted: 2023-05-23T19:20:37.967000+00:00
Original source
follow makes the creature follow you
Archived author: Gromix • Posted: 2023-05-23T19:20:40.999000+00:00
Original source
and builds my custom method