SHARE
TWEET

Untitled

a guest Aug 13th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     void FixedTeleport(Creature * creature, float x, float y, float z, float o)
  2.     {
  3.         creature->NearTeleportTo(x, y, z, o);
  4.         WorldPacket data;
  5.         data.Initialize(MSG_MOVE_TELEPORT, 30);
  6.         data.append(creature->GetPackGUID());
  7.         data << uint32(creature->GetUnitMovementFlags());
  8.         data << uint16(0);  // Probably walk flags here
  9.         data << getMSTime(); // time
  10.         data << x; // destination coords
  11.         data << y;
  12.         data << z;
  13.         data << o;
  14.         data << uint32 (0);
  15.         // Other information here: jumping angle etc
  16.         creature->Relocate(x, y, z, o);
  17.         creature->SendMessageToSet(&data, false);
  18.     }
RAW Paste Data
Top