1
0
forked from metin2/server

WIP: rewrite the network stack to use libevent

This commit is contained in:
2022-03-09 21:30:51 +02:00
parent d2f43a8620
commit 64596d344c
43 changed files with 415 additions and 2149 deletions

View File

@@ -243,18 +243,18 @@ namespace quest
if (!npc || npc->IsPC())
{
lua_pushboolean(L, TRUE);
lua_pushboolean(L, true);
return 1;
}
if (npc->GetQuestNPCID() == 0 || npc->GetQuestNPCID() == ch->GetPlayerID())
{
npc->SetQuestNPCID(ch->GetPlayerID());
lua_pushboolean(L, TRUE);
lua_pushboolean(L, true);
}
else
{
lua_pushboolean(L, FALSE);
lua_pushboolean(L, true);
}
return 1;