当前位置:首页>>魔兽单机>>正文
一个单机设置炉石点的命令系统
2018-07-20 20:25:45 作者:网络 来源: 浏览次数:0
 这个是TrinityCore魔兽世界的 一个命令脚本!里面包含两个GM命令,这些命令也可以给普通玩家使用

This script gives the user a command, .hearth. You can do .hearth go (to goto the place your hearthstone is set) and .hearth set to set your hearthstone! I haven't seen one of these before, so I decided to make one for fun. Hopefully this helps someone

你可以给普通玩家使用这两个命令,一个是.hearth go  这个是返回你的炉石点! 另一个是.hearth set 就是设置这里是你的炉石点!

。。。。。。。。。


看看代码
    ChatCommand* GetCommands() const
    {
        static ChatCommand recallCommandTable[] =
        {
                { "go",     SEC_PLAYER,     true,  &HandleRecallGoCommand,       "", NULL },
                { "set",    SEC_PLAYER,     false, &HandleRecallSetCommand      "", NULL },
                { NULL,     0,              false, NULL,                        "", NULL }
        };
        
        static ChatCommand commandTable[] =
        {
            { "hearth", SEC_PLAYER,     true,  NULL, "", recallCommandTable},
            { NULL,     0,              false, NULL, "", NULL }
        };

        return commandTable;
    }


全部代码在这里:Hearth_go_And_Hearth_set-Command.rar
 


相关报道:

[关闭] [返回顶部]


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

机器人国度