Jump to content
Moopler
Sign in to follow this  
Razz

Release Hytero Calculator

Recommended Posts

Hytero Calculator


A while ago I wrote a simple tool that would automatically calculate the CRC value for the Hyper Teleport Rock request (CWvsContext::SendMapTransferItemUseRequest) and came across it again today.

Seeing as I don't have much use for this tool anymore, I decided to release it. Please do note that this is not something spectacular. It's rather an fast solution for testing various maps.

Instruction

  1. Fill in your character id, the teleport seed, source map en destination map as decimal numbers
  2. Copy the CRC into the packet (Hex)
  3. Copy the destination map id into the packet (Hex)
  4. ???
  5. Profit

Packet structure

Last time I messed around with this request the following snippet worked:

/// <summary>
/// Sends a request to use a teleport item to get teleported to the given destination
/// </summary>
/// <param name="item">The item slot containing the teleport item</param>
/// <param name="destinationId">The map id to teleport to</param>
public static void WvsContext_SendMapTransferItemUseRequest<T>(this ChannelStageBase<T> s, ItemSlotBaseModel item, uint destinationId) where T : ChannelContextModel
{
    if (item == null)
        return;

    PacketWriter writer = new PacketWriter(ChannelHeaders.S_WvsContext_MapTransfer);
    writer.WriteInt32(Environment.TickCount);
    writer.WriteUInt16(item.Slot);
    writer.WriteUInt32(item.Id);
    writer.WriteBool(true);
    writer.WriteBool(false);
    writer.WriteUInt32(destinationId);
    writer.WriteUInt32(crc);

    if (s.NetClient != null && s.NetClient.Connected)
        s.NetClient.SendPacket(writer, false);
}

Have fun!


 

  • Like 3
  • Thanks 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×