[DiscordArchive] .gps ?
[DiscordArchive] .gps ?
elayedTeleportTransport()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:
elayedTeleportTransport()
> {
> 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.
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.