Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] .gps ?

[DiscordArchive] .gps ?

[DiscordArchive] .gps ?

Pages (2): Previous 1 2
rektbyfaith
Administrator
0
10-22-2023, 05:01 PM
#11
Archived author: MadBits • Posted: 2023-10-22T17:01:46.168000+00:00
Original source

Alright guys, the truth is now, someone gotta point me in the right direction on how I can get this to be a module, I implemented the following tweak in DelayedTeleportTransport:


> `void MotionTransport:Big GrinelayedTeleportTransport()
> {
> if (!_delayedTeleport)
> return;
>
> _delayedTeleport = false;
>
> uint32 newMapId = _nextFrame->Node->mapid;
> float x = _nextFrame->Node->x,
> y = _nextFrame->Node->y,
> z = _nextFrame->Node->z,
> o = _nextFrame->InitialOrientation;
> bool destinationIsNorthrend = newMapId == 571;
>
> if (destinationIsNorthrend)
> {
> newMapId = 1;
> x = -7177.35;
> y = -3784.17;
> z = 8.6;
> o = 6.11;
> }`

Basically just the "if (destionationIsNorthrend) and the bool above it.
rektbyfaith
10-22-2023, 05:01 PM #11

Archived author: MadBits • Posted: 2023-10-22T17:01:46.168000+00:00
Original source

Alright guys, the truth is now, someone gotta point me in the right direction on how I can get this to be a module, I implemented the following tweak in DelayedTeleportTransport:


> `void MotionTransport:Big GrinelayedTeleportTransport()
> {
> if (!_delayedTeleport)
> return;
>
> _delayedTeleport = false;
>
> uint32 newMapId = _nextFrame->Node->mapid;
> float x = _nextFrame->Node->x,
> y = _nextFrame->Node->y,
> z = _nextFrame->Node->z,
> o = _nextFrame->InitialOrientation;
> bool destinationIsNorthrend = newMapId == 571;
>
> if (destinationIsNorthrend)
> {
> newMapId = 1;
> x = -7177.35;
> y = -3784.17;
> z = 8.6;
> o = 6.11;
> }`

Basically just the "if (destionationIsNorthrend) and the bool above it.

rektbyfaith
Administrator
0
10-22-2023, 05:47 PM
#12
Archived author: Revision • Posted: 2023-10-22T17:47:51.227000+00:00
Original source

Add a hook to that function and use it in , that's basically it. You could potentially check for when a player changes map/zone/area and be very specific with the x/y/z they appear at so you don't teleport someone who just runs there or uses a hearthstone, I guess.
rektbyfaith
10-22-2023, 05:47 PM #12

Archived author: Revision • Posted: 2023-10-22T17:47:51.227000+00:00
Original source

Add a hook to that function and use it in , that's basically it. You could potentially check for when a player changes map/zone/area and be very specific with the x/y/z they appear at so you don't teleport someone who just runs there or uses a hearthstone, I guess.

Pages (2): Previous 1 2
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)