当前位置:首页>>魔兽单机>>正文
335WOTLK单机版中禁止团队自由PVP区域代码
2013-04-21 13:02:28 作者:网络 来源: 浏览次数:0
摘要:335WOTLK单机版中禁止团队自由PVP区域代码
 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();

OK,编译一下,基本上就完成了


相关报道:

[关闭] [返回顶部]


  返回首页 | 最新资讯 | 资源下载 | 魔兽图片 | 单机文档 | 技术攻略 | 玩家视频
备案号:蜀ICP备2024062380号-1
免责声明:本网站为热爱怀旧WOW的玩家们建立的魔兽世界资料网站,仅供交流和学习使用,非盈利和商用.如有侵权之处,请联系我们,我们会在24小时内确认删除侵权内容,谢谢合作。
Copyright © 2024 - 2024 WOWAII.COM Corporation, All Rights Reserved

机器人国度