diff --git a/b/yitian/npc/ada.c b/b/yitian/npc/ada.c index 39e6e9f21..1a7626ec6 100644 --- a/b/yitian/npc/ada.c +++ b/b/yitian/npc/ada.c @@ -158,7 +158,7 @@ int begin() void unconcious() { object ob; - object me = this_player(); +// object me = this_player(); if (objectp(query("anti"))) { @@ -202,4 +202,4 @@ void unconcious() } ::die(); -} +} \ No newline at end of file diff --git a/b/yitian/npc/zhao.c b/b/yitian/npc/zhao.c index 8dd33a4ba..64d695579 100644 --- a/b/yitian/npc/zhao.c +++ b/b/yitian/npc/zhao.c @@ -87,7 +87,7 @@ int do_yun(string arg) int do_get(string arg) { - object obj, env, shelf; + object obj/*, env, shelf*/; string what, where; if (! arg) return 0; @@ -159,4 +159,3 @@ void greeting(object ob) command("yi"); command("say 哼,今天来我这里添乱的人还真不少!"); } - diff --git a/clone/book/kuihua.c b/clone/book/kuihua.c index 040eae6bf..7a203b834 100644 --- a/clone/book/kuihua.c +++ b/clone/book/kuihua.c @@ -30,9 +30,9 @@ int do_du(string arg) { object me = this_player(); object where = environment(me); - object ob; - mapping skill; - int plvl, con, improve; +// object ob; +// mapping skill; + int plvl, con/*, improve*/; int neili_lost; if (! arg || ! id(arg)) @@ -161,4 +161,4 @@ int do_du(string arg) me->start_busy(random(1) + 1); write("你研读「葵花宝典」,颇有心得。\n"); return 1; -} +} \ No newline at end of file diff --git a/clone/fam/etc/prize5.c b/clone/fam/etc/prize5.c index 30cbffe16..a4b506c61 100644 --- a/clone/fam/etc/prize5.c +++ b/clone/fam/etc/prize5.c @@ -24,7 +24,7 @@ int do_drink(string arg) { object me = this_player(); - string mapsk; +// string mapsk; int na, un; mapping my = me->query_entire_dbase(); @@ -57,4 +57,4 @@ int do_drink(string arg) int query_autoload() { return 1; -} +} \ No newline at end of file diff --git a/clone/fam/max/longjia.c b/clone/fam/max/longjia.c index e82d81a19..e0db65fb7 100644 --- a/clone/fam/max/longjia.c +++ b/clone/fam/max/longjia.c @@ -24,7 +24,7 @@ int do_effect(object me) { string mapsk; int effect; - int neili; +// int neili; log_file("static/using", sprintf("%s(%s) eat 子午龙甲丹 at %s.\n", me->name(1), me->query("id"), ctime(time()))); diff --git a/clone/fam/max/naobaijin.c b/clone/fam/max/naobaijin.c index 04ca37329..9390613f7 100644 --- a/clone/fam/max/naobaijin.c +++ b/clone/fam/max/naobaijin.c @@ -21,7 +21,7 @@ int do_effect(object me) { string mapsk; int effect; - int neili; +// int neili; log_file("static/using", sprintf("%s(%s) eat 脑白金 at %s.\n", me->name(1), me->query("id"), ctime(time()))); @@ -60,4 +60,4 @@ int do_effect(object me) me->add("magic_points", 500); destruct(this_object()); return 1; -} +} \ No newline at end of file diff --git a/clone/fam/max/xuanhuang.c b/clone/fam/max/xuanhuang.c index 6c4b915f9..d61ca473f 100644 --- a/clone/fam/max/xuanhuang.c +++ b/clone/fam/max/xuanhuang.c @@ -24,7 +24,7 @@ int do_effect(object me) { string mapsk; int effect; - int neili; +// int neili; log_file("static/using", sprintf("%s(%s) eat 玄黄紫箐丹 at %s.\n", me->name(1), me->query("id"), ctime(time()))); diff --git a/clone/fam/max/zhenyu.c b/clone/fam/max/zhenyu.c index ec667ace6..c0a029e2d 100644 --- a/clone/fam/max/zhenyu.c +++ b/clone/fam/max/zhenyu.c @@ -24,7 +24,7 @@ int do_effect(object me) { string mapsk; int effect; - int neili; +// int neili; log_file("static/using", sprintf("%s(%s) eat 镇狱惊天丸 at %s.\n", me->name(1), me->query("id"), ctime(time()))); diff --git a/clone/game/dhs.c b/clone/game/dhs.c index 8856ede7c..b50aac011 100644 --- a/clone/game/dhs.c +++ b/clone/game/dhs.c @@ -175,7 +175,7 @@ string build_se(object who) mixed *s; string r,t; int i,y,num; - object ob; +// object ob; if(!who) return ""; @@ -497,7 +497,7 @@ int do_guess(string arg) int n,p,ok; object ob; object me; - string nextone; +// string nextone; me = this_player(); if(!is_playing(me)) @@ -824,4 +824,3 @@ HELP ); return 1; } - diff --git a/clone/game/pai.c b/clone/game/pai.c index 80be62b8e..8b6207034 100644 --- a/clone/game/pai.c +++ b/clone/game/pai.c @@ -125,7 +125,7 @@ void reset_pai() int reset_all() { - int i; +// int i; has_start = 0; if(sizeof(player)!=0) @@ -239,8 +239,8 @@ int do_reset(string arg) int do_restart(string arg) { - int i; - string* key; +// int i; +// string* key; if(!is_playing(this_player())) return notify_fail("你都不玩,开始什么啊!\n"); @@ -329,7 +329,7 @@ int do_xipai(string arg) int do_sortpai(string arg) { - int i,sum,which,v=0,j,it; + int i,sum/*,which*/,v=0,j,it; int c1,c2; string temp; mixed* pai; @@ -465,7 +465,7 @@ int do_paipai(string arg) { int i,sum,j; string* key; - string cmd; +// string cmd; if(!is_playing(this_player())) @@ -490,9 +490,9 @@ int do_paipai(string arg) int do_mopai(string arg) { - int i,sum,j; - string* key; - string cmd; +// int i,sum,j; +// string* key; +// string cmd; if(!is_playing(this_player())) return notify_fail("你都不玩啊!\n"); @@ -502,9 +502,9 @@ int do_mopai(string arg) int do_chupai(string arg) { - int i,sum,j,done,temp; + int /*i,*/sum/*,j*/,done/*,temp*/; mixed* inv; - string cmd; +// string cmd; object ob; if(!is_playing(this_player())) @@ -565,10 +565,10 @@ int do_chupai(string arg) int do_showpai(string arg) { - int i,sum,j; - string* key; - string cmd; - object ob; +// int i,sum,j; +// string* key; +// string cmd; +// object ob; if(!is_playing(this_player())) return notify_fail("你都不玩啊!\n"); @@ -585,10 +585,10 @@ int do_showpai(string arg) int do_hidepai(string arg) { - int i,sum,j; - string* key; - string cmd; - object ob; +// int i,sum,j; +// string* key; +// string cmd; +// object ob; if(!is_playing(this_player())) return notify_fail("你都不玩啊!\n"); @@ -605,10 +605,10 @@ int do_hidepai(string arg) int do_takebackpai(string arg) { - int i,sum,j; - string* key; +// int i,sum,j; +// string* key; string cmd,where; - object ob; +// object ob; if(!is_playing(this_player())) return notify_fail("你都不玩啊!\n"); @@ -680,7 +680,7 @@ string extra_long() int pick_out(string from, int id) { int i,j,s; - string* p; +// string* p; mixed* pai; pai = get_pais(from); @@ -707,7 +707,7 @@ int pick_out(string from, int id) int pick_out2(string from, int id) { int i,j,s; - string* p; +// string* p; mixed* pai; pai = get_pais(from); @@ -793,7 +793,7 @@ object get_player(string id) int is_playing(object ob) { - int i; +// int i; string id; id = ob->query("id"); if(stringp(player[id])) @@ -868,7 +868,7 @@ int valid_show(object who,string which) string view_pai(object who,string which) { mixed* pai; - int show_all,i,j; + int /*show_all,*/i/*,j*/; string s,p; pai = get_pais(which); @@ -958,10 +958,10 @@ int do_removej(string arg) int do_pass(string arg) { - string old,str; + string old/*,str*/; string* key; - mixed* inv; - int i,temp; +// mixed* inv; + int i/*,temp*/; if(!is_playing(this_player())) return notify_fail("你都不玩牌啊!\n"); @@ -1015,7 +1015,7 @@ int do_end(string arg) mixed* pai; string* p; int i; - object ob; +// object ob; if(!is_playing(this_player())) return notify_fail("你都不玩牌啊!\n"); @@ -1120,8 +1120,8 @@ void auto_order() int do_setmode(string arg) { - int vmode = 0,i; - mixed* inv; + int vmode = 0/*,i*/; +// mixed* inv; if(!arg) return notify_fail("setmode [模式] 请参照帮助。\n"); @@ -1244,7 +1244,7 @@ int do_removec(string arg) int do_paipai2(string arg) { - int i; +// int i; if(!is_playing(this_player())) return notify_fail("你都不玩啊!\n"); @@ -1259,7 +1259,7 @@ int do_paipai2(string arg) int do_daopai(string arg) { - int i; +// int i; if(!is_playing(this_player())) return notify_fail("你都不玩,开始什么啊!\n"); @@ -1383,4 +1383,3 @@ void finish_21() msg(r); who_play = 0; } - diff --git a/clone/game/pai21.c b/clone/game/pai21.c index 08fb14a27..0855132b4 100644 --- a/clone/game/pai21.c +++ b/clone/game/pai21.c @@ -94,7 +94,7 @@ void reset_pai() int reset_all() { // 重置整个游戏 - int i; +// int i; has_start = 0; if(sizeof(player)!=0) @@ -168,8 +168,8 @@ int do_reset(string arg) int do_restart(string arg) { - int i; - string* key; +// int i; +// string* key; if(!is_playing(this_player())) return notify_fail("你都不玩,开始什么啊!\n"); @@ -244,9 +244,9 @@ int do_xipai(string arg) int do_chupai(string arg) { - int i,sum,j,done,temp,id; + int /*i,*/sum/*,j*/,done/*,temp*/,id; mixed* inv; - string cmd; +// string cmd; object ob; if(!is_playing(this_player())) @@ -378,7 +378,7 @@ object get_player(string id) int is_playing(object ob) { - int i; +// int i; string id; id = ob->query("id"); if(stringp(player[id])) @@ -394,7 +394,7 @@ int sizeof_pai(mixed* p) string view_pai(string which) { mixed* pai; - int show_all,i,j; + int /*show_all,*/i/*,j*/; string s,p; pai = player_hand[which]; @@ -440,10 +440,10 @@ int do_nextone(string arg) int do_pass(string arg) { - string old,str; + string old/*,str*/; string* key; - mixed* inv; - int i,temp; +// mixed* inv; + int i/*,temp*/; if(!is_playing(this_player())) return notify_fail("你都不玩牌啊!\n"); @@ -737,4 +737,4 @@ HELP mixed t() { return pai_on_desk; -} +} \ No newline at end of file diff --git a/clone/lonely/book/jinshe.c b/clone/lonely/book/jinshe.c index a4eb5ea6e..51e33dedd 100644 --- a/clone/lonely/book/jinshe.c +++ b/clone/lonely/book/jinshe.c @@ -40,10 +40,10 @@ int do_du(string arg) { object me = this_player(); object where = environment(me); - object ob; +// object ob; string skill, book, msg; - int lv; +// int lv; if (! arg) { diff --git a/clone/lonely/book/kuihua1.c b/clone/lonely/book/kuihua1.c index 2d077efa7..768a78d51 100644 --- a/clone/lonely/book/kuihua1.c +++ b/clone/lonely/book/kuihua1.c @@ -34,8 +34,8 @@ int do_du(string arg) { object me = this_player(); object where = environment(me); - mapping skill; - int plvl, con, improve; +// mapping skill; + int plvl, con/*, improve*/; int neili_lost; if (! arg || ! id(arg)) @@ -259,9 +259,9 @@ int do_yanjiu(string arg) { object me = this_player(); object where = environment(me); - object ob; +// object ob; string pfm, jiasha; - int lv; +// int lv; if (! arg) { @@ -536,4 +536,4 @@ int do_yanjiu(string arg) me->start_busy(2); return 1; } -} +} \ No newline at end of file diff --git a/clone/lonely/book/liumai-shenjian.c b/clone/lonely/book/liumai-shenjian.c index d3a7847c3..f3170ce70 100644 --- a/clone/lonely/book/liumai-shenjian.c +++ b/clone/lonely/book/liumai-shenjian.c @@ -25,7 +25,7 @@ int do_du(string arg) { object me = this_player(); object where = environment(me); - object ob; +// object ob; string skill, book, msg; int lv; @@ -293,4 +293,4 @@ int do_du(string arg) write("你仔细研读六脉神剑谱,颇有心得。\n"); destruct(this_object()); return 1; -} +} \ No newline at end of file diff --git a/clone/lonely/book/zhenjing.c b/clone/lonely/book/zhenjing.c index b4cb289c5..06da4362d 100644 --- a/clone/lonely/book/zhenjing.c +++ b/clone/lonely/book/zhenjing.c @@ -28,7 +28,7 @@ int do_du(string arg) { object me = this_player(); object where = environment(me); - object ob; +// object ob; string skill, book; int lv; @@ -160,4 +160,4 @@ int do_du(string arg) environment(me), me); write("你仔细研读九阴真经,颇有心得。\n"); return 1; -} +} \ No newline at end of file diff --git a/clone/lonely/hexingbi.c b/clone/lonely/hexingbi.c index f2ae45744..7e56ee507 100644 --- a/clone/lonely/hexingbi.c +++ b/clone/lonely/hexingbi.c @@ -26,7 +26,7 @@ void create() mixed hit_ob(object me, object victim, int damage_bonus) { int n; - int my_exp, ob_exp; +// int my_exp,ob_exp; if (me->query_skill_mapped("dagger") != "hexing-bifa" || me->query_skill("hexing-bifa", 1) < 100) @@ -46,4 +46,4 @@ mixed hit_ob(object me, object victim, int damage_bonus) return HIR "$N" HIR "一声怒喝,手中鹤形笔猛地连续刺向$n" HIR "!\n" NOR; } return damage_bonus; -} +} \ No newline at end of file diff --git a/clone/lonely/huangjinfu.c b/clone/lonely/huangjinfu.c index 4b0069317..bce0ac548 100644 --- a/clone/lonely/huangjinfu.c +++ b/clone/lonely/huangjinfu.c @@ -28,7 +28,7 @@ void create() mixed hit_ob(object me, object victim, int damage_bonus) { int n; - int my_exp, ob_exp; +// int my_exp,ob_exp; if (me->query_skill_mapped("hammer") != "leiting-fu" || me->query_skill("leiting-fu", 1) < 150) @@ -72,4 +72,4 @@ int do_pick(string arg) } else return notify_fail(YEL "你扭开斧柄,发现柄中空空如也,什么" "都没有。\n" NOR); -} +} \ No newline at end of file diff --git a/clone/lonely/jinwugou.c b/clone/lonely/jinwugou.c index 9d6a0bba2..075b09447 100644 --- a/clone/lonely/jinwugou.c +++ b/clone/lonely/jinwugou.c @@ -29,7 +29,7 @@ void create() mixed hit_ob(object me, object victim, int damage_bonus) { int n; - int my_exp, ob_exp; +// int my_exp,ob_exp; if (me->query_skill_mapped("sword") != "jinwu-goufa" || me->query_skill("jinwu-goufa", 1) < 100) @@ -51,4 +51,4 @@ mixed hit_ob(object me, object victim, int damage_bonus) "四射,连刺$n" HIY "全身各处要穴!\n" NOR; } return damage_bonus; -} +} \ No newline at end of file diff --git a/clone/lonely/kuihuazhen.c b/clone/lonely/kuihuazhen.c index 5d0bc58bd..ba866b227 100644 --- a/clone/lonely/kuihuazhen.c +++ b/clone/lonely/kuihuazhen.c @@ -53,7 +53,7 @@ string do_unwield() mixed hit_ob(object me, object victim, int damage_bonus) { int n; - int my_exp, ob_exp; +// int my_exp,ob_exp; if (me->query_skill("sword") < 250) return damage_bonus / 2; @@ -92,4 +92,4 @@ mixed hit_ob(object me, object victim, int damage_bonus) "跟前,阴笑两声,又随即跃开!\n" NOR; } return damage_bonus; -} +} \ No newline at end of file diff --git a/clone/lonely/lutouzhang.c b/clone/lonely/lutouzhang.c index 966d08117..207c0a061 100644 --- a/clone/lonely/lutouzhang.c +++ b/clone/lonely/lutouzhang.c @@ -26,7 +26,7 @@ void create() mixed hit_ob(object me, object victim, int damage_bonus) { int n; - int my_exp, ob_exp; +// int my_exp,ob_exp; if (me->query_skill_mapped("staff") != "lutou-zhang" || me->query_skill("lutou-zhang", 1) < 100) @@ -46,4 +46,4 @@ mixed hit_ob(object me, object victim, int damage_bonus) return HIR "$N" HIR "飞身而起,手中鹿头杖从天而下,砸向$n" HIR "!\n" NOR; } return damage_bonus; -} +} \ No newline at end of file diff --git a/clone/lonely/shennongjian.c b/clone/lonely/shennongjian.c index 3076e8fd6..35fb03715 100644 --- a/clone/lonely/shennongjian.c +++ b/clone/lonely/shennongjian.c @@ -27,7 +27,7 @@ void create() mixed hit_ob(object me, object victim, int damage_bonus) { int n; - int my_exp, ob_exp; +// int my_exp,ob_exp; if (me->query_skill_mapped("staff") != "shennong-zhang" || me->query_skill("shennong-zhang", 1) < 100) @@ -52,4 +52,3 @@ mixed hit_ob(object me, object victim, int damage_bonus) return damage_bonus; } - diff --git a/clone/lonely/yuzhu.c b/clone/lonely/yuzhu.c index 64f0b47b2..d024f3561 100644 --- a/clone/lonely/yuzhu.c +++ b/clone/lonely/yuzhu.c @@ -29,7 +29,7 @@ void create() mixed hit_ob(object me, object victim, int damage_bonus) { int n; - int my_exp, ob_exp; +// int my_exp,ob_exp; if (me->query_skill_mapped("staff") != "dagou-bang" || me->query_skill("dagou-bang", 1) < 100) @@ -45,4 +45,4 @@ mixed hit_ob(object me, object victim, int damage_bonus) HIG "而去!\n" NOR; } return damage_bonus; -} +} \ No newline at end of file diff --git a/clone/misc/depot_ob.h b/clone/misc/depot_ob.h index 025b8c639..616c807bf 100644 --- a/clone/misc/depot_ob.h +++ b/clone/misc/depot_ob.h @@ -81,8 +81,8 @@ int do_take(string arg) object me, ob; object *obs; int n, amount, num; - string *ks; - string k, un; +// string *ks; + string /*k,*/ un; me = this_player(); @@ -166,7 +166,7 @@ int do_take(string arg) int do_store(string arg) { - int i, n, k, amount; + int i, n/*, k*/, amount; string item; object me, ob1, ob2, *inv; @@ -467,4 +467,3 @@ mixed save_dbase_data() } return data; } - diff --git a/clone/misc/diaogan.c b/clone/misc/diaogan.c index 71693270b..46f325dc2 100644 --- a/clone/misc/diaogan.c +++ b/clone/misc/diaogan.c @@ -32,7 +32,7 @@ void create() int do_fish() { object yr; - object ob; +// object ob; object me = this_player(); if (! arrayp(environment(me)->query("resource/fish"))) @@ -192,4 +192,4 @@ int move(mixed dest, int raw) me->interrupt_me(); return ::move(dest, raw); -} +} \ No newline at end of file diff --git a/clone/misc/roommaker.c b/clone/misc/roommaker.c index d63cde8ba..e0bc032e9 100644 --- a/clone/misc/roommaker.c +++ b/clone/misc/roommaker.c @@ -56,7 +56,7 @@ void init() int do_mkroom(string arg) { - string file, dir, code; + string file, dir/*, code*/; if( !arg ) return notify_fail("指令格式:mkroom <房间档名> [<方向>]\n"); if( sscanf(arg, "%s %s", file, dir)!=2 ) @@ -174,4 +174,4 @@ int save_room_file(string yn, string file, string str) return notify_fail("你没有写入这个档案(" + file + ")的权利。\n"); } -void owner_is_killed() { destruct(this_object()); } +void owner_is_killed() { destruct(this_object()); } \ No newline at end of file diff --git a/clone/misc/shang-ling.c b/clone/misc/shang-ling.c index eb6281e71..c2d1bc9e8 100644 --- a/clone/misc/shang-ling.c +++ b/clone/misc/shang-ling.c @@ -22,7 +22,7 @@ void init() int do_stock(string arg) { - object obj, me,goods; + object /*obj,*/ me,goods; int amount, value,i; mapping all_goods; string beishu, *args; @@ -105,10 +105,10 @@ int do_stock(string arg) int do_unstock(string arg) { - object obj, me, goods; - int i, amount, value, have_it = 0; + object /*obj,*/ me, goods; + int i/*, amount, value*/, have_it = 0; mapping all_goods; - string *goods_key, beishu; + string *goods_key/*, beishu*/; me = this_player(); @@ -152,4 +152,4 @@ int do_unstock(string arg) int query_autoload() { return 1; -} +} \ No newline at end of file diff --git a/clone/user/chatter.c b/clone/user/chatter.c index a52c18380..e26a20a41 100644 --- a/clone/user/chatter.c +++ b/clone/user/chatter.c @@ -322,7 +322,7 @@ int do_look(string arg) object me = this_object(); object ob; object env; - string msg; +// string msg; string add; string fun; @@ -395,4 +395,4 @@ string short() if (title) str = title + " " + str; return str; -} +} \ No newline at end of file diff --git a/cmds/adm/auth.c b/cmds/adm/auth.c index 1754f8b18..1b5f37526 100644 --- a/cmds/adm/auth.c +++ b/cmds/adm/auth.c @@ -16,7 +16,7 @@ void create() { seteuid(getuid()); } int main(object me, string arg) { - object ob; +// object ob; string msg; string dir; string para; @@ -407,4 +407,3 @@ HELP ); return 1; } - diff --git a/cmds/arch/board.c b/cmds/arch/board.c index 5dd86bb2d..d6bdd55de 100644 --- a/cmds/arch/board.c +++ b/cmds/arch/board.c @@ -10,7 +10,7 @@ int main(object me, string arg) { string *file; string msg; - string board; +// string board; int i, j; if (! SECURITY_D->valid_grant(me, "(arch)")) @@ -43,4 +43,4 @@ int main(object me, string arg) msg += "用 board n 去看你想看的留言板。\n"; write(msg); return 1; -} +} \ No newline at end of file diff --git a/cmds/arch/cleanup.c b/cmds/arch/cleanup.c index 5d6f306af..dd0015c1e 100644 --- a/cmds/arch/cleanup.c +++ b/cmds/arch/cleanup.c @@ -4,7 +4,7 @@ inherit F_CLEAN_UP; int main(object me, string str) { - object ob, where, *ob_list; + object /*ob,where,*/ *ob_list; int old_size, i; if (! SECURITY_D->valid_grant(me, "(arch)")) @@ -33,4 +33,4 @@ int help(object me) 被放在另一个物件中的散失物件。 HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/arch/cmd.c b/cmds/arch/cmd.c index 0472cf190..e2843e14a 100644 --- a/cmds/arch/cmd.c +++ b/cmds/arch/cmd.c @@ -4,7 +4,7 @@ void create() { seteuid(getuid()); } int main(object me, string arg) { - string str; +// string str; object *list; int i, j, threshold; @@ -34,4 +34,4 @@ If a "threshold" is given, only number > threshold will be shown. HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/arch/endlog.c b/cmds/arch/endlog.c index fee2623b4..0bd0ba280 100644 --- a/cmds/arch/endlog.c +++ b/cmds/arch/endlog.c @@ -5,7 +5,7 @@ inherit F_CLEAN_UP; int main(object me, string arg) { - object ob; +// object ob; string wiz_status; if (! SECURITY_D->valid_grant(me, "(arch)")) @@ -38,4 +38,4 @@ int help(object me) HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/arch/examine.c b/cmds/arch/examine.c index 0931579af..214e25c6f 100644 --- a/cmds/arch/examine.c +++ b/cmds/arch/examine.c @@ -15,7 +15,7 @@ public void search_dir(object me, int raw); int main(object me, string arg) { - int i; +// int i; int copy_user; if (! SECURITY_D->valid_grant(me, "(arch)")) @@ -141,7 +141,7 @@ private string examine_player(string name, int copy_user, int raw, int last_touc object user_ob; string result; int day; - int age; +// int age; int online; mixed *st; @@ -359,4 +359,4 @@ write(@HELP HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/arch/log.c b/cmds/arch/log.c index 4afedca48..c587fb997 100644 --- a/cmds/arch/log.c +++ b/cmds/arch/log.c @@ -7,7 +7,7 @@ inherit F_CLEAN_UP; int main(object me, string arg) { - string wiz_status; +// string wiz_status; mapping log; string *ks; object *obs; @@ -107,4 +107,4 @@ int help (object me) HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/arch/overview.c b/cmds/arch/overview.c index 8ce55dbf5..c98772349 100644 --- a/cmds/arch/overview.c +++ b/cmds/arch/overview.c @@ -8,7 +8,7 @@ int main(object me, string arg) { object *ob; int i, m, num; - string msg, *file, str1, str2; + string msg, *file/*, str1, str2*/; msg = ""; file = ({ }); @@ -132,4 +132,4 @@ TEXT ); return 1; -} +} \ No newline at end of file diff --git a/cmds/arch/p2.c b/cmds/arch/p2.c index 4b389e109..f773c6bd3 100644 --- a/cmds/arch/p2.c +++ b/cmds/arch/p2.c @@ -10,9 +10,9 @@ int do_sort_players(int day); int main(object me, string arg) { - string name, reason; - string status; - int day; +// string name,reason; +// string status; +// int day; if (! SECURITY_D->valid_grant(me, "(arch)")) return 0; @@ -29,8 +29,8 @@ int do_sort_players(int day) { int i, j, count, fail, succ; string *dir, *ppls, name; - string sdir, ufile; - mixed info; + string sdir/*, ufile*/; +// mixed info; object login_ob, user_ob; seteuid(getuid()); @@ -92,4 +92,4 @@ int do_sort_players(int day) write("\n总共有 " + count + " 位使用者。\n"); write("为 " + succ + " 个玩家增加了鉴别 ID,另外 " + fail + " 个使用者无法处理。\n"); return 1; -} +} \ No newline at end of file diff --git a/cmds/arch/promote.c b/cmds/arch/promote.c index 10d732e0a..1084108bf 100644 --- a/cmds/arch/promote.c +++ b/cmds/arch/promote.c @@ -7,7 +7,7 @@ int main(object me, string arg) { object ob; string old_status, new_status; - int my_level, ob_level, level; +// int my_level,ob_level,level; if (! SECURITY_D->valid_grant(me, "(arch)")) return 0; @@ -50,4 +50,4 @@ write(@HELP 一个 admin 能提升权限至任何等级,而 arch 只能提升至 arch。 HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/arch/purge.c b/cmds/arch/purge.c index 2cdfe4e23..24a024555 100644 --- a/cmds/arch/purge.c +++ b/cmds/arch/purge.c @@ -11,7 +11,7 @@ private int do_purge_players(int day); int main(object me, string arg) { string name, reason; - int day; +// int day; object ob; if (! SECURITY_D->valid_grant(me, "(arch)")) @@ -53,4 +53,4 @@ write(@HELP 清除一个使用者或清除超过一定天数不曾上线地使用者。 HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/arch/qdel.c b/cmds/arch/qdel.c index d7c5713c8..af6ff1343 100644 --- a/cmds/arch/qdel.c +++ b/cmds/arch/qdel.c @@ -8,7 +8,7 @@ inherit F_CLEAN_UP; int main(object me, string arg) { mapping total; - object *obs, *dst; + object *obs/*, *dst*/; object qob; seteuid(getuid()); @@ -68,4 +68,4 @@ int help(object me) HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/arch/sameip.c b/cmds/arch/sameip.c index 19e69cb2b..1f3fc0b39 100644 --- a/cmds/arch/sameip.c +++ b/cmds/arch/sameip.c @@ -11,9 +11,9 @@ STATIC_VAR_TAG object run_user = 0; int main(object me, string arg) { - object who, ob; - int i, j, count; - string *dir, *ppls; + object who/*, ob*/; + int i/*, j*/, count; + string *dir/*, *ppls*/; string name, address; string *result; @@ -71,7 +71,7 @@ void search_dir(int count, string *dir, int i, string address, object me, string { object ob; int j; - string *ppls, name, str, adr, s1, s2, s3, s4; + string *ppls/*, name*/, str, adr/*, s1, s2, s3, s4*/; string info; if (! objectp(me)) @@ -165,4 +165,4 @@ write(@HELP HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/arch/status1.c b/cmds/arch/status1.c index 277adc205..310f2264a 100644 --- a/cmds/arch/status1.c +++ b/cmds/arch/status1.c @@ -1,4 +1,3 @@ - // status.c // Smallfish@Huaxia @@ -26,11 +25,11 @@ int stat_fun(mapping st, object ob) int main(object me, string arg) { - object ob; +// object ob; string msg; mixed lt; mapping st; - string bn; +// string bn; string *ks; object *obs; int i; @@ -93,4 +92,4 @@ int help(object me) 利用此指令可得知有关系统的信息。 HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/chat/command.c b/cmds/chat/command.c index dde97ea36..af662d1f6 100644 --- a/cmds/chat/command.c +++ b/cmds/chat/command.c @@ -7,7 +7,7 @@ inherit F_CLEAN_UP; int main(object me, mapping info) { - string msg; +// string msg; seteuid(geteuid()); if (! is_root(previous_object())) @@ -26,4 +26,3 @@ int main(object me, mapping info) return 1; } - diff --git a/cmds/chat/setenv.c b/cmds/chat/setenv.c index a9aa59837..38b2211d1 100644 --- a/cmds/chat/setenv.c +++ b/cmds/chat/setenv.c @@ -14,7 +14,7 @@ int main(object user, mapping info) string index; string val; int result; - int made = 0; +// int made = 0; string *chg = ({ }); seteuid(getuid()); @@ -61,4 +61,3 @@ int main(object user, mapping info) return result; } - diff --git a/cmds/imm/flyto.c b/cmds/imm/flyto.c index 8219e2c74..f1fc41b7f 100644 --- a/cmds/imm/flyto.c +++ b/cmds/imm/flyto.c @@ -7,9 +7,9 @@ inherit F_CLEAN_UP; int main(object me, string arg) { - string home; +// string home; object obj; - string msg; +// string msg; if (! SECURITY_D->valid_grant(me, "(immortal)")) return 0; @@ -55,4 +55,4 @@ int help(object me) 指令格式 : flyto <目标> HELP); return 1; -} +} \ No newline at end of file diff --git a/cmds/imm/rnemote.c b/cmds/imm/rnemote.c index 87fa9d20b..a42c74f9a 100644 --- a/cmds/imm/rnemote.c +++ b/cmds/imm/rnemote.c @@ -10,8 +10,8 @@ int main(object me, string arg) string from, to; mapping emote; mapping toemote; - int i; - string *ks; +// int i; +// string *ks; if (! present("emote editor", me) && ! SECURITY_D->valid_grant(me, "(immortal)")) @@ -53,4 +53,3 @@ int help(object me) HELP ); return 1; } - diff --git a/cmds/skill/animaout.c b/cmds/skill/animaout.c index 0f818c18b..14a7d8ea6 100644 --- a/cmds/skill/animaout.c +++ b/cmds/skill/animaout.c @@ -11,7 +11,7 @@ void create() { seteuid(getuid()); } int main(object me, string arg) { - int exercise_cost; +// int exercise_cost; object where; seteuid(getuid()); @@ -182,4 +182,4 @@ int help(object me) HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/skill/breakup.c b/cmds/skill/breakup.c index 1f1626af1..6aece42b2 100644 --- a/cmds/skill/breakup.c +++ b/cmds/skill/breakup.c @@ -11,7 +11,7 @@ void create() { seteuid(getuid()); } int main(object me, string arg) { - int exercise_cost; +// int exercise_cost; object where; seteuid(getuid()); @@ -196,4 +196,4 @@ int help(object me) HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/skill/closed.c b/cmds/skill/closed.c index 4cd07a702..afa7ecae2 100644 --- a/cmds/skill/closed.c +++ b/cmds/skill/closed.c @@ -14,7 +14,7 @@ void create() { seteuid(getuid()); } int main(object me, string arg) { - int exercise_cost; +// int exercise_cost; object where; seteuid(getuid()); @@ -202,4 +202,3 @@ int help(object me) HELP ); return 1; } - diff --git a/cmds/skill/death.c b/cmds/skill/death.c index 83337234d..2cab6b6ff 100644 --- a/cmds/skill/death.c +++ b/cmds/skill/death.c @@ -11,7 +11,7 @@ void create() { seteuid(getuid()); } int main(object me, string arg) { - int exercise_cost; +// int exercise_cost; object where; seteuid(getuid()); diff --git a/cmds/skill/expell.c b/cmds/skill/expell.c index 9750de5f4..214ea9a43 100644 --- a/cmds/skill/expell.c +++ b/cmds/skill/expell.c @@ -9,9 +9,9 @@ void create() { seteuid(getuid()); } int main(object me, string arg) { object ob; - string *skname; - mapping skills; - int i; +// string *skname; +// mapping skills; +// int i; if( !arg || !ob = present(arg, environment(me)) ) return notify_fail("你要将谁逐出师门?\n"); @@ -62,4 +62,4 @@ int help(object me) HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/skill/jingxiu.c b/cmds/skill/jingxiu.c index d9c8779a2..cd0e54bbc 100644 --- a/cmds/skill/jingxiu.c +++ b/cmds/skill/jingxiu.c @@ -6,7 +6,7 @@ inherit F_CLEAN_UP; int main(object me, string arg) { - mapping fam; +// mapping fam; object where = environment(me); seteuid(getuid()); @@ -59,4 +59,4 @@ int help(object me) HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/skill/jingzuo.c b/cmds/skill/jingzuo.c index 5451611eb..8659451bd 100644 --- a/cmds/skill/jingzuo.c +++ b/cmds/skill/jingzuo.c @@ -6,7 +6,7 @@ void del_jingzuoed(object me); int main(object me, string arg) { - mapping fam; +// mapping fam; object where = environment(me); seteuid(getuid()); @@ -89,4 +89,4 @@ int help(object me) HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/skill/persuade.c b/cmds/skill/persuade.c index ac6329c6e..79b8de25c 100644 --- a/cmds/skill/persuade.c +++ b/cmds/skill/persuade.c @@ -6,7 +6,7 @@ inherit F_CLEAN_UP; int main(object me, string arg) { - string what, who; + string /*what,*/ who; object ob, victim; mapping myfam, vtfam; int sp, dp; @@ -72,9 +72,9 @@ int main(object me, string arg) private void compelete_dushi(object me, object victim, object ob, int sp, int dp) { - int amount; - object ob1; - object where = environment(me); +// int amount; +// object ob1; +// object where = environment(me); if (objectp(me)) me->delete_temp("dushi"); @@ -127,4 +127,4 @@ write(@HELP HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/skill/spattack.c b/cmds/skill/spattack.c index ef6edb19f..200ca6c3e 100644 --- a/cmds/skill/spattack.c +++ b/cmds/skill/spattack.c @@ -163,7 +163,7 @@ void do_here_fight(object me, object couple, object target, int n) { int need, cost; int enhance1, enhance2, count; - string msg; +// string msg; if (n > 500) n = 500; need = 300 - n / 2; @@ -227,4 +227,4 @@ int help (object me) 内功等级相关。 HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/std/beg.c b/cmds/std/beg.c index 5a156924d..eb845e42a 100644 --- a/cmds/std/beg.c +++ b/cmds/std/beg.c @@ -9,7 +9,7 @@ int main(object me, string arg) object ob, victim; int sp, dp; - object where = environment(me); +// object where = environment(me); seteuid(getuid()); @@ -165,4 +165,4 @@ write(@HELP 如果你是叫花子,可以用这个命令来乞讨点钱。 HELP); return 1; -} +} \ No newline at end of file diff --git a/cmds/std/fill.c b/cmds/std/fill.c index 2ead1343a..59404251a 100644 --- a/cmds/std/fill.c +++ b/cmds/std/fill.c @@ -6,9 +6,9 @@ void create() { seteuid(getuid()); } int main(object me, string arg) { - mapping my; + mapping my; object ob; - function f; + // function f; if (! arg) return notify_fail("你要往什么东西里面灌?\n"); @@ -19,14 +19,14 @@ int main(object me, string arg) if (me->is_busy()) return notify_fail("你上一个动作还没有完成。\n"); - if (me->is_fighting()) - return notify_fail("你正忙着打架,没工夫装水!\n"); + if (me->is_fighting()) + return notify_fail("你正忙着打架,没工夫装水!\n"); if (! objectp(ob = present(arg, me))) return notify_fail("你身上没有这样东西。\n"); - if (! mapp(my = ob->query("liquid"))) - return notify_fail("这个容器装不了水。\n"); + if (! mapp(my = ob->query("liquid"))) + return notify_fail("这个容器装不了水。\n"); if (my["remaining"] && my["name"] != "清水") message_vision("$N将" + ob->name() + "里剩下的" + @@ -46,11 +46,10 @@ int help(object me) { write(@HELP 指令格式 : fill <容器> - + 这个指令可以让有水的地方把容器灌满清水。 - + HELP ); return 1; } - \ No newline at end of file diff --git a/cmds/std/guard.c b/cmds/std/guard.c index e982fc8a6..d7542530f 100644 --- a/cmds/std/guard.c +++ b/cmds/std/guard.c @@ -28,7 +28,7 @@ mapping default_dirs = ([ int main(object me, string arg) { - string dir; +// string dir; object ob, *guards; object env; mixed old_target; @@ -181,4 +181,4 @@ int help(object me) 解除守卫状态。 TEXT); return 1; -} +} \ No newline at end of file diff --git a/cmds/std/look2.c b/cmds/std/look2.c index 8f085c27a..afb1b0c9d 100644 --- a/cmds/std/look2.c +++ b/cmds/std/look2.c @@ -428,7 +428,7 @@ int look_item(object me, object obj) mapping count; mapping equiped; mapping unit; - mapping *inset; +// mapping *inset; string short_name; string str; @@ -444,7 +444,7 @@ int look_item(object me, object obj) string *apply3; int i; int f; - int n; +// int n; count = ([]); unit = ([]); @@ -779,11 +779,11 @@ string description(object obj) int look_living(object me, object obj) { int per; - int spi; +// int spi; int age; - int weight; - string str, limb_status, pro, desc; - mixed *inv; +// int weight; + string str/*, limb_status*/, pro, desc; +// mixed *inv; mapping my_fam, fam; int me_shen, obj_shen; string league_name; diff --git a/cmds/std/search.c b/cmds/std/search.c index db416b3fc..6618d5498 100644 --- a/cmds/std/search.c +++ b/cmds/std/search.c @@ -114,7 +114,7 @@ object found(object me, object env) mapping cs, ns; mapping os; object ob; - mixed sob; +// mixed sob; int sum; int i; @@ -306,4 +306,4 @@ int help (object me) HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/std/steal.c b/cmds/std/steal.c index 65a3c3368..97c2f4f6c 100644 --- a/cmds/std/steal.c +++ b/cmds/std/steal.c @@ -8,7 +8,7 @@ int main(object me, string arg) string what, who; object env; object ob, victim; - mapping myfam, vtfam; + mapping myfam/*, vtfam*/; int sp, dp; env = environment(me); @@ -92,7 +92,7 @@ int main(object me, string arg) void compelete_steal(object me, object victim, object ob, int sp, int dp) { - mapping myfam, vtfam; +// mapping myfam,vtfam; int steal_level; if (! objectp(me)) @@ -215,4 +215,3 @@ int help(object me) HELP ); return 1; } - diff --git a/cmds/std/stop.c b/cmds/std/stop.c index 4965851be..5979385c6 100644 --- a/cmds/std/stop.c +++ b/cmds/std/stop.c @@ -7,7 +7,7 @@ inherit F_CLEAN_UP; int main(object me, string arg) { object ob; - int cost, i = 0; +// int cost,i = 0; seteuid(getuid()); @@ -45,4 +45,4 @@ int help(object me) HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/std/swear.c b/cmds/std/swear.c index 300221d1a..fdd36d547 100644 --- a/cmds/std/swear.c +++ b/cmds/std/swear.c @@ -278,7 +278,7 @@ int do_right(object me, object ob) int do_refuse(object me, object ob) { object *t; - string msg; +// string msg; if (! ob || environment(ob) != environment(me)) return notify_fail("可惜啊,人家已经不在这儿了。\n"); @@ -300,4 +300,4 @@ int do_refuse(object me, object ob) message("vision", YEL + me->name(1) + "拒绝了" + ob->name(1) + "的结义提议。\n" NOR, t, me); return 1; -} +} \ No newline at end of file diff --git a/cmds/std/team/swear.c b/cmds/std/team/swear.c index 89d4d4321..ca6cc7327 100644 --- a/cmds/std/team/swear.c +++ b/cmds/std/team/swear.c @@ -278,7 +278,7 @@ int do_right(object me, object ob) int do_refuse(object me, object ob) { object *t; - string msg; +// string msg; if (! ob || environment(ob) != environment(me)) return notify_fail("可惜啊,人家已经不在这儿了。\n"); @@ -300,4 +300,4 @@ int do_refuse(object me, object ob) message("vision", YEL + me->name(1) + "拒绝了" + ob->name(1) + "的结义提议。\n" NOR, t, me); return 1; -} +} \ No newline at end of file diff --git a/cmds/std/tell.c b/cmds/std/tell.c index 747c90328..4643fee37 100644 --- a/cmds/std/tell.c +++ b/cmds/std/tell.c @@ -90,8 +90,8 @@ string remote_tell(string cname, string from, string mud, string to, string msg, string fromid; string no_tell; string can_tell; - mapping conn; - string reject; +// mapping conn; +// string reject; string tell_out; if (ob = MESSAGE_D->find_user(to)) @@ -231,4 +231,4 @@ int help(object me) 其他相关指令:reply、skip HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/std/touxi.c b/cmds/std/touxi.c index 24c582014..d1af31e73 100644 --- a/cmds/std/touxi.c +++ b/cmds/std/touxi.c @@ -7,7 +7,7 @@ int main(object me, string arg) { object obj; - int skill, count; + int /*skill,*/ count; if (environment(me)->query("no_fight")) return notify_fail("这里禁止战斗。\n"); @@ -98,4 +98,4 @@ int help(object me) 其他相关指令: fight, kill, hit HELP); return 1; -} +} \ No newline at end of file diff --git a/cmds/std/train.c b/cmds/std/train.c index d2c5c61a8..5a423800a 100644 --- a/cmds/std/train.c +++ b/cmds/std/train.c @@ -6,10 +6,10 @@ inherit F_CLEAN_UP; int main(object me, string arg) { - object ob,where; - mapping fam; + object ob/*,where*/; +// mapping fam; int sp, dp; - int i, cost, train_level; + int /*i,*/ cost, train_level; seteuid(getuid()); @@ -114,4 +114,4 @@ int help(object me) HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/std/vote/unchblk.c b/cmds/std/vote/unchblk.c index 4a86d662a..264963001 100644 --- a/cmds/std/vote/unchblk.c +++ b/cmds/std/vote/unchblk.c @@ -13,7 +13,7 @@ int vote(object me, object victim) int vv; // valid voter numbers int vc; // vote count; int df; - string channel; +// string channel; string *juser, *jip, my_id, my_ip; string my_name, v_name; @@ -97,4 +97,4 @@ int vote(object me, object victim) victim->delete("chblk_on"); return 1; -} +} \ No newline at end of file diff --git a/cmds/std/wash.c b/cmds/std/wash.c index 3d8568da6..13d73c157 100644 --- a/cmds/std/wash.c +++ b/cmds/std/wash.c @@ -80,7 +80,7 @@ int main(object me, string arg) if (dest->query("equipped") == "worn") { - function f; + // function f; if (! REMOVE_CMD->do_remove(me, dest)) return 0; diff --git a/cmds/std/watch.c b/cmds/std/watch.c index dfa3fdbbc..75944e2c8 100644 --- a/cmds/std/watch.c +++ b/cmds/std/watch.c @@ -93,10 +93,10 @@ int look_item(object me, object obj) int look_living(object me, object obj) { int per; - int spi; +// int spi; int age; - int weight; - string str, limb_status, pro; +// int weight; + string str/*, limb_status*/, pro; mixed *inv; mapping my_fam, fam; int me_shen, obj_shen; @@ -277,4 +277,3 @@ HELP ); return 1; } - diff --git a/cmds/usr/accede.c b/cmds/usr/accede.c index 082e56640..e7fabe56e 100644 --- a/cmds/usr/accede.c +++ b/cmds/usr/accede.c @@ -7,7 +7,7 @@ inherit F_CLEAN_UP; int main(object me, string arg) { object ob; - mapping q; +// mapping q; string type; while (arg) @@ -75,4 +75,4 @@ int help(object me) 这个指令可以让你应酬某些人对你提出的要求。 HELP); return 1; -} +} \ No newline at end of file diff --git a/cmds/usr/assist.c b/cmds/usr/assist.c index bb6f39ee0..c6c34d867 100644 --- a/cmds/usr/assist.c +++ b/cmds/usr/assist.c @@ -10,8 +10,8 @@ int main(object me, string arg) { object ob; object *team; - object *assistors; - mapping q; +// object *assistors; +// mapping q; if (! arg) { @@ -178,7 +178,7 @@ int do_right(object me, object ob) // 拒绝对方加入 int do_refuse(object me, object ob) { - object *ob_team; +// object *ob_team; if (ob->query_temp("pending/assist") != me) { @@ -204,4 +204,4 @@ int help(object me) 在另外一个队伍中并且不是队长)。 HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/usr/bug.c b/cmds/usr/bug.c index 7d539eb7a..3cf01359d 100644 --- a/cmds/usr/bug.c +++ b/cmds/usr/bug.c @@ -8,8 +8,8 @@ int main(object me, string arg) { object ob; - string sp, add; - int bug, bugp; + string sp/*, add*/; + int bug/*, bugp*/; seteuid(getuid(me)); @@ -131,4 +131,3 @@ int help(object me) HELP); return 1; } - diff --git a/cmds/usr/passwd.c b/cmds/usr/passwd.c index 2d49ea062..325f4a54a 100644 --- a/cmds/usr/passwd.c +++ b/cmds/usr/passwd.c @@ -180,9 +180,9 @@ private void get_new_pass(string pass, object ob) private void confirm_new_pass(string pass, object ob, string new_pass) { object me; - object body; - string email; - string msg; +// object body; +// string email; +// string msg; if (! objectp(ob)) { @@ -258,9 +258,9 @@ private void get_new_ad_pass(string pass, object ob) private void confirm_new_ad_pass(string pass, object ob, string new_pass) { object me; - object body; - string email; - string msg; +// object body; +// string email; +// string msg; if (! objectp(ob)) { @@ -347,4 +347,4 @@ int help(object me) HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/usr/score2.c b/cmds/usr/score2.c index 51979b5cb..6fd37b5db 100644 --- a/cmds/usr/score2.c +++ b/cmds/usr/score2.c @@ -1,501 +1,500 @@ -// score.c -// Update by Vin for heros.cn - -#include -#include - -inherit F_CLEAN_UP; - -string display_attr(int gift, int value); -string status_color(int current, int max); -string date_string(int date); - -mapping oprank = ([ - "宗师" : HIW "宗师境界 ", - "登峰造极" : HIY "★★★★☆", - "超凡脱俗" : HIY "★★★★ ", - "臻至化境" : HIR "★★★☆ ", - "炉火纯青" : HIR "★★★ ", - "已有大成" : HIC "★★☆ ", - "非同凡响" : HIC "★★ ", - "出类拔萃" : HIG "★☆ ", - "身手不凡" : HIG "★ ", - "已有小成" : HIM "☆ ", -]); - -void create() { seteuid(ROOT_UID); } - -int main(object me, string arg) -{ - object ob; - mapping my; - mapping mci; - int age, rmb, month; - string line, str, race, skill_type; - object weapon; - int attack_points, dodge_points, parry_points; - - seteuid(getuid(me)); - - if (! arg) - ob = me; - - else if (wizardp(me)&& SECURITY_D->valid_grant(me, "(wizard)")) - { - ob = present(arg, environment(me)); - if (! ob || ! ob->is_character()) ob = find_player(arg); - if (! ob || ! ob->is_character()) ob = find_living(arg); - if (! ob || ! ob->is_character()) - return notify_fail("你要察看谁的状态?\n"); - } else - return notify_fail("只有天神能察看别人的状态。\n"); - my = ob->query_entire_dbase(); - mci = my["combat"]; - if (! mci) mci = ([ ]); - - if (playerp(ob) && (! stringp(my["born"]) || ! my["born"])) - return notify_fail("还没有出生呐,察看什么?\n"); - - if (my["max_jing"] < 1 || my["max_qi"] < 1) - return notify_fail("无法察看" + ob->name(1) + "的状态。\n"); - - line = (ob == me ? "你" : ob->name()) + "的状态属性如下:\n"; - line += HIC "≡" HIY "──────────────────────────" HIC "≡\n" NOR; - line += sprintf( BOLD " %s" NOR "%s\n", RANK_D->query_rank(ob), ob->short(1) ); - - if (playerp(ob)) - { - line += CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR"\n" NOR; - age = ob->query("age"); - month = ob->query("mud_age"); - - if (age >= 60) - { - month -= (age - 60) * 86400 * 4; - month = (month - 118 * 86400) / 7200 / 4 + 1; - } else - if (age >= 30) - { - month -= (age - 30) * 86400 * 3; - month = (month - 28 * 86400) / 7200 / 3 + 1; - } else - if (age >= 18) - { - month -= (age - 18) * 86400 * 2; - month = (month - 4 * 86400) / 7200 / 2 + 1; - } else - { - month -= (age - 14) * 86400; - month = month / 7200 + 1; - } - - if (month > 12 || month < 1) - month = 1; - - if (ob->query("gender") == "无性") - race = "阉人"; - else - race = ob->query("gender"); - - line += sprintf(WHT " 你是%s%s岁%s个月的" + race + ",%s生。\n", - ob->query("unit"), - chinese_number(age), - chinese_number(month), - //CHINESE_D->chinese_date(((int)ob->query("birthday") - 7358400) * 60)); - //生日修正为和游戏中time指令显示的时间统一 - CHINESE_D->chinese_date((((int)ob->query("birthday")- 971000000) % 86400) * 365, - ((int)ob->query("birthday")- 971000000) / 86400)); - } - - else - line += sprintf(WHT " 这是一%s%s岁的%s%s,%s生。\n", - ob->query("unit"), - chinese_number(ob->query("age")), - ob->query("gender"), - ob->query("race"), - CHINESE_D->chinese_date(((int)ob->query("birthday") - 7358400) * 60)); - - line += sprintf(WHT " 膂力:[%s] 悟性:[%s] 根骨:[%s] 身法:[%s]\n", - display_attr(my["str"], ob->query_str()) + WHT, - display_attr(my["int"], ob->query_int()) + WHT, - display_attr(my["con"], ob->query_con()) + WHT, - display_attr(my["dex"], ob->query_dex()) + WHT); - - if (playerp(ob)) - { - if (my["born_family"] && my["born_family"] != "没有") - { - line += HIW " 你出生在" + my["born_family"] + - ",天性" + my["character"]; - } else - if (stringp(my["born"]) && my["born"]) - { - line += HIW " 你是" + my["born"] + - ",天性" + my["character"]; - } else - line += HIW " 你尚未出生"; - - if (mapp(my["family"])) { - if (my["family"]["master_name"]) - line += sprintf(",师父是%s。\n" NOR, - my["family"]["master_name"]); - else - line += ",还没有师父。\n" NOR; - } else - line += ",还没有拜师。\n" NOR; - - rmb = ob->query("TASK", 1); - - /* if ((int)ob->query("TASK") > 0) - line += HIY " 你目前完成[天下无敌使命]:共" + chinese_number(rmb) + "个。\n" NOR; */ - - if ((int)ob->query("balance") > 0) - line += HIY " 你目前的存款:" + MONEY_D->money_str((int)ob->query("balance")) + "。\n" NOR; - else - line += HIY " 你目前没有存款。\n" NOR; - - if (ob->query("gender") != "无性") - { - if (! ob->query("couple/name")) - { - if (ob->query("gender") == "女性") - line += HIC " 你尚未婚配。\n" NOR; - else - line += HIC " 你尚未娶妻。\n" NOR; - } else - line += HIC " 你的伴侣是" + ob->query("couple/name") + "(" + - ob->query("couple/id") + ")。\n" NOR; - - if (! (int)ob->query("sex/times")) - { - if (ob->query("gender") == "女性") - line += HIG " 你还是处女。\n" NOR; - else - line += HIC " 你还是童男。\n" NOR; - } else - { - string *ks; - - ks = keys(ob->query("sex")); - ks -= ({ "times", "first", "" }); - if (sizeof(ks) >= 10) - line += HIW " 你曾经和数不清的人发生过关系,结果" - "连自己都忘了有谁了。\n" NOR; - else - line += HIW " 你曾经和" + implode(ks, HIW "、") + - HIW "发生过关系。\n" NOR; - } - - } - } - - if (objectp(weapon = ob->query_temp("weapon"))) - { - skill_type = weapon->query("skill_type"); - attack_points = COMBAT_D->skill_power(ob, skill_type, SKILL_USAGE_ATTACK); - } else - { - mapping prepare; - string *sk; - - prepare = me->query_skill_prepare(); - - if (! prepare) prepare = ([]); - sk = keys(prepare); - - if (sizeof(sk) == 0) - skill_type = "unarmed"; - else - skill_type = sk[0]; - - attack_points = COMBAT_D->skill_power(ob, skill_type, SKILL_USAGE_ATTACK); - - if (sizeof(prepare) == 2) - { - int temp; - temp = COMBAT_D->skill_power(ob, sk[1], SKILL_USAGE_ATTACK); - if (attack_points < temp) attack_points = temp; - } - } - - parry_points = COMBAT_D->skill_power(ob, "parry", SKILL_USAGE_DEFENSE); - dodge_points = COMBAT_D->skill_power(ob, "dodge", SKILL_USAGE_DEFENSE); - - //if (wizardp(me)) - if (playerp(ob)) - - { - line += CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR"\n" NOR; - line += sprintf(WHT " 战斗攻击: " HIW "%8d" NOR WHT "\t\t 战斗防御: " HIW "%8d\n" NOR, - attack_points/100 + 1, (dodge_points + (weapon? parry_points: (parry_points/10)))/100 + 1,); - line += sprintf(WHT " 战斗伤害: " HIW "%8d" NOR WHT "\t\t 战斗保护: " HIW "%8d\n" NOR, - weapon ? ob->query_temp("apply/damage") - : ob->query_temp("apply/unarmed_damage"), - ob->query_temp("apply/armor")); -} - - if (playerp(ob)) - { - line += CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR"\n" NOR; - if (! ((int)mci["MKS"] + (int)mci["PKS"])) - { - line += HIY " 你到目前为止尚未开杀戒。\n"; - } else - { - line += sprintf(HIR " 你到目前为止总共杀生%s次。\n", - chinese_number(mci["MKS"] + mci["PKS"])); - - if ((int)mci["PKS"]) - { - line += " 其中有" + chinese_number(mci["PKS"]) + - "次是玩家,"; - - if ((int)mci["WPK"] >= (int)mci["PKS"]) - { - mci["WPK"] = (int)mci["PKS"]; - line += "他们都是你有意杀害的。\n"; - } else - if ((int)mci["WPK"]) - { - line += chinese_number(mci["WPK"]) + - "次是你有意杀害的。\n"; - } else - line += "但他们全都是你无心杀害的。\n"; - } - } - } - - if ((int)mci["dietimes"]) - { - line += sprintf(HIR " 你到目前为止总共到黑白无常那里串" - "门%s次。\n" NOR, chinese_number(mci["dietimes"])); - - if (stringp(mci["last_die"])) - line += sprintf(HIR " 你最后一次是%s。\n" NOR, - mci["last_die"]); - } else - if (playerp(ob)) - - line += HIC "\n 你到目前为止尚无死亡记录。\n" NOR; - - while (playerp(ob)) - { - string op; - - line += CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR"\n" NOR; - line += HIY " 任督二脉: " NOR; - if (my["breakup"]) - line += HIC "○" NOR; - else - line += HIR "×" NOR; - - line += HIY " 元婴出世: " NOR; - if (my["animaout"]) - line += HIC "○" NOR; - else - line += HIR "×" NOR; - - line += HIY "\n 生死玄关: " NOR; - if (my["death"]) - line += HIC "○" NOR; - else - line += HIR "×" NOR; - - line += HIY " 转世重生: " NOR; - if (my["reborn"]) - line += HIC "○" NOR; - else - line += HIR "×" NOR; - - line += CYN"\n-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR"\n" NOR; - break; - } - while (playerp(ob)) - { - string op; - - line += HIW " 镇狱惊天丸: " NOR; - if (ob->query("skybook/item/zhenyu")) - line += HIG "○" NOR; - else - line += HIB "×" NOR; - - line += HIW " 子午龙甲丹: " NOR; - if (ob->query("skybook/item/longjia")) - line += HIG "○" NOR; - else - line += HIB "×" NOR; - - line += HIW "\n 玄黄紫箐丹: " NOR; - if (ob->query("skybook/item/xuanhuang")) - line += HIG "○" NOR; - else - line += HIB "×" NOR; - - - line += CYN"\n-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR"\n" NOR; - break; - } - - while (playerp(ob)) - { - string op; - if (ultrap(ob)) - { - line += HIC " 你现在已经成为武学大宗师。\n\n" NOR; - break; - } - - line += WHT " 拳脚功夫: " NOR; - if (op = ob->query("opinion/unarmed")) - line += oprank[op] + " "; - else - line += CYN "无评价 "; - - line += NOR WHT " 兵器运用: " NOR; - if (op = ob->query("opinion/weapon")) - line += oprank[op] + " "; - else - line += CYN "无评价"; - - line += NOR WHT "\n 内家功夫: " NOR; - if (op = ob->query("opinion/force")) - line += oprank[op] + " "; - else - line += CYN "无评价 "; - - line += NOR WHT " 轻身功夫: " NOR; - if (op = ob->query("opinion/dodge")) - line += oprank[op] + " "; - else - line += CYN "无评价"; - - line += CYN"\n-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR - +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR"\n" NOR; - break; - } - - line += sprintf(NOR + WHT " 实战经验: " HIW "%8d\t\t" NOR, my["combat_exp"]); - line += sprintf(WHT " 门派贡献: " HIW "%8d\n" NOR, my["gongxian"]); - - if (playerp(ob)) - { - line += sprintf(WHT " 江湖阅历: " HIC "%8d\t\t" NOR, my["score"]); - line += sprintf(WHT " 江湖威望: " HIC "%8d\n" NOR, my["weiwang"]); - } - - if (my["shen"] >= 0) - line += sprintf(WHT " 正 气: " HIY "%8d\t\t" NOR, my["shen"]); - else - line += sprintf(WHT " 邪 气: " HIR "%8d\t\t" NOR, -ob->query("shen")); - - line += sprintf(WHT " 灵 慧: %s%8d\n" NOR, - my["magic_points"] < 100 ? HIY : HIM, - (my["magic_points"] - my["magic_learned"])); - - line += HIC "≡" HIY "──────────────────────YHWH──" HIC "≡\n" NOR; - write(line); - return 1; -} - -string display_attr(int gift, int value) -{ - if (value > gift) - return sprintf(HIY "%3d" NOR, value); - else - if (value < gift) - return sprintf(CYN "%3d" NOR, value); - else - return sprintf("%3d", value); -} - -string status_color(int current, int max) -{ - int percent; - - if (max) percent = current * 100 / max; - else percent = 100; - - if (percent > 100) return HIC; - if (percent >= 90) return HIG; - if (percent >= 60) return HIY; - if (percent >= 30) return YEL; - if (percent >= 10) return HIR; - return RED; -} - -int help(object me) -{ - write(@HELP -指令格式: score - score <对象名称> (巫师专用) - -这个指令可以显示你或指定对象的基本资料。 -相关指令:查看状态(hp) - -HELP); - return 1; -} - +// score.c +// Update by Vin for heros.cn + +#include +#include + +inherit F_CLEAN_UP; + +string display_attr(int gift, int value); +string status_color(int current, int max); +string date_string(int date); + +mapping oprank = ([ + "宗师" : HIW "宗师境界 ", + "登峰造极" : HIY "★★★★☆", + "超凡脱俗" : HIY "★★★★ ", + "臻至化境" : HIR "★★★☆ ", + "炉火纯青" : HIR "★★★ ", + "已有大成" : HIC "★★☆ ", + "非同凡响" : HIC "★★ ", + "出类拔萃" : HIG "★☆ ", + "身手不凡" : HIG "★ ", + "已有小成" : HIM "☆ ", +]); + +void create() { seteuid(ROOT_UID); } + +int main(object me, string arg) +{ + object ob; + mapping my; + mapping mci; + int age, rmb, month; + string line/*, str*/, race, skill_type; + object weapon; + int attack_points, dodge_points, parry_points; + + seteuid(getuid(me)); + + if (! arg) + ob = me; + + else if (wizardp(me)&& SECURITY_D->valid_grant(me, "(wizard)")) + { + ob = present(arg, environment(me)); + if (! ob || ! ob->is_character()) ob = find_player(arg); + if (! ob || ! ob->is_character()) ob = find_living(arg); + if (! ob || ! ob->is_character()) + return notify_fail("你要察看谁的状态?\n"); + } else + return notify_fail("只有天神能察看别人的状态。\n"); + my = ob->query_entire_dbase(); + mci = my["combat"]; + if (! mci) mci = ([ ]); + + if (playerp(ob) && (! stringp(my["born"]) || ! my["born"])) + return notify_fail("还没有出生呐,察看什么?\n"); + + if (my["max_jing"] < 1 || my["max_qi"] < 1) + return notify_fail("无法察看" + ob->name(1) + "的状态。\n"); + + line = (ob == me ? "你" : ob->name()) + "的状态属性如下:\n"; + line += HIC "≡" HIY "──────────────────────────" HIC "≡\n" NOR; + line += sprintf( BOLD " %s" NOR "%s\n", RANK_D->query_rank(ob), ob->short(1) ); + + if (playerp(ob)) + { + line += CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR"\n" NOR; + age = ob->query("age"); + month = ob->query("mud_age"); + + if (age >= 60) + { + month -= (age - 60) * 86400 * 4; + month = (month - 118 * 86400) / 7200 / 4 + 1; + } else + if (age >= 30) + { + month -= (age - 30) * 86400 * 3; + month = (month - 28 * 86400) / 7200 / 3 + 1; + } else + if (age >= 18) + { + month -= (age - 18) * 86400 * 2; + month = (month - 4 * 86400) / 7200 / 2 + 1; + } else + { + month -= (age - 14) * 86400; + month = month / 7200 + 1; + } + + if (month > 12 || month < 1) + month = 1; + + if (ob->query("gender") == "无性") + race = "阉人"; + else + race = ob->query("gender"); + + line += sprintf(WHT " 你是%s%s岁%s个月的" + race + ",%s生。\n", + ob->query("unit"), + chinese_number(age), + chinese_number(month), + //CHINESE_D->chinese_date(((int)ob->query("birthday") - 7358400) * 60)); + //生日修正为和游戏中time指令显示的时间统一 + CHINESE_D->chinese_date((((int)ob->query("birthday")- 971000000) % 86400) * 365, + ((int)ob->query("birthday")- 971000000) / 86400)); + } + + else + line += sprintf(WHT " 这是一%s%s岁的%s%s,%s生。\n", + ob->query("unit"), + chinese_number(ob->query("age")), + ob->query("gender"), + ob->query("race"), + CHINESE_D->chinese_date(((int)ob->query("birthday") - 7358400) * 60)); + + line += sprintf(WHT " 膂力:[%s] 悟性:[%s] 根骨:[%s] 身法:[%s]\n", + display_attr(my["str"], ob->query_str()) + WHT, + display_attr(my["int"], ob->query_int()) + WHT, + display_attr(my["con"], ob->query_con()) + WHT, + display_attr(my["dex"], ob->query_dex()) + WHT); + + if (playerp(ob)) + { + if (my["born_family"] && my["born_family"] != "没有") + { + line += HIW " 你出生在" + my["born_family"] + + ",天性" + my["character"]; + } else + if (stringp(my["born"]) && my["born"]) + { + line += HIW " 你是" + my["born"] + + ",天性" + my["character"]; + } else + line += HIW " 你尚未出生"; + + if (mapp(my["family"])) { + if (my["family"]["master_name"]) + line += sprintf(",师父是%s。\n" NOR, + my["family"]["master_name"]); + else + line += ",还没有师父。\n" NOR; + } else + line += ",还没有拜师。\n" NOR; + + rmb = ob->query("TASK", 1); + + /* if ((int)ob->query("TASK") > 0) + line += HIY " 你目前完成[天下无敌使命]:共" + chinese_number(rmb) + "个。\n" NOR; */ + + if ((int)ob->query("balance") > 0) + line += HIY " 你目前的存款:" + MONEY_D->money_str((int)ob->query("balance")) + "。\n" NOR; + else + line += HIY " 你目前没有存款。\n" NOR; + + if (ob->query("gender") != "无性") + { + if (! ob->query("couple/name")) + { + if (ob->query("gender") == "女性") + line += HIC " 你尚未婚配。\n" NOR; + else + line += HIC " 你尚未娶妻。\n" NOR; + } else + line += HIC " 你的伴侣是" + ob->query("couple/name") + "(" + + ob->query("couple/id") + ")。\n" NOR; + + if (! (int)ob->query("sex/times")) + { + if (ob->query("gender") == "女性") + line += HIG " 你还是处女。\n" NOR; + else + line += HIC " 你还是童男。\n" NOR; + } else + { + string *ks; + + ks = keys(ob->query("sex")); + ks -= ({ "times", "first", "" }); + if (sizeof(ks) >= 10) + line += HIW " 你曾经和数不清的人发生过关系,结果" + "连自己都忘了有谁了。\n" NOR; + else + line += HIW " 你曾经和" + implode(ks, HIW "、") + + HIW "发生过关系。\n" NOR; + } + + } + } + + if (objectp(weapon = ob->query_temp("weapon"))) + { + skill_type = weapon->query("skill_type"); + attack_points = COMBAT_D->skill_power(ob, skill_type, SKILL_USAGE_ATTACK); + } else + { + mapping prepare; + string *sk; + + prepare = me->query_skill_prepare(); + + if (! prepare) prepare = ([]); + sk = keys(prepare); + + if (sizeof(sk) == 0) + skill_type = "unarmed"; + else + skill_type = sk[0]; + + attack_points = COMBAT_D->skill_power(ob, skill_type, SKILL_USAGE_ATTACK); + + if (sizeof(prepare) == 2) + { + int temp; + temp = COMBAT_D->skill_power(ob, sk[1], SKILL_USAGE_ATTACK); + if (attack_points < temp) attack_points = temp; + } + } + + parry_points = COMBAT_D->skill_power(ob, "parry", SKILL_USAGE_DEFENSE); + dodge_points = COMBAT_D->skill_power(ob, "dodge", SKILL_USAGE_DEFENSE); + + //if (wizardp(me)) + if (playerp(ob)) + + { + line += CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR"\n" NOR; + line += sprintf(WHT " 战斗攻击: " HIW "%8d" NOR WHT "\t\t 战斗防御: " HIW "%8d\n" NOR, + attack_points/100 + 1, (dodge_points + (weapon? parry_points: (parry_points/10)))/100 + 1,); + line += sprintf(WHT " 战斗伤害: " HIW "%8d" NOR WHT "\t\t 战斗保护: " HIW "%8d\n" NOR, + weapon ? ob->query_temp("apply/damage") + : ob->query_temp("apply/unarmed_damage"), + ob->query_temp("apply/armor")); +} + + if (playerp(ob)) + { + line += CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR"\n" NOR; + if (! ((int)mci["MKS"] + (int)mci["PKS"])) + { + line += HIY " 你到目前为止尚未开杀戒。\n"; + } else + { + line += sprintf(HIR " 你到目前为止总共杀生%s次。\n", + chinese_number(mci["MKS"] + mci["PKS"])); + + if ((int)mci["PKS"]) + { + line += " 其中有" + chinese_number(mci["PKS"]) + + "次是玩家,"; + + if ((int)mci["WPK"] >= (int)mci["PKS"]) + { + mci["WPK"] = (int)mci["PKS"]; + line += "他们都是你有意杀害的。\n"; + } else + if ((int)mci["WPK"]) + { + line += chinese_number(mci["WPK"]) + + "次是你有意杀害的。\n"; + } else + line += "但他们全都是你无心杀害的。\n"; + } + } + } + + if ((int)mci["dietimes"]) + { + line += sprintf(HIR " 你到目前为止总共到黑白无常那里串" + "门%s次。\n" NOR, chinese_number(mci["dietimes"])); + + if (stringp(mci["last_die"])) + line += sprintf(HIR " 你最后一次是%s。\n" NOR, + mci["last_die"]); + } else + if (playerp(ob)) + + line += HIC "\n 你到目前为止尚无死亡记录。\n" NOR; + + while (playerp(ob)) + { +// string op; + + line += CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR"\n" NOR; + line += HIY " 任督二脉: " NOR; + if (my["breakup"]) + line += HIC "○" NOR; + else + line += HIR "×" NOR; + + line += HIY " 元婴出世: " NOR; + if (my["animaout"]) + line += HIC "○" NOR; + else + line += HIR "×" NOR; + + line += HIY "\n 生死玄关: " NOR; + if (my["death"]) + line += HIC "○" NOR; + else + line += HIR "×" NOR; + + line += HIY " 转世重生: " NOR; + if (my["reborn"]) + line += HIC "○" NOR; + else + line += HIR "×" NOR; + + line += CYN"\n-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR"\n" NOR; + break; + } + while (playerp(ob)) + { +// string op; + + line += HIW " 镇狱惊天丸: " NOR; + if (ob->query("skybook/item/zhenyu")) + line += HIG "○" NOR; + else + line += HIB "×" NOR; + + line += HIW " 子午龙甲丹: " NOR; + if (ob->query("skybook/item/longjia")) + line += HIG "○" NOR; + else + line += HIB "×" NOR; + + line += HIW "\n 玄黄紫箐丹: " NOR; + if (ob->query("skybook/item/xuanhuang")) + line += HIG "○" NOR; + else + line += HIB "×" NOR; + + + line += CYN"\n-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR"\n" NOR; + break; + } + + while (playerp(ob)) + { + string op; + if (ultrap(ob)) + { + line += HIC " 你现在已经成为武学大宗师。\n\n" NOR; + break; + } + + line += WHT " 拳脚功夫: " NOR; + if (op = ob->query("opinion/unarmed")) + line += oprank[op] + " "; + else + line += CYN "无评价 "; + + line += NOR WHT " 兵器运用: " NOR; + if (op = ob->query("opinion/weapon")) + line += oprank[op] + " "; + else + line += CYN "无评价"; + + line += NOR WHT "\n 内家功夫: " NOR; + if (op = ob->query("opinion/force")) + line += oprank[op] + " "; + else + line += CYN "无评价 "; + + line += NOR WHT " 轻身功夫: " NOR; + if (op = ob->query("opinion/dodge")) + line += oprank[op] + " "; + else + line += CYN "无评价"; + + line += CYN"\n-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR + +CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR+CYN"-"NOR+YEL"-"NOR"\n" NOR; + break; + } + + line += sprintf(NOR + WHT " 实战经验: " HIW "%8d\t\t" NOR, my["combat_exp"]); + line += sprintf(WHT " 门派贡献: " HIW "%8d\n" NOR, my["gongxian"]); + + if (playerp(ob)) + { + line += sprintf(WHT " 江湖阅历: " HIC "%8d\t\t" NOR, my["score"]); + line += sprintf(WHT " 江湖威望: " HIC "%8d\n" NOR, my["weiwang"]); + } + + if (my["shen"] >= 0) + line += sprintf(WHT " 正 气: " HIY "%8d\t\t" NOR, my["shen"]); + else + line += sprintf(WHT " 邪 气: " HIR "%8d\t\t" NOR, -ob->query("shen")); + + line += sprintf(WHT " 灵 慧: %s%8d\n" NOR, + my["magic_points"] < 100 ? HIY : HIM, + (my["magic_points"] - my["magic_learned"])); + + line += HIC "≡" HIY "──────────────────────YHWH──" HIC "≡\n" NOR; + write(line); + return 1; +} + +string display_attr(int gift, int value) +{ + if (value > gift) + return sprintf(HIY "%3d" NOR, value); + else + if (value < gift) + return sprintf(CYN "%3d" NOR, value); + else + return sprintf("%3d", value); +} + +string status_color(int current, int max) +{ + int percent; + + if (max) percent = current * 100 / max; + else percent = 100; + + if (percent > 100) return HIC; + if (percent >= 90) return HIG; + if (percent >= 60) return HIY; + if (percent >= 30) return YEL; + if (percent >= 10) return HIR; + return RED; +} + +int help(object me) +{ + write(@HELP +指令格式: score + score <对象名称> (巫师专用) + +这个指令可以显示你或指定对象的基本资料。 +相关指令:查看状态(hp) + +HELP); + return 1; +} diff --git a/cmds/usr/tianshu.c b/cmds/usr/tianshu.c index 3f6b45955..cadf795df 100644 --- a/cmds/usr/tianshu.c +++ b/cmds/usr/tianshu.c @@ -26,9 +26,9 @@ void songwu(object me); int main(object me, string arg) { - object aaa, ob, env; - int i, j, j1, j2; - string id, name; +// object aaa,ob,env; +// int i,j,j1,j2; +// string id,name; if (! arg) { @@ -257,7 +257,7 @@ void xiansuo(object me) void renwu(object me) { - string shu,tasklist,file,*lines,task,*words; + string /*shu,*/tasklist,file,*lines,task,*words; mapping sss=(["class":"kill","name":"ren","exp":1]); object env,*inv,ob; int i,j=-1,level,size,up,down; @@ -829,4 +829,4 @@ int help(object me) HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/wiz/cost.c b/cmds/wiz/cost.c index d78770836..1b6914613 100644 --- a/cmds/wiz/cost.c +++ b/cmds/wiz/cost.c @@ -4,8 +4,8 @@ inherit F_CLEAN_UP; int main(object me, string arg) { - mapping before, after; - int stime, usertime, eval_cost; +// mapping before,after; + int /*stime,usertime,*/ eval_cost; if (! SECURITY_D->valid_grant(me, "(wizard)")) return 0; @@ -31,4 +31,4 @@ int help() 这个指令让你测量另一个指令执行所需的时间。 TEXT ); return 1 ; -} +} \ No newline at end of file diff --git a/cmds/wiz/dest.c b/cmds/wiz/dest.c index 9b87c9137..47a874079 100644 --- a/cmds/wiz/dest.c +++ b/cmds/wiz/dest.c @@ -4,7 +4,7 @@ inherit F_CLEAN_UP; int main(object me, string arg) { - string option, target, msg; + string option, target/*, msg*/; object obj; int opt_clone; object *obs; @@ -123,4 +123,4 @@ int help(object me) 参考资料: destruct() HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/wiz/weight.c b/cmds/wiz/weight.c index 80560512e..6b9cd43f0 100644 --- a/cmds/wiz/weight.c +++ b/cmds/wiz/weight.c @@ -11,7 +11,7 @@ int main(object me, string arg) { object env; int origin; - string msg; +// string msg; string to; if (! SECURITY_D->valid_grant(me, "(wizard)")) @@ -77,4 +77,4 @@ int help(object me) HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/wiz/who1.c b/cmds/wiz/who1.c index 0f0a3a760..b1f664c45 100644 --- a/cmds/wiz/who1.c +++ b/cmds/wiz/who1.c @@ -8,7 +8,7 @@ inherit F_CLEAN_UP; int main(object me, string str) { object where, ob, *ob_list, *wiz_ob; - string stri; +// string stri; mapping dbase; string line; int i; @@ -79,4 +79,4 @@ int help(object me) 玩家信息查询列表1。 HELP ); return 1; -} +} \ No newline at end of file diff --git a/cmds/wiz/who2.c b/cmds/wiz/who2.c index 631acb0a3..02968f95f 100644 --- a/cmds/wiz/who2.c +++ b/cmds/wiz/who2.c @@ -9,7 +9,7 @@ int main(object me, string str) object where, ob; object *ob_list, *wiz_ob; mapping dbase; - string stri; +// string stri; int admin; int i; @@ -75,4 +75,4 @@ int help(object me) 玩家信息查询列表2。 HELP ); return 1; -} +} \ No newline at end of file diff --git a/feature/itemmake.c b/feature/itemmake.c index cf0ac82cb..c5fa5479c 100644 --- a/feature/itemmake.c +++ b/feature/itemmake.c @@ -428,7 +428,7 @@ int restore() // 保存数据 int save() { - int res; +// int res; if (base_name(this_object()) + ".c" == __FILE__) return 0; @@ -439,9 +439,9 @@ int save() // 9/10级兵器攻击对手 mixed weapon_hit_ob(object me, object victim, int damage_bonus) { - int ap; - int dp; - int damage; +// int ap; +// int dp; +// int damage; if (attack_lvl < MAX_LEVEL || query("owner/" + me->query("id")) < MAX_LEVEL * 80) @@ -546,4 +546,4 @@ void autoload(string parameter) this_object()->wield(); break; } -} +} \ No newline at end of file diff --git a/feature/itemmake0.c b/feature/itemmake0.c index 078a62001..6a19f74d1 100644 --- a/feature/itemmake0.c +++ b/feature/itemmake0.c @@ -425,7 +425,7 @@ int restore() // 保存数据 int save() { - int res; +// int res; if (base_name(this_object()) + ".c" == __FILE__) return 0; @@ -436,9 +436,9 @@ int save() // 9/10级兵器攻击对手 mixed weapon_hit_ob(object me, object victim, int damage_bonus) { - int ap; - int dp; - int damage; +// int ap; +// int dp; +// int damage; if (attack_lvl < MAX_LEVEL || query("owner/" + me->query("id")) < MAX_LEVEL * 80) @@ -543,4 +543,4 @@ void autoload(string parameter) this_object()->wield(); break; } -} +} \ No newline at end of file diff --git a/feature/itemmake1.c b/feature/itemmake1.c index 846cc07e9..e9361a9fb 100644 --- a/feature/itemmake1.c +++ b/feature/itemmake1.c @@ -425,7 +425,7 @@ int restore() // 保存数据 int save() { - int res; +// int res; if (base_name(this_object()) + ".c" == __FILE__) return 0; @@ -436,9 +436,9 @@ int save() // 9/10级兵器攻击对手 mixed weapon_hit_ob(object me, object victim, int damage_bonus) { - int ap; - int dp; - int damage; +// int ap; +// int dp; +// int damage; if (attack_lvl < MAX_LEVEL || query("owner/" + me->query("id")) < MAX_LEVEL * 80) @@ -543,4 +543,4 @@ void autoload(string parameter) this_object()->wield(); break; } -} +} \ No newline at end of file diff --git a/feature/itemmake2.c b/feature/itemmake2.c index bada0def5..526b4cbc2 100644 --- a/feature/itemmake2.c +++ b/feature/itemmake2.c @@ -409,7 +409,7 @@ int restore() // 保存数据 int save() { - int res; +// int res; if (base_name(this_object()) + ".c" == __FILE__) return 0; @@ -420,9 +420,9 @@ int save() // 9/10级兵器攻击对手 mixed weapon_hit_ob(object me, object victim, int damage_bonus) { - int ap; - int dp; - int damage; +// int ap; +// int dp; +// int damage; if (attack_lvl < MAX_LEVEL || query("owner/" + me->query("id")) < MAX_LEVEL * 80) @@ -527,4 +527,4 @@ void autoload(string parameter) this_object()->wield(); break; } -} +} \ No newline at end of file diff --git a/feature/itemmake3.c b/feature/itemmake3.c index 4c64199ea..2191503cc 100644 --- a/feature/itemmake3.c +++ b/feature/itemmake3.c @@ -395,7 +395,7 @@ int restore() // 保存数据 int save() { - int res; +// int res; if (base_name(this_object()) + ".c" == __FILE__) return 0; @@ -406,9 +406,9 @@ int save() // 9/10级兵器攻击对手 mixed weapon_hit_ob(object me, object victim, int damage_bonus) { - int ap; - int dp; - int damage; +// int ap; +// int dp; +// int damage; if (attack_lvl < MAX_LEVEL || query("owner/" + me->query("id")) < MAX_LEVEL * 80) @@ -513,4 +513,4 @@ void autoload(string parameter) this_object()->wield(); break; } -} +} \ No newline at end of file diff --git a/inherit/char/insect.c b/inherit/char/insect.c index 5fda0cf0b..ef9b19891 100644 --- a/inherit/char/insect.c +++ b/inherit/char/insect.c @@ -27,7 +27,7 @@ void setup() void init() { - object me, ob; + object me/*, ob*/; ::init(); if (! interactive(me = this_player())) @@ -72,4 +72,4 @@ varargs void revive(int quiet) } destruct(this_object()); -} +} \ No newline at end of file diff --git a/inherit/misc/fboard.c b/inherit/misc/fboard.c index 9d0e52d50..bc8c59e40 100644 --- a/inherit/misc/fboard.c +++ b/inherit/misc/fboard.c @@ -57,7 +57,7 @@ string long() { mapping *notes; int i, last_time_read; - string msg, myid; + string msg/*, myid*/; notes = query("notes"); msg = query("long"); @@ -172,4 +172,4 @@ int do_discard(string arg) save(); write("删除第 " + (num+1) + " 号留言....Ok。\n"); return 1; -} +} \ No newline at end of file diff --git a/inherit/misc/jboard.c b/inherit/misc/jboard.c index 49ccebdda..63f821a90 100644 --- a/inherit/misc/jboard.c +++ b/inherit/misc/jboard.c @@ -55,7 +55,7 @@ string long() { mapping *notes; int i, j, last_time_read, new_report; - string msg, myid; + string msg/*, myid*/; notes = query("notes"); if( !pointerp(notes) || !sizeof(notes) ) return query("long"); @@ -240,4 +240,4 @@ int do_terminate(string arg) save(); write("删除第 " + (num+1) + " 号留言....Ok。\n"); return 1; -} +} \ No newline at end of file diff --git a/inherit/room/chatroom.c b/inherit/room/chatroom.c index 69dc8e280..1618170b4 100644 --- a/inherit/room/chatroom.c +++ b/inherit/room/chatroom.c @@ -323,7 +323,7 @@ int do_kickout(string arg) { object me; object ob; - int i; +// int i; me = this_player(); if (! is_owner(me)) @@ -363,7 +363,7 @@ int do_kickout(string arg) int do_closechat() { object me; - object ob; +// object ob; object *obs; int i; @@ -474,7 +474,7 @@ int do_secret(string arg) int do_topic(string arg) { object me; - object ob; +// object ob; me = this_player(); if (! is_owner(me)) @@ -637,4 +637,3 @@ int clean_up() return 1; } - diff --git a/inherit/weapon/bow.c b/inherit/weapon/bow.c index 11f1944ee..9ca9c0556 100644 --- a/inherit/weapon/bow.c +++ b/inherit/weapon/bow.c @@ -143,7 +143,7 @@ int do_pull(string arg) int do_shoot(string arg) { - object me, victim, ob, env, obj, arrow, where; + object me, victim, ob, env, obj, arrow/*, where*/; string enemy, dir, dest, target; mapping exit; @@ -226,9 +226,9 @@ int do_shoot(string arg) private int shoot_result(object me, object victim, object ob) { - object ob2, *inv; + object ob2/*, *inv*/; string *limbs, str, dodge_skill, limb, result; - int i, embedded, ap, dp, damage, time, power, level, jiali; + int /*i,embedded,*/ ap, dp/*, damage, time*/, power, level, jiali; if( me->query("neili") > me->query("jiali") ) @@ -348,4 +348,3 @@ private int shoot_result(object me, object victim, object ob) } return 1; } - diff --git a/inherit/worm.c b/inherit/worm.c index 6981a7eeb..0d800d080 100644 --- a/inherit/worm.c +++ b/inherit/worm.c @@ -33,7 +33,7 @@ void setup() void init() { - object me, ob; + object me/*, ob*/; ::init(); if (! interactive(me = this_player())) @@ -107,4 +107,4 @@ mixed hit_ob(object me, object ob, int damage) } return msg; -} +} \ No newline at end of file