TA的每日心情 | 无聊 2019-4-21 13:02 |
---|
签到天数: 3 天 [LV.2]圆转纯熟
|
1、打开你的GroupHandler.cpp代码
2、找到80行左右吧?
然后修改下面的代码
// no player if (!player) { SendPartyResult(PARTY_OP_INVITE, membername, ERR_BAD_PLAYER_NAME_S); return; }
修改为 // no player if (!player) { SendPartyResult(PARTY_OP_INVITE, membername, ERR_BAD_PLAYER_NAME_S); return; } if(player->pvpInfo.inFFAPvPArea || this->GetPlayer()->pvpInfo.inFFAPvPArea) { std::string info = ""; player->pvpInfo.inFFAPvPArea ? info = "your target is" : info = "you are"; this->SendNotification("Group invite failed, %s in a FFA Area", info); return; }
OK~~基本就完成了,从新编译一下,测试一下下一步:
1、打开Player.cpp文件
2、找到7430行左右找到UpdateAreaDependentAuras(newArea);函数 修改为: UpdateAreaDependentAuras(newArea); if(this->pvpInfo.inFFAPvPArea && this->GetGroup() && !this->inBattleground()) this->RemoveFromGroup();
|
|