|
You last visited: Today at 11:58
Advertisement
Map Effect Packet
Discussion on Map Effect Packet within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
08/25/2011, 23:27
|
#2
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
|
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
|
#3
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
That packet is use primarily for looting btw..
|
|
|
08/26/2011, 19:32
|
#4
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
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
|
#5
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
|
Quote:
Originally Posted by -Shunsui-
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
|
#6
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
|
They look prettay coolay.
|
|
|
09/12/2011, 01:12
|
#7
|
elite*gold: 0
Join Date: Jun 2010
Posts: 97
Received Thanks: 4
|
Nice
Thanks
|
|
|
09/16/2011, 21:07
|
#8
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
|
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
|
#9
|
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
|
Quote:
Originally Posted by _DreadNought_
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
|
#10
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
|
You know theres a reason I started our conversation with "You *****"?
|
|
|
09/17/2011, 00:59
|
#11
|
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
|
Quote:
Originally Posted by _DreadNought_
You know theres a reason I started our conversation with "You *****"?
|
Please enlight me!
|
|
|
09/17/2011, 01:00
|
#12
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
|
Idunno tbh, was rather bored when I posted that.
|
|
|
Similar Threads
|
Dodge effect , Warp effect
01/04/2010 - S4 League - 7 Replies
this is a threat to glados , but other can answer.
how can u have that effect?
this is the video
YouTube - S4 League GLaDO is Hacking
|
Packet data for Race effect and Archon Buff - Elven Update ?
10/16/2009 - RF Online - 0 Replies
Since elven update ... I think packet for skills and forces have changed ..
anyone knows race effect and archon buff packet for RF elven update ... ??
|
All times are GMT +1. The time now is 11:58.
|
|