From The Mana World
Line 11: Line 11:
{{packet field |  0 |  2 | packet id }}
{{packet field |  0 |  2 | packet id }}
{{packet field |  0 |  4 | npc id }}
{{packet field |  0 |  4 | npc id }}
{{packet field |  0 |  2 | cmd }}
{{packet field |  0 |  2 | command }}
{{packet field |  0 |  4 | id }}
{{packet field |  0 |  4 | id }}
{{packet field |  0 |  2 | x }}
{{packet field |  0 |  2 | x }}
Line 21: Line 21:


}}
}}
{| class="wikitable"
! command || id || x || y || description
|-
| 0 ||  ||  ||  || request language from client
|-
| 1 ||  ||  ||  || move camera to npcid position
|-
| 2 || + || + || + || If id = 0 it move camera to pixel position x,y
If id != 0, it move camera to npcid with pixel offset x,y
|-
| 3 ||  ||  ||  || Return camera to normal position
|-
| 4 ||  || + || + || Move camera relative to x,y pixels
|-
| 5 ||  ||  ||  || Close npc dialog
|-
| 6 || + ||  ||  || Show npc avatar with ID
|-
| 7 || + ||  ||  || Set avatar direction to ID
|-
| 8 || + ||  ||  || Set avatar action to ID
|-
| 9 ||  ||  ||  || Clear npc dialog from text
|}

Revision as of 21:20, 14 February 2013

< Back

Npc commands

Packet ID:0x0212
Packet Length:16
Client Defined:SMSG_NPC_COMMAND
Sent Location(s):Not in TMWA yet
Parsed Location(s):src/net/tmwa/npchandler.cpp


Fields

Offset Length Contents
0 2 packet id
0 4 npc id
0 2 command
0 4 id
0 2 x
0 2 y


Description

different command from npc to client

command id x y description
0 request language from client
1 move camera to npcid position
2 + + + If id = 0 it move camera to pixel position x,y

If id != 0, it move camera to npcid with pixel offset x,y

3 Return camera to normal position
4 + + Move camera relative to x,y pixels
5 Close npc dialog
6 + Show npc avatar with ID
7 + Set avatar direction to ID
8 + Set avatar action to ID
9 Clear npc dialog from text