From 8bc425ff48b7a874ca0fb9d2285044c75f3010ab Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sat, 13 Feb 2010 15:04:58 -0700 Subject: Make NPC dialogs instance instead of global This change allows players to talk to multiple NPCs at a time (if the server agrees). Manaserv's netcode allows multiple commerce instances too. eAthena's is limited to one commerce instance, due to protocol limitations. --- src/net/ea/buysellhandler.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net/ea/buysellhandler.h') diff --git a/src/net/ea/buysellhandler.h b/src/net/ea/buysellhandler.h index 61736024..1d17905d 100644 --- a/src/net/ea/buysellhandler.h +++ b/src/net/ea/buysellhandler.h @@ -24,6 +24,8 @@ #include "net/ea/messagehandler.h" +class BuyDialog; + namespace EAthena { class BuySellHandler : public MessageHandler @@ -32,6 +34,10 @@ class BuySellHandler : public MessageHandler BuySellHandler(); virtual void handleMessage(Net::MessageIn &msg); + + private: + int mNpcId; + BuyDialog *mBuyDialog; }; } // namespace EAthena -- cgit v1.2.3-60-g2f50