ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示

/cmds/arch/heal.c

HOME :: cmds :: arch :: heal.c
/*  heal.c

    Copyright (C) 1994-2000 Annihilator 

    This program is a part of ES2 mudlib. Permission is granted to use,
    modify, copy or distribute this program provided this copyright notice
    remains intact and subject to the restriction that this program MAY
    NOT be used in any way for monetary gain.

    Details of terms and conditions is available in the Copyright.ES2 file.
    If you don't receive this file along with this program, write to the
    primary author of ES2 mudlib: Annihilator 
*/

inherit F_CLEAN_UP;

int main(object me, string str)
{
    object ob;
    int i;

    seteuid(ROOT_UID);
    if(!str) return notify_fail("指令格式: heal <使用者>\n");

    ob = present(str, environment(me));
    if( !ob ) ob = LOGIN_D->find_body(str);
    if( !ob ) ob = me;

    ob->heal_stat("gin", 9999);
    ob->heal_stat("kee", 9999);
    ob->heal_stat("sen", 9999);

    ob->supplement_stat("gin", 9999);
    ob->supplement_stat("kee", 9999);
    ob->supplement_stat("sen", 9999);

    // ok ..
    message_vision("$N用巫師的神力治療$n的傷勢。\n", me, ob);
    return 1;
}

int help(object me)
{
write(@HELP
指令格式 : heal <某人>

此指令可讓你(妳)將某人的精氣神完全恢復。
HELP
    );
    return 1;
}
HOME :: cmds :: arch :: heal.c