关于刀剑无双GM命令和命令的使用方法,本站有文章讲过了,想了解的同学,可以用关建词"刀剑无双"搜索本站,现在来讲讲怎么开启支持GM命令.
支持GM命令有二个版本,一个是开启所有用户的GM命令,也就是所谓的指令服了.
另一个就是可以指定GM账号的高级JAR版本.
指定GM账号和修改GM指令都需要修改jar,文件,
这里广告一下,给个支持GM账号的刀剑无双游戏给大家参考:http://djws.654320.com
先讲讲怎么开启GM指定.
在服务端内搜索configuration.xml文件 用记事本打开,
找到字条bean id="server.command.enableGM" class="java.lang.Boolean" >
如果是支持指定GM账号的,那这里应该有个账号,改为你自己的账号,即可用你的账号登录游戏刷GM指令了.
很简单吧,现在讲讲怎么修改GM指令,主要是修改JAR里的二个文件就行了:
1个是GPH.jar\com\yayo\warriors\socket\handler\chat\gm\GMHelper.class
还有1个是GPH.jar\com\yayo\warriors\module\chat\type\GmType.class
当然,修改JAR要会反编译哦.有能力的动动手罗.
以下是JAR中关于GM指令的相关代码:
public static final String GM_START = "Hm";
public static final String HP = "hp";
public static final String MP = "mp";
public static final String GAS = "gas";
public static final String EXP = "exp";
public static final String ITEM = "item";
public static final String EQUIP = "equip";
public static final String LEVEL = "level";
public static final String SKILL = "skill";
public static final String SILVER = "silver";
public static final String GOLDEN = "golden";
public static final String CLEAR_BAG = "clearBag";
public static final String USER_TASK = "userTask";
public static final String GOTO = "goto";
public static final String SHUT_DOWN = "shutdown";
public static final String PET_EXP = "petExp";
public static final String MERIDIAN = "meridian";
public static final String MERGED_LEVEL = "mergedLevel";
public static final String ADMIN = "admin";
public static final String MONSTER = "monster";
public static final String ALLIANCE_SILVER = "allianceSilver";
public static final String ALLIANCE_TOKEN = "allianceToken";
public static final String PLAYER_DONATE = "donate";
public static final String WINE_JAR = "winejar";
public static final String COUPON = "coupon";
public static final String KILL_MONSTER = "monsterCount";
public static final String LOGIN_DAYS = "loginDays";
public static final String CONTINUE_DAYS = "continueDays";
public static final String GUIDE = "guide";
public static final String LOGIN_TIME = "onlineTime";
public static final String RANK = "rank";
public static final String HORSE = "horse";
public static final String BLESS = "bless"
(责任编辑:小马资源网)