ManaPlus
Functions
EAthena::RefineRecv Namespace Reference

Functions

void processRefineOpen (Net::MessageIn &msg)
 
void processRefineAddItem (Net::MessageIn &msg)
 
void processRefineAnnounce (Net::MessageIn &msg)
 

Function Documentation

◆ processRefineAddItem()

void EAthena::RefineRecv::processRefineAddItem ( Net::MessageIn msg)

Definition at line 40 of file refinerecv.cpp.

41 {
43  int blockSize = 7;
44  if (itemIdLen == 4)
45  blockSize += 2;
46 
47  const int count = (msg.readInt16("len") - 7) / blockSize;
48  msg.readInt16("item index");
49  msg.readUInt8("blacksmith blessing");
50  for (int f = 0; f < count; f ++)
51  {
52  msg.readItemId("item id");
53  msg.readUInt8("chance");
54  msg.readInt32("money");
55  }
56 }
#define UNIMPLEMENTEDPACKET
Definition: logger.h:56
bool msg(InputEvent &event)
Definition: chat.cpp:39
int itemIdLen
Definition: client.cpp:130

References itemIdLen, Actions::msg(), and UNIMPLEMENTEDPACKET.

◆ processRefineAnnounce()

void EAthena::RefineRecv::processRefineAnnounce ( Net::MessageIn msg)

Definition at line 58 of file refinerecv.cpp.

59 {
61  msg.readString(24, "char name");
62  msg.readItemId("item id");
63  msg.readInt8("refine level");
64  msg.readInt8("status");
65 }

References Actions::msg(), and UNIMPLEMENTEDPACKET.

◆ processRefineOpen()

void EAthena::RefineRecv::processRefineOpen ( Net::MessageIn msg)

Definition at line 35 of file refinerecv.cpp.

36 {
38 }

References UNIMPLEMENTEDPACKET.