Spy Mode Error

Junior Spellweaver
Joined
Oct 9, 2010
Messages
185
Reaction score
14
hichay - Spy Mode Error - RaGEZONE Forums

Any one know how to fix this ?

Code:
inline void ZPostActivateSpyMap(int nMapID, bool bExclude)
{
ZPOSTCMD2(MC_SPY_STAGE_ACTIVATE_MAP, MCmdParamInt(nMapID), MCmdParamBool(bExclude));
}
inline void ZPostRequestSpyBanMapList()
{
ZPOSTCMD0(MC_SPY_STAGE_REQUEST_BAN_MAP_LIST);
}
inline void ZPostSpyStageStart(void* pMapListBlob)
{
ZPOSTCMD1(MC_SPY_STAGE_REQUEST_START, MCmdParamBlob(pMapListBlob, MGetBlobArraySize(pMapListBlob)));
}
#endif

i copy and paste their code to abby source.

Here is end of zpost.h abby source file

#ifdef _QUEST_ITEM
inline void ZPostRequestGetCharQuestItemInfo( const MUID& uid )
{
ZPOSTCMD1( MC_MATCH_REQUEST_CHAR_QUEST_ITEM_LIST, MCmdParamUID(uid) );
}

inline void ZPostRequestBuyQuestItem( const MUID& uid, const unsigned long int nItemID, const int nCount = 1 )
{
ZPOSTCMD3( MC_MATCH_REQUEST_BUY_QUEST_ITEM, MCmdParamUID(uid), MCommandParameterInt(nItemID), MCommandParameterInt(nCount) );
}

inline void ZPostRequestSellQuestItem( const MUID& uid, const unsigned long int nItemID, const int nCount = 1 )
{
ZPOSTCMD3( MC_MATCH_REQUEST_SELL_QUEST_ITEM, MCmdParamUID(uid), MCommandParameterInt(nItemID), MCommandParameterInt(nCount) );
}

inline void ZPostRequestDropSacrificeItem( const MUID& uid, const int nSlotIndex, const unsigned long int nItemID )
{
ZPOSTCMD3( MC_MATCH_REQUEST_DROP_SACRIFICE_ITEM, MCmdParamUID(uid), MCommandParameterInt(nSlotIndex), MCommandParameterInt(nItemID) );
}

inline void ZPostRequestCallbackSacrificeItem( const MUID& uid, const int nSlotIndex, const unsigned long int nItemID )
{
ZPOSTCMD3( MC_MATCH_REQUEST_CALLBACK_SACRIFICE_ITEM, MCmdParamUID(uid), MCommandParameterInt(nSlotIndex), MCommandParameterInt(nItemID) );
}

inline void ZPostRequestQL( const MUID& uid )
{
ZPOSTCMD1( MC_QUEST_REQUEST_QL, MCmdParamUID(uid) );
}




inline void ZPostRequestSacrificeSlotInfo( const MUID& uid )
{
ZPOSTCMD1( MC_MATCH_REQUEST_SLOT_INFO, MCmdParamUID(uid) );
}

inline void ZPostQuestStageMapset(const MUID& uidStage, int nMapsetID)
{
ZPOSTCMD2(MC_QUEST_STAGE_MAPSET, MCommandParameterUID(uidStage), MCommandParameterChar((char)nMapsetID));
}

inline void ZPostRequestMonsterBibleInfo( const MUID& uid )
{
ZPOSTCMD1( MC_MATCH_REQUEST_MONSTER_BIBLE_INFO, MCmdParamUID(uid) );
}

inline void ZPostResponseXTrapSeedKey(unsigned char *szComBuf) // Update sgk 0706
{
void *pBlob = MMakeBlobArray(sizeof(unsigned char), 128);
unsigned char *pCmdBlock = (unsigned char*)MGetBlobArrayElement(pBlob, 0);
CopyMemory(pCmdBlock, szComBuf, 128);

ZPOSTCMD1(MC_RESPONSE_XTRAP_SEEDKEY, MCommandParameterBlob(pBlob, MGetBlobArraySize(pBlob)));

MEraseBlobArray(pBlob);
}

inline void ZPsotResponseGameguardAuht( const DWORD dwIndex, const DWORD dwValue1, const DWORD dwValue2, const DWORD dwValue3 )
{
ZPOSTCMD4( MC_RESPONSE_GAMEGUARD_AUTH, MCmdParamUInt(dwIndex), MCmdParamUInt(dwValue1), MCmdParamUInt(dwValue2), MCmdParamUInt(dwValue3) );
}


inline void ZPostResponseFirstGameguardAuth( const DWORD dwIndex, const DWORD dwValue1, const DWORD dwValue2, const DWORD dwValue3 )
{
ZPOSTCMD4( MC_RESPONSE_FIRST_GAMEGUARD_AUTH, MCmdParamUInt(dwIndex), MCmdParamUInt(dwValue1), MCmdParamUInt(dwValue2), MCmdParamUInt(dwValue3) );
}

