This is a packet family that is used to send/receive packets about Spells.
== Server-to-Client ==
=== PACKET_REQUEST (1) ===
Description: Shows the spell name over the players head
<pre>
Caster ID: 2
Spell ID: 2
</pre>
=== PACKET_CAST_SELF (30) ===
Description: Shows the player healing himself
<pre>
Caster ID: 2
Spell ID: 2
Heal Amount: 4
Caster Health Percent: 1
</pre>
This below is only added if it is being sent to the victim
<pre>
HP: 2
TP: 2
</pre>
=== PACKET_REPLY (3) ===
Description: Shows the player casting a spell and updates the players HP & TP
<pre>
Spell ID: 2
HP: 2
TP: 2
</pre>
=== PACKET_CAST_OTHER (3) ===
Description: Shows another player casting a spell on another player
<pre>
Victim ID: 2
Caster ID: 2
Caster Direction: 1
Spell ID: 2
Health Amount: 4
Health Percent: 1
Victim HP: 2
</pre>
=== PACKET_EXP (33) ===
Description: Shows a player casting a spell and a list of players being healed
<pre>
Spell ID: 2
Caster ID: 2
Caster TP: 2
Heal Amount: 2
Caster ID: 2
Caster Health Percent: 1
Caster HP: 2
FOREACH PARTY MEMBER
{
255: 1
255: 1
255: 1
255: 1
255: 1
Member ID: 2
Member Health Percent: 1
Member HP: 2
}
</pre>
== Client-to-Server ==
=== PACKET_REQUEST (1) ===
Description: Player requesting to cast a spell
<pre>
Spell ID: 2
</pre>
=== PACKET_CAST_SELF (30) ===
Description: Player casting a self spell
<pre>
Direction: 1
Spell ID: 2
</pre>
=== PACKET_CAST_OTHER (31) ===
Description: Player casting a spell on another person/npc
<pre>
Cast Type: 1
Timestamp: 3
Spell ID: 2
Victim ID: 2
</pre>
Cast Type options:
* 1 = Casting on a player
* 2 = Casting on an NPC
=== PACKET_EXP (33) ===
Description: Player casting a group spell
<pre>
Spell ID: 2
</pre> |