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
|
|
@ -32,7 +32,7 @@ namespace Server.Network
|
|||
writer.Write(attacker);
|
||||
writer.Write(defender);
|
||||
|
||||
ns.Send(ref buffer, 10);
|
||||
ns.Send(ref buffer, writer.Position);
|
||||
}
|
||||
|
||||
public static void SendSetWarMode(this NetState ns, bool warmode)
|
||||
|
|
@ -47,7 +47,7 @@ namespace Server.Network
|
|||
// Warmode, 0x00, 0x32, 0x00
|
||||
writer.Write(warmode ? 0x01003200 : 0x00003200);
|
||||
|
||||
ns.Send(ref buffer, 5);
|
||||
ns.Send(ref buffer, writer.Position);
|
||||
}
|
||||
|
||||
public static void SendChangeCombatant(this NetState ns, Serial combatant)
|
||||
|
|
@ -61,7 +61,7 @@ namespace Server.Network
|
|||
writer.Write((byte)0xAA); // Packet ID
|
||||
writer.Write(combatant);
|
||||
|
||||
ns.Send(ref buffer, 5);
|
||||
ns.Send(ref buffer, writer.Position);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue