diff options
Diffstat (limited to 'src/game-server/npc.cpp')
-rw-r--r-- | src/game-server/npc.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/game-server/npc.cpp b/src/game-server/npc.cpp index 60ba456d..99f34e7c 100644 --- a/src/game-server/npc.cpp +++ b/src/game-server/npc.cpp @@ -63,7 +63,22 @@ void NPC::select(Character *ch, int v) mScript->execute(); } -/*void NPC::integerRecepted() +void NPC::integerRecepted(Character *ch, int v) { + if (!mScript || !mEnabled) return; + mScript->prepare("npc_integer"); + mScript->push(this); + mScript->push(ch); + mScript->push(v); + mScript->execute(); +} -}*/ +void NPC::stringRecepted(Character *ch, std::string v) +{ + if (!mScript || !mEnabled) return; + mScript->prepare("npc_string"); + mScript->push(this); + mScript->push(ch); + mScript->push(v); + mScript->execute(); +} |