inline void ZPostRequestGamble( const MUID& uid)
{
ZPOSTCMD1( MC_MATCH_REQUEST_GAMBLE, MCmdParamUID(uid) );
}

inline void ZPostResponseResourceCRC32( DWORD dwCRC, DWORD dwXOR )
{
if( 0 == dwCRC )
{
_ASSERT( 0 != dwCRC );
return;
}

ZPOSTCMD2( MC_RESPONSE_RESOURCE_CRC32, MCmdParamUInt(dwCRC), MCmdParamUInt(dwXOR) );
}

inline void ZPostRequestUseSpendableNormalItem( const MUID& uid )
{
ZPOSTCMD1( MC_MATCH_REQUEST_USE_SPENDABLE_NORMAL_ITEM, MCmdParamUID(uid) );
}

inline void ZPostRequestUseSpendableBuffItem( const MUID& uid )
{
ZPOSTCMD1( MC_MATCH_REQUEST_USE_SPENDABLE_BUFF_ITEM, MCmdParamUID(uid) );
}

inline void ZPostRequestCaptureFlag(const int nItemUID)
{
ZPOSTCMD1(MC_MATCH_REQUEST_FLAG_CAP, MCommandParameterInt(nItemUID));
}


inline void ZPostRequestSkillFlag(const int nItemUID)
{
ZPOSTCMD1(MC_MATCH_REQUEST_SKILFLAG, MCommandParameterInt(nItemUID));
}
#define ZPostCharSkill(nID, uidTarget, vTargetPos) { \
ZPOSTCMD3(CLOAK_CMD_ID(MC_PEER_CH_SKILL, 56304), MCommandParameterInt(nID), MCommandParameterUID(uidTarget), MCommandParameterPos(vTargetPos.x, vTargetPos.y, vTargetPos.z)); \
}
#endif

// Zombie ///////////////////////////////////////////////////////////////////////////////////
inline void ZPosInfectionRequestZombieRaceAtJoinGame(const MUID& uidChar, int nRaceId)
{
ZPOSTCMD2( MC_MATCH_REQUEST_CHANGE_TO_ZOMBIE, MCmdParamUID(uidChar), MCmdParamInt(nRaceId));
}
inline void ZPosInfectionRequestSkillList()
{
ZPOSTCMD0(MC_MATCH_REQUEST_UPDATE_RACE_SKILL);
}
// WarriorClass ///////////////////////////////////////////////////////////////////////////////////

inline void ZPostRequestWarriorClassList()
{
ZPOSTCMD0(MC_MATCH_REQUEST_GETWARRRIORCLASS);
}
#endif
 
Last edited:
Are you fucking retarded


Edit: Show us all the code you're trying to steal and we'll be able to help you more. The problem is you're ending an if statement but you're probably never fucking starting one.
 
Last edited:
Upvote 0
Currently on mobile so this could be a tad incorrect, but as far as I could tell the problem was that you only had 1 #if but were closing w/ #endif twice. I tossed the only #endif you should need where I think it goes(at the end of quest-related functions). But I'm unfamiliar with the Abby source.


Code:
#ifdef _QUEST_ITEM
inline void ZPostRequestGetCharQuestItemInfo(const MUID & uid) {
    ZPOSTCMD1(MC_MATCH_REQUEST_CHAR_QUEST_ITEM_LIST, MCmdParamUID(uid));
}


inline void ZPostRequestBuyQuestItem(const MUID & uid,
    const unsigned long int nItemID,
        const int nCount = 1) {
    ZPOSTCMD3(MC_MATCH_REQUEST_BUY_QUEST_ITEM, MCmdParamUID(uid), MCommandParameterInt(nItemID), MCommandParameterInt(nCount));
}


inline void ZPostRequestSellQuestItem(const MUID & uid,
    const unsigned long int nItemID,
        const int nCount = 1) {
    ZPOSTCMD3(MC_MATCH_REQUEST_SELL_QUEST_ITEM, MCmdParamUID(uid), MCommandParameterInt(nItemID), MCommandParameterInt(nCount));
}


inline void ZPostRequestDropSacrificeItem(const MUID & uid,
    const int nSlotIndex,
        const unsigned long int nItemID) {
    ZPOSTCMD3(MC_MATCH_REQUEST_DROP_SACRIFICE_ITEM, MCmdParamUID(uid), MCommandParameterInt(nSlotIndex), MCommandParameterInt(nItemID));
}


inline void ZPostRequestCallbackSacrificeItem(const MUID & uid,
    const int nSlotIndex,
        const unsigned long int nItemID) {
    ZPOSTCMD3(MC_MATCH_REQUEST_CALLBACK_SACRIFICE_ITEM, MCmdParamUID(uid), MCommandParameterInt(nSlotIndex), MCommandParameterInt(nItemID));
}


inline void ZPostRequestQL(const MUID & uid) {
    ZPOSTCMD1(MC_QUEST_REQUEST_QL, MCmdParamUID(uid));
}








