Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct PMSG_REQ_VIEW_EC_MN
- {
- PBMSG_HEAD h; // C1:01
- int iINDEX; // 4
- char szUID[11]; // 8
- };
- BOOL NpcEventChipNPC(LPOBJ lpNpc, LPOBJ lpObj)
- {
- if ( (lpObj->m_IfState.use) > 0 )
- {
- return TRUE;
- }
- if ( lpNpc->MapNumber == 0 )
- {
- PMSG_REQ_VIEW_EC_MN pMsgTha;
- PHeadSetB((LPBYTE)&pMsgTha, 0x01, sizeof(pMsgTha));
- pMsgTha.iINDEX = lpObj->m_Index;
- strcpy(pMsgTha.szUID, lpObj->AccountID);
- pEventObj = lpNpc;
- DataSendEventChip((char*)&pMsgTha, sizeof(pMsgTha));
- lpObj->m_IfState.type = 9;
- lpObj->m_IfState.state = 0;
- lpObj->m_IfState.use = 1;
- return TRUE;
- }
- if ( lpNpc->MapNumber == 2 )
- {
- PMSG_EVENTCHIPINFO Result;
- PHeadSetB((LPBYTE)&Result, 0x94, sizeof(Result));
- Result.Type = 2;
- DataSend(lpObj->m_Index, (LPBYTE)&Result, Result.h.size);
- lpObj->m_IfState.type = 9;
- lpObj->m_IfState.state = 0;
- lpObj->m_IfState.use = 1;
- return TRUE;
- }
- return FALSE;
- }
Advertisement
Add Comment
Please, Sign In to add comment