当前位置:首页>>魔兽单机>>正文
实现335单机竞技场2V2的GM命令
2013-04-23 22:42:59 作者:网络 来源: 浏览次数:0
摘要:魔兽单机端单机版:实现335单机竞技场2V2的GM命令
 1、你需要知道如何把脚本加到你的Trinity-core的代码库里面---这个代码是支持TRINITY的

2、这个GM命令主要是实现2V2竞技场排队的作用,直接用命令就可以排队了

3、命令用法: .queue


#include "ScriptPch.h"
 
class queuecommand : public CommandScript
{
public:
    queuecommand() : CommandScript("queuecommand") {}
    ChatCommand* GetCommands() const
    {
    static ChatCommand CommandTable[] =
        {
            { "queue",        SEC_PLAYER,     true, &HandleQueueCommand,         "", NULL },
            { NULL,             0,                     false, NULL,                                           "", NULL }
        };
    return CommandTable;
    }
    static bool HandleQueueCommand(ChatHandler* handler, const char* args)
    {
    Player* me = handler->GetSession()->GetPlayer();
    if(me->GetArenaTeamId(1) != 0)
    {
    me->AddBattlegroundQueueId(BATTLEGROUND_QUEUE_2v2);
    }
    else
    {
        handler->PSendSysMessage("You are not in an Arena Team!");
    }
    return true;
    }
};
 
void AddSC_queuecommand()
{
    new queuecommand();
}


相关报道:

[关闭] [返回顶部]


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

机器人国度