Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit::NearTeleportTo #4935

Closed
Teiby1 opened this issue Jan 23, 2012 · 8 comments
Closed

Unit::NearTeleportTo #4935

Teiby1 opened this issue Jan 23, 2012 · 8 comments
Assignees

Comments

@Teiby1
Copy link

Teiby1 commented Jan 23, 2012

This function doesn't work correctly. The creature's position will be setted, but is not send to player. if i use DestroyForNearbyPlayers();, the creature will respawn at the new position (but interrupt casts).
it works 2 month ago

tested with newest core 3.3.5 with an vehicle without players and with players

@ghost
Copy link

ghost commented Mar 16, 2012

Confirm. After teleporting, the creature is visually situated at its cast position, but the corpse is situated at the spell destination.

when i entered a vehicle, the visual was updated to the right position, but not in all cases. sometimes the creature ran from its cast position to the spell destination .....

i think SendMovementFlagUpdate(); is broken or some packages

whatever :(

void Unit::SendMovementFlagUpdate()
{
    WorldPacket data;
    BuildHeartBeatMsg(&data);
    SendMessageToSet(&data, false);
}

@ghost ghost assigned DDuarte Apr 20, 2012
@tibbi
Copy link

tibbi commented Aug 10, 2012

mangos version for it, SendHeartBeat https://github.com/mangos/mangos/blob/master/src/game/Unit.cpp#L442 works fine, but it didnt want to work for me at simple rewrite to trinity :/

@LordUsagi
Copy link

This is still an issue, any ideas?

@s7an-it
Copy link
Contributor

s7an-it commented Oct 25, 2012

Yes, it is easy to fix in hacky way... But to make it blizzlike teleporting packet should be used with no movement flags.

@LordUsagi
Copy link

Would you mind sharing the hacky fix? It kind of screws with the boss fight Noth the Plaguebringer which I'm having some difficulty with, although I fear slightly the problem is larger than this.

@s7an-it
Copy link
Contributor

s7an-it commented Oct 26, 2012

A possible way was already published by Elron123, check his publications.

@ghost ghost assigned Star-lion Nov 24, 2012
@cezeta
Copy link

cezeta commented Nov 30, 2012

any progress?

@s7an-it
Copy link
Contributor

s7an-it commented Nov 30, 2012

Nope, none. I think noone is working on it atm.

@Shauren Shauren closed this as completed Dec 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants