diff options
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp index 9be5986c..9c56dec3 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -26,7 +26,7 @@ #include "client.h" #include "configuration.h" #include "effectmanager.h" -#include "event.h" +#include "eventmanager.h" #include "graphics.h" #include "guild.h" #include "localplayer.h" @@ -48,7 +48,6 @@ #include "net/charhandler.h" #include "net/gamehandler.h" #include "net/net.h" -#include "net/npchandler.h" #include "net/playerhandler.h" #include "resources/beinginfo.h" @@ -1199,7 +1198,9 @@ bool Being::canTalk() void Being::talkTo() { - Net::getNpcHandler()->talk(mId); + Mana::Event event("doTalk"); + event.setInt("npcId", mId); + Mana::EventManager::trigger("NPC", event); } void Being::event(const std::string &channel, const Mana::Event &event) |