十六、添加指令cmdbar.c 到/cmds/usr/cmdbar.c
int main(object me,string arg)
{
//Look score hp search say chat chann I fee who map help alias icon
string *cmdbar;
string *tmp = ({
"观察=look","物品=i","评价SC=score","状态HP=hp",
"功夫SK=cha","设置头像=face ...","查询费用=fee",
"设置频道=chann","搜索=search","在线=who",
"帮助=help ...","说话=say ...","闲聊=chat ...",});
cmdbar=me->query("cmdbar");
if(!arrayp ( cmdbar ) || sizeof(cmdbar)!=13)
cmdbar = tmp;
//me->set("cmdbar",cmdbar);//以后如果受玩家欢迎的话可以允许他们自己定义命令(关闭重新运行后生效)
write(TMI("cmdbar "+implode(cmdbar,";")+";"));
return 1;
十七、最后修改channeld.c在里面添加 mapping query_chann() { return channels;} 既可。
修改mudlib支持tomud客户端的确比较麻烦,因很多人经常要求我去帮他们修改,大家看上面的程序
就知道修改起来很烦人,再说我也没有时间去一个一个帮忙,所以干脆就写了修改过程。