当前位置: 首页>>代码示例>>C++>>正文


C++ CNetMsg::__rs方法代码示例

本文整理汇总了C++中CNetMsg::__rs方法的典型用法代码示例。如果您正苦于以下问题:C++ CNetMsg::__rs方法的具体用法?C++ CNetMsg::__rs怎么用?C++ CNetMsg::__rs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CNetMsg的用法示例。


在下文中一共展示了CNetMsg::__rs方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: do_Pulse

void do_Pulse(CPC *a1, CNetMsg &a2) // Y U NO BOOL?
{
    int dest; // [sp+14h] [bp-4h]@1

    a2.MoveFirst();
    a2.__rs(dest); // (int &) CHECKED

    a1->Unk768->CheckHackPulse(dest); // return skipped
}
开发者ID:Christian-Roggia,项目名称:open-last-chaos,代码行数:9,代码来源:doFuncEtc.cpp

示例2: do_UseStatPoint

void do_UseStatPoint(CPC *a1, CNetMsg &a2)
{
    short v4; // [sp+Eh] [bp-1Ah]@7
    _tagStatPointUseType v6; // [sp+26h] [bp-2h]@1
    unsigned char dest; // [sp+27h] [bp-1h]@1

    CNetMsg v5;

    a2.MoveFirst();
    a2.__rs(dest); // (unsigned char &) CHECKED
    a2.__rs(v6);   // (unsigned char &) CHECKED

    if(dest != 1)
        return;

    if(a1->Unk740 <= 0)
    {
        StatPointErrorMsg(v5, 0);

        if(a1->Unk768)
            a1->Unk768->WriteToOutput(v5);

        return;
    }

    if(a1->UseStatPoint(v6, &v4))
    {
        StatPointUseMsg(v5, a1, v6, v4);

        if(a1->Unk768)
            a1->Unk768->WriteToOutput(v5);

        return;
    }

    StatPointErrorMsg(v5, 1);

    if(a1->Unk768)
        a1->Unk768->WriteToOutput(v5);

    return;
}
开发者ID:Christian-Roggia,项目名称:open-last-chaos,代码行数:42,代码来源:doFuncEtc.cpp

示例3: do_Change

void do_Change(CPC *a1, CNetMsg &a2)
{
    unsigned char dest; // [sp+27h] [bp-1h]@1

    a2.MoveFirst();
    a2.__rs(dest); // (unsigned char &) CHECKED

    if(dest != 2) return;
    if(!a1->IsSetPlayerState(64)) return;
    if(a1->Unk2388 == -1) return;

    a1->Unk2388 = -1;
    a1->Unk2384 = 0;

    a1->ResetPlayerState(64);

    CNetMsg v3;

    ChangeStopMsg(v3, a1);

    a1->Unk412->SendToCell(v3, a1, true, 4);
}
开发者ID:Christian-Roggia,项目名称:open-last-chaos,代码行数:22,代码来源:doFuncEtc.cpp

示例4: do_GM

