?? jobshadi_limit.c
字號:
#include <ansi.h>#include <login.h>int update_condition(object me, int duration){ object room; object ob; object obb; object* inv; int i; ob=this_player(); room = environment(ob); if (me->query_temp("where")) { if (me->query_temp("where")!=environment(me)) { message_vision(HIY"一個宋兵跑過來對$N說道:叫你守城,你卻到處閑逛,我去報告郭大人!\n"NOR,me); me->apply_condition("job_failed",8); me->set_temp("job_failed",1); return 0; } } message_vision(HIY"$N正站在城墻上密切注視著城下"HIR"蒙古兵"HIY"的一舉一動。\n"NOR,ob); me->apply_condition("jobshadi_limit", duration - 1); if(duration<1) { message_vision(CYN"\n一個守城宋兵跑過來說道:蒙古靼子暫時被擊退了,$N可以回去復(fù)命了!\n"NOR,ob); ob->set_temp("job_over",1); ob->delete_temp("start_job"); inv=all_inventory(room); for (i = 0; i < sizeof(inv); i++) { obb=inv[i]; if (obb->is_character()) { if (obb->query("ygjg")==ob) destruct(obb); } continue; } return 0; } return 1;}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -