Map Effect Packet

08/25/2011 20:52 teroareboss1#1
Code:
Packet Nr 1150. Server -> Client, Length : 32, PacketType: 1101
18 00 4D 04 90 1F 0F 00 2C 03 00 00 B9 00 CC 00      ; M� ,  ¹ Ì 
00 00 0B 00 00 00 00 00 54 51 53 65 72 76 65 72      ;       TQServer

0 Length 24
2 PacketID 1101
4 EffectUid
8 EffectID
12 X
14 Y
18 Type = 11

Someting Types

Code:
791 circles
759 pervadeEffect
746 well
794 FireWalk
812 EquipUpgrade
08/25/2011 23:27 Spirited#2
Or... just use a string packet and instead of putting in an identity in offset 4, put in the x and y....
08/26/2011 01:59 Korvacs#3
That packet is use primarily for looting btw..
08/26/2011 19:32 -Shunsui-#4
Yea as Fang said i though the String packet would suit for this, didn't know there was a nother.
08/26/2011 19:40 Spirited#5
Quote:
Originally Posted by -Shunsui- View Post
Yea as Fang said i though the String packet would suit for this, didn't know there was a nother.
I knew that there was this method, but I also know that TQ uses the string packet for things like the arrow on the roof (in the Recruitment quest) and for the yellow dots on the floor that give u stuff at 8pm. This method isn't "wrong" because I'm sure TQ uses it for something- but I personally wouldn't use it because it has limited parameters.
08/27/2011 02:59 _DreadNought_#6
They look prettay coolay.
09/12/2011 01:12 Crazy_XX#7
Nice
Thanks
09/16/2011 21:07 _DreadNought_#8
Tested and its pretty cool. They de-spawn when you go off screen, Easy enough to make it perm.

Packet Structured:
Code:
    public class MapEffectPacket : PacketBuilder
    {
        public const uint
            Circles = 791,
            PervadeEffect = 759,
            Well = 746,
            FireWalk = 794,
            EquipUpgrade = 821;

        byte[] Packet;

        public MapEffectPacket()
        {
            Packet = new byte[32];
            WriteUInt16(24, 0, Packet);
            WriteUInt16(1101, 2, Packet);
        }
        public uint UID
        {
            set { WriteUInt32(value, 4, Packet); }
        }
        public uint ID
        {
            set { WriteUInt32(value, 8, Packet); }
        }
        public ushort X
        {
            set { WriteUInt16(value, 12, Packet); }
        }
        public ushort Y
        {
            set { WriteUInt16(value, 14, Packet); }
        }
        public ushort Type
        {
            set { WriteUInt16(value, 18, Packet); }
        }
        public byte[] ToArray()
        {
            return Packet;
        }
    }
09/16/2011 21:56 BaussHacker#9
Quote:
Originally Posted by _DreadNought_ View Post
Tested and its pretty cool. They de-spawn when you go off screen, Easy enough to make it perm.

Packet Structured:
Code:
    public class MapEffectPacket : PacketBuilder
    {
        public const uint
            Circles = 791,
            PervadeEffect = 759,
            Well = 746,
            FireWalk = 794,
            EquipUpgrade = 821;

        byte[] Packet;

        public MapEffectPacket()
        {
            Packet = new byte[32];
            WriteUInt16(24, 0, Packet);
            WriteUInt16(1101, 2, Packet);
        }
        public uint UID
        {
            set { WriteUInt32(value, 4, Packet); }
        }
        public uint ID
        {
            set { WriteUInt32(value, 8, Packet); }
        }
        public ushort X
        {
            set { WriteUInt16(value, 12, Packet); }
        }
        public ushort Y
        {
            set { WriteUInt16(value, 14, Packet); }
        }
        public ushort Type
        {
            set { WriteUInt16(value, 18, Packet); }
        }
        public byte[] ToArray()
        {
            return Packet;
        }
    }
Instead public byte[] ToArray()
{
return Packet;
}

Just do:
Code:
public static implicit operator byte[](MapEffectPacket packet)
{
return packet.Packet;
}
09/16/2011 22:37 _DreadNought_#10
You know theres a reason I started our conversation with "You nigga"?
09/17/2011 00:59 BaussHacker#11
Quote:
Originally Posted by _DreadNought_ View Post
You know theres a reason I started our conversation with "You nigga"?
Please enlight me!
09/17/2011 01:00 _DreadNought_#12
Idunno tbh, was rather bored when I posted that.