背景:
阅读文章

mud兼容tomud客户端实现步骤

[日期:2008-12-25] 来源:  作者: [字体: ]
十四、在look.c指令里添加及修改以下内容:(有些部分根据自己mudlib情况而定)

Copy code
// 以下部分为添加部分

mapping df_bkpic=([
"foshan":"xiaozheng",
"village":"xiaozheng",
"hangzhou":"hangzhou",
"heimuya":"heimuya",
"huashan":"huashan",
"guanwai":"guanwai",
"lingjiu":"lingjiu",
"motianya":"motianya",
"register":"yanluodian",
"shenlong":"shenlong",
"taohua":"taohua",
"wudang":"wudang",
"wanjiegu":"wanjiegu",
"xiakedao":"xiakedao",
"quanzhen":"quanzhen",
"beijing":"beijing",
"changan":"changan",
"city":"city",
"city3":"city3",
"dali":"dali",
"emei":"emei",]);

mapping rf_bkpic=([
"_d_beijing_dangpu":"dangpu",
"_d_changan_dangpu":"dangpu",
"_d_city_dangpu":"dangpu",
"_d_foshan_dangpu":"dangpu",
"_d_xiangyang_dangpu":"dangpu",
"_d_suzhou_dangpu":"dangpu",
"_d_city_shuyuan":"shuyuan",
"_d_city_shuyuan2":"shuyuan",
"_d_suzhou_shuyuan":"shuyuan",
"_d_songshan_shuyuan":"shuyuan",
"_d_hangzhou_shuyuan":"shuyuan",
"_d_changan_zahuopu":"zahuopu",
"_d_fuzhou_zahuopu":"zahuopu",
"_d_beijing_huichuntang":"yaopu",
"_d_changan_yaopu":"yaopu",
"_d_xiangyang_yaopu":"yaopu",
"_d_suzhou_yaopu":"yaopu",
"_d_dali_yaoshop":"yaopu",
"_d_city_zuixianlou":"jiulou",
"_d_city_shuyuan":"shuyuan",
"_d_city_shuyuan2":"shuyuan",
"_d_suzhou_shuyuan":"shuyuan",
"_d_songshan_shuyuan":"shuyuan",
"_d_hangzhou_shuyuan":"shuyuan",
"_d_changan_zahuopu":"zahuopu",
"_d_fuzhou_zahuopu":"zahuopu",
"_d_beijing_huichuntang":"yaopu",
"_d_changan_yaopu":"yaopu",
"_d_xiangyang_yaopu":"yaopu",
"_d_suzhou_yaopu":"yaopu",
"_d_dali_yaoshop":"yaopu",
"_d_city_zuixianlou":"jiulou",
"_d_dali_huanggs":"huanggs",
"_d_emei_jinding":"jingding",
"_d_death_gate":"guimenguan",
"_d_changan_bank":"qiangzhuang",
"_d_beijing_qianzhuang":"qianzhuang",
"_d_city_qianzhuang":"qianzhuang",
"_d_changan_bank":"qiangzhuang",
"_d_beijing_qianzhuang":"qianzhuang",
"_d_city_qianzhuang":"qianzhuang",
"_d_emei_jinding":"jingding",
"_d_dali_huanggs":"huanggs",
"_d_beijing_dangpu":"dangpu",
"_d_changan_dangpu":"dangpu",
"_d_city_dangpu":"dangpu",
"_d_foshan_dangpu":"dangpu",
"_d_xiangyang_dangpu":"dangpu",
"_d_suzhou_dangpu":"dangpu",]);


//add by JackyBoy@XAJH 2001/5/6
string get_bkpic(object env)
{
    string rf,df;
    rf=replace_string(base_name(env),"/","_");
    df=domain_file(rf);
    if(!undefinedp(rf_bkpic[rf]))
          return rf_bkpic[rf];
    if(!undefinedp(df_bkpic[df]))
          return df_bkpic[df];
    return "";
}

int info(object me, object env)
{
    string *dirs,df;
    mapping exits;

    if( mapp(exits = env->query("exits")) )
        dirs = keys(exits);

    if(sizeof(dirs)==1 && sizeof(dirs)!=0)
        write(TMI("bnway "+dirs[0]+";"));
    else if(sizeof(dirs)!=0)
        write(TMI( sprintf("bnway "+"%s;",implode(dirs[0..sizeof(dirs)], ";")) ));
    df=get_bkpic(env);
    if(df=="") return 1;
    if(df!=me->query_temp("bkpic"))
    {
          me->set_temp("bkpic",df);
          write(TMI("bkpic "+df));
    }
    return 1;
}
收藏 推荐 打印 | 录入:sbso | 阅读:
相关内容      
本文评论   [发表评论]   全部评论 (0)
内容推送
52mud提供
一起回忆泥巴游戏QQ群68186072
52mud官方微信公众平台
热门评论