Effects packets (#308)
- [X] Changes effect packets - [X] Updates playing sounds - [X] Updates Effects class to have more options so there are less direct calls to building the packets - [X] Changes bonding status packet
This commit is contained in:
parent
1c9439e4fd
commit
361ec4dba4
53 changed files with 958 additions and 833 deletions
|
|
@ -54,9 +54,11 @@ namespace Server.Spells.Mysticism
|
|||
|
||||
if (map != null)
|
||||
{
|
||||
PlayEffect(p, Caster.Map);
|
||||
var loc = new Point3D(p);
|
||||
|
||||
foreach (var m in map.GetMobilesInRange(new Point3D(p), 2))
|
||||
PlayEffect(loc, Caster.Map);
|
||||
|
||||
foreach (var m in map.GetMobilesInRange(loc, 2))
|
||||
{
|
||||
if (m == Caster)
|
||||
{
|
||||
|
|
@ -103,7 +105,7 @@ namespace Server.Spells.Mysticism
|
|||
Caster.Target = new SpellTargetPoint3D(this);
|
||||
}
|
||||
|
||||
private static void PlayEffect(IPoint3D p, Map map)
|
||||
private static void PlayEffect(Point3D p, Map map)
|
||||
{
|
||||
Effects.PlaySound(p, map, 0x64F);
|
||||
|
||||
|
|
@ -114,7 +116,7 @@ namespace Server.Spells.Mysticism
|
|||
PlaySingleEffect(p, map, -1, 1, 1, 3);
|
||||
}
|
||||
|
||||
private static void PlaySingleEffect(IPoint3D p, Map map, int a, int b, int c, int d)
|
||||
private static void PlaySingleEffect(Point3D p, Map map, int a, int b, int c, int d)
|
||||
{
|
||||
int x = p.X, y = p.Y, z = p.Z + 18;
|
||||
|
||||
|
|
@ -129,25 +131,20 @@ namespace Server.Spells.Mysticism
|
|||
SendEffectPacket(p, map, new Point3D(x + a, y + c, z), new Point3D(x + a, y + d, z));
|
||||
}
|
||||
|
||||
private static void SendEffectPacket(IPoint3D p, Map map, Point3D orig, Point3D dest)
|
||||
private static void SendEffectPacket(Point3D p, Map map, Point3D orig, Point3D dest)
|
||||
{
|
||||
Effects.SendPacket(
|
||||
Effects.SendMovingEffect(
|
||||
p,
|
||||
map,
|
||||
new HuedEffect(
|
||||
EffectType.Moving,
|
||||
Serial.Zero,
|
||||
Serial.Zero,
|
||||
0x375A,
|
||||
orig,
|
||||
dest,
|
||||
0,
|
||||
0,
|
||||
false,
|
||||
false,
|
||||
0x49A,
|
||||
0x4
|
||||
)
|
||||
0x375A,
|
||||
orig,
|
||||
dest,
|
||||
0,
|
||||
0,
|
||||
false,
|
||||
false,
|
||||
0x49A,
|
||||
0x4
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue