00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef NET_EA_NPCHANDLER_H
00023 #define NET_EA_NPCHANDLER_H
00024
00025 #include "net/messagehandler.h"
00026 #include "net/net.h"
00027 #include "net/npchandler.h"
00028
00029 namespace EAthena {
00030
00031 class NpcHandler : public MessageHandler, public Net::NpcHandler
00032 {
00033 public:
00034 NpcHandler();
00035
00036 void handleMessage(MessageIn &msg);
00037
00038 void talk(int npcId);
00039
00040 void nextDialog(int npcId);
00041
00042 void closeDialog(int npcId);
00043
00044 void listInput(int npcId, int value);
00045
00046 void integerInput(int npcId, int value);
00047
00048 void stringInput(int npcId, const std::string &value);
00049
00050 void sendLetter(int npcId, const std::string &recipient,
00051 const std::string &text);
00052
00053 void startShopping(int beingId);
00054
00055 void buy(int beingId);
00056
00057 void sell(int beingId);
00058
00059 void buyItem(int beingId, int itemId, int amount);
00060
00061 void sellItem(int beingId, int itemId, int amount);
00062
00063 void endShopping(int beingId);
00064 };
00065
00066 }
00067
00068 #endif // NET_EA_NPCHANDLER_H