BOOL NpcRusipher(LPOBJ lpNpc, LPOBJ lpObj) { if ( gDevilSquareEvent == FALSE ) { return TRUE; } int aIndex = lpObj->m_Index; #ifdef BEREZNUK if ( lpObj->m_PK_Level >= 4 && !g_AllowPKEventDS ) { GCServerMsgStringSend(lMsg.Get(MSGGET(13,72)),lpObj->m_Index,1); return TRUE; } #endif if ( (lpObj->m_IfState.use ) > 0 ) { return TRUE; } if ( gUserFindDevilSquareInvitation(aIndex) == FALSE ) { GCServerCmd(lpObj->m_Index, 1, 2 ,0); } else if (g_DevilSquare.GetState() == 1 ) { PMSG_TALKRESULT pMsg; pMsg.h.c = 0xC3; pMsg.h.headcode = 0x30; pMsg.h.size = sizeof(pMsg); pMsg.result = 0x04; DataSend(aIndex, (LPBYTE)&pMsg, pMsg.h.size); lpObj->m_IfState.use = 1; lpObj->m_IfState.type = 12; } else { GCServerCmd(lpObj->m_Index, 1, 3, 0); } return TRUE; }
BOOL NpcRusipher(LPOBJ lpNpc, LPOBJ lpObj) { if ( gDevilSquareEvent == FALSE ) { return TRUE; } int aIndex = lpObj->m_Index; if ( (lpObj->m_IfState.use ) > 0 ) { return TRUE; } if ( gUserFindDevilSquareInvitation(aIndex) == FALSE ) { GCServerCmd(lpObj->m_Index, 1, 2 ,0); } else if ( g_DevilSquare.GetState() == 1 ) { PMSG_TALKRESULT pMsg; pMsg.h.c = 0xC3; pMsg.h.headcode = 0x30; pMsg.h.size = sizeof(pMsg); pMsg.result = 0x04; DataSend(aIndex, (LPBYTE)&pMsg, pMsg.h.size); lpObj->m_IfState.use = 1; lpObj->m_IfState.type = 12; } else { GCServerCmd(lpObj->m_Index, 1, 3, 0); } return TRUE; }