From The Mana World
(untransclude command table from main packets list) |
m (Jaxad0127 moved page Packet:0x0212 to Net:0x0212 without leaving a redirect) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 4: | Line 4: | ||
|mode={{{mode}}} | |mode={{{mode}}} | ||
|length=16 | |length=16 | ||
|alignment=red | |||
|define=SMSG_NPC_COMMAND | |define=SMSG_NPC_COMMAND | ||
|sent=Not in TMWA yet | |sent=Not in TMWA yet | ||
Line 10: | Line 11: | ||
|fields= | |fields= | ||
{{packet field | 0 | 2 | packet id }} | {{packet field | 0 | 2 | packet id }} | ||
{{packet field | | {{packet field | 2 | 4 | npc id }} | ||
{{packet field | | {{packet field | 6 | 2 | command }} | ||
{{packet field | | {{packet field | 8 | 4 | id }} | ||
{{packet field | | {{packet field | 12 | 2 | x }} | ||
{{packet field | | {{packet field | 14 | 2 | y }} | ||
|description= | |description= | ||
Line 20: | Line 21: | ||
different command from npc to client | different command from npc to client | ||
}} | |||
<noinclude> | |||
{| class="wikitable" | {| class="wikitable" | ||
! command || id || x || y || description | ! command || id || x || y || description | ||
Line 44: | Line 48: | ||
| 9 || || || || Clear npc dialog from text | | 9 || || || || Clear npc dialog from text | ||
|} | |} | ||
</noinclude> | |||
Latest revision as of 21:17, 1 July 2013
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 |
2 | 4 | npc id |
6 | 2 | command |
8 | 4 | id |
12 | 2 | x |
14 | 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 |