inline void ZPostRequestSacrificeSlotInfo(const MUID & uid) {
    ZPOSTCMD1(MC_MATCH_REQUEST_SLOT_INFO, MCmdParamUID(uid));
}


inline void ZPostQuestStageMapset(const MUID & uidStage, int nMapsetID) {
    ZPOSTCMD2(MC_QUEST_STAGE_MAPSET, MCommandParameterUID(uidStage), MCommandParameterChar((char) nMapsetID));
}


inline void ZPostRequestMonsterBibleInfo(const MUID & uid) {
    ZPOSTCMD1(MC_MATCH_REQUEST_MONSTER_BIBLE_INFO, MCmdParamUID(uid));
}
#endif


inline void ZPostResponseXTrapSeedKey(unsigned char * szComBuf) // Update sgk 0706
    {
        void * pBlob = MMakeBlobArray(sizeof(unsigned char), 128);
        unsigned char * pCmdBlock = (unsigned char * ) MGetBlobArrayElement(pBlob, 0);
        CopyMemory(pCmdBlock, szComBuf, 128);


        ZPOSTCMD1(MC_RESPONSE_XTRAP_SEEDKEY, MCommandParameterBlob(pBlob, MGetBlobArraySize(pBlob)));


        MEraseBlobArray(pBlob);
    }


inline void ZPsotResponseGameguardAuht(const DWORD dwIndex,
    const DWORD dwValue1,
        const DWORD dwValue2,
            const DWORD dwValue3) {
    ZPOSTCMD4(MC_RESPONSE_GAMEGUARD_AUTH, MCmdParamUInt(dwIndex), MCmdParamUInt(dwValue1), MCmdParamUInt(dwValue2), MCmdParamUInt(dwValue3));
}




inline void ZPostResponseFirstGameguardAuth(const DWORD dwIndex,
    const DWORD dwValue1,
        const DWORD dwValue2,
            const DWORD dwValue3) {
    ZPOSTCMD4(MC_RESPONSE_FIRST_GAMEGUARD_AUTH, MCmdParamUInt(dwIndex), MCmdParamUInt(dwValue1), MCmdParamUInt(dwValue2), MCmdParamUInt(dwValue3));
}


inline void ZPostRequestGamble(const MUID & uid) {
    ZPOSTCMD1(MC_MATCH_REQUEST_GAMBLE, MCmdParamUID(uid));
}


inline void ZPostResponseResourceCRC32(DWORD dwCRC, DWORD dwXOR) {
    if (0 == dwCRC) {
        _ASSERT(0 != dwCRC);
        return;
    }


    ZPOSTCMD2(MC_RESPONSE_RESOURCE_CRC32, MCmdParamUInt(dwCRC), MCmdParamUInt(dwXOR));
}


inline void ZPostRequestUseSpendableNormalItem(const MUID & uid) {
    ZPOSTCMD1(MC_MATCH_REQUEST_USE_SPENDABLE_NORMAL_ITEM, MCmdParamUID(uid));
}


inline void ZPostRequestUseSpendableBuffItem(const MUID & uid) {
    ZPOSTCMD1(MC_MATCH_REQUEST_USE_SPENDABLE_BUFF_ITEM, MCmdParamUID(uid));
}


inline void ZPostRequestCaptureFlag(const int nItemUID) {
    ZPOSTCMD1(MC_MATCH_REQUEST_FLAG_CAP, MCommandParameterInt(nItemUID));
}




inline void ZPostRequestSkillFlag(const int nItemUID) {
    ZPOSTCMD1(MC_MATCH_REQUEST_SKILFLAG, MCommandParameterInt(nItemUID));
}
#define ZPostCharSkill(nID, uidTarget, vTargetPos) {\
    ZPOSTCMD3(CLOAK_CMD_ID(MC_PEER_CH_SKILL, 56304), MCommandParameterInt(nID), MCommandParameterUID(uidTarget), MCommandParameterPos(vTargetPos.x, vTargetPos.y, vTargetPos.z));\
}


// Zombie ///////////////////////////////////////////////////////////////////////////////////
inline void ZPosInfectionRequestZombieRaceAtJoinGame(const MUID & uidChar, int nRaceId) {
    ZPOSTCMD2(MC_MATCH_REQUEST_CHANGE_TO_ZOMBIE, MCmdParamUID(uidChar), MCmdParamInt(nRaceId));
}
inline void ZPosInfectionRequestSkillList() {
        ZPOSTCMD0(MC_MATCH_REQUEST_UPDATE_RACE_SKILL);
    }
    // WarriorClass ///////////////////////////////////////////////////////////////////////////////////


inline void ZPostRequestWarriorClassList() {
    ZPOSTCMD0(MC_MATCH_REQUEST_GETWARRRIORCLASS);
}
 
Upvote 0
Currently on mobile so this could be a tad incorrect, but as far as I could tell the problem was that you only had 1 #if but were closing w/ #endif twice. I tossed the only #endif you should need where I think it goes(at the end of quest-related functions). But I'm unfamiliar with the Abby source.

this way still get error. it not work.
 
Upvote 0
Back