void do_GM(CPC *a1, CNetMsg &a2)
{
    unsigned char dest; // [sp+4Fh] [bp-5h]@1
    int v20, v21;
    char *v22;

    a2.MoveFirst();

    a2.__rs(dest);

    if(dest)
    {
        if(dest == 1)
        {
            *buf = 0;
            a2.__rs(buf);
            *g_buf2 = 0;
            v22 = AnyOneArg(buf, g_buf2, true);

            for(int i = 0; i <= 34; ++i)
            {
                if(!strcmp(g_buf2, gmCmd_567[i]) && a1->Unk732 >= gmLevel_568[i])
                {
                    g_gamelogbuffer.__ls(init("GM COMMAND"));
                    g_gamelogbuffer.__ls(buf);
                    g_gamelogbuffer.__ls(delim);
                    g_gamelogbuffer.__ls(a1->Unk4);
                    g_gamelogbuffer.__ls(delim);
                    g_gamelogbuffer.__ls(a1->Unk8);
                    g_gamelogbuffer.__ls(end);

                    gmFunc_569[i](a1, v22);
                    break;
                }
            }

            if(strcmp(g_buf2, "pkcount"))
            {
                if(!strcmp(g_buf2, "pkpenalty"))
                {
                    AnyOneArg(v22, g_buf2, true);
                    if(strlen(g_buf2))
                    {
                        v21 = atoi(g_buf2);

                        if(v21 < -155)
                            v21 = -155;

                        if(v21 > 155)
                            v21 = 155;

                        a1->Unk1852 = v21;

                        CNetMsg v23;

                        CharStatusMsg(v23, a1, 0);
                        a1->Unk412->SendToCell(v23, a1, 0, 4);
                        a1->Unk473 = 1;
                    }
                }
            }
            else
            {
                AnyOneArg(v22, g_buf2, true);
                if(strlen(g_buf2))
                {
                    v20 = atoi(g_buf2);

                    if(v20 < -110)
                        v20 = -110;

                    if(v20 > 110)
                        v20 = 110;

                    a1->Unk1856 = v20;

                    CNetMsg v23;

                    CharStatusMsg(v23, a1, 0);
                    a1->Unk412->SendToCell(v23, a1, 0, 4);
                    a1->Unk473 = 1;
                }
            }
        }
    }
    else
    {
        CNetMsg v24;

        GMWhoAmIMsg(v24, a1);

        if(a1->Unk768)
            a1->Unk768->WriteToOutput(v24);

        g_gamelogbuffer.__ls(init("GM COMMAND"));
        g_gamelogbuffer.__ls("whoami");
        g_gamelogbuffer.__ls(delim);
        g_gamelogbuffer.__ls(a1->Unk4);
        g_gamelogbuffer.__ls(delim);
        g_gamelogbuffer.__ls(a1->Unk8);
//.........这里部分代码省略.........
开发者ID:Christian-Roggia,项目名称:open-last-chaos,代码行数:101,代码来源:doFuncAdmin.cpp

示例5: do_NPCRegen

void do_NPCRegen(CPC *a1, CNetMsg &a2)
{
    int v21; // [sp+28h] [bp-30h]@9
    CNPC *v23; // [sp+30h] [bp-28h]@6
    CZone *v24; // [sp+34h] [bp-24h]@7
    float v25; // [sp+38h] [bp-20h]@1
    float v26; // [sp+3Ch] [bp-1Ch]@1
    float v27; // [sp+40h] [bp-18h]@1
    float dest; // [sp+44h] [bp-14h]@1
    int src; // [sp+48h] [bp-10h]@1
    char v30; // [sp+4Ch] [bp-Ch]@1
    int v31; // [sp+50h] [bp-8h]@1
    int v32; // [sp+54h] [bp-4h]@1

    a2.MoveFirst();

    a2.__rs(v32);
    a2.__rs(v31);
    a2.__rs(dest);
    a2.__rs(v27);
    a2.__rs(v26);
    a2.__rs(v25);
    a2.__rs(v30);
    a2.__rs(src);

    if(v32 == -1)
    {
        if(a1->Unk408->Unk0 == 2 || a1->Unk408->Unk0 == 5 || a1->Unk408->Unk0 == 6)
        {
            ++a1->Unk412->Unk72;
            if(a1->Unk412->Unk32.Unk8 >= a1->Unk412->Unk72)
            {
                v23 = gserver.Unk452200.Create(v31);
                if(v23)
                {
                    v23->Unk120.Unk0  = dest;
                    v23->Unk476       = dest;
                    v23->Unk120.Unk4  = v27;
                    v23->Unk484       = v27;
                    v23->Unk120.Unk16 = v30;
                    v23->Unk480       = v30;
                    v23->Unk120.Unk12 = v25;
                    v23->Unk120.Unk8  = v26;

                    int v24_2;

                    a1->Unk412->AddNPC(v23);
                    a1->Unk412->PointToCellNum(v23->Unk120.Unk0, v23->Unk120.Unk4, &v24_2, &v21);
                    a1->Unk412->CharToCell(v23, v23->Unk120.Unk16, v24_2, v21);

                    CNetMsg v20;

                    NPCRegenMsg(v20, v23, src);

                    a1->Unk412->SendToCell(v20, a1, 1, 4);
                }
            }
            else
            {
                int v23_2 = gserver.FindZone(0);
                if(v23_2 != -1)
                {
                    v24 = &gserver.Unk452196[v23_2];
                    GoZone(a1, 0, v24->Unk52[0]->Unk0, GetRandom(v24->Unk52[0]->Unk4, v24->Unk52[0]->Unk12) / 2.0, GetRandom(v24->Unk52[0]->Unk8, v24->Unk52[0]->Unk16) / 2.0);
                }
            }
        }
    }
}
开发者ID:Christian-Roggia,项目名称:open-last-chaos,代码行数:69,代码来源:doFuncNPCRegen.cpp


注:本文中的CNetMsg::__rs方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。