// bishen.c 以彼之道还施彼身
// by tiantian@sj
#include <ansi.h>
#include <weapon.h>
#include <combat.h>
inherit F_SSERVER;
int query_pfm(object me,object target);
mapping *tested=({
([ "skill":"anran-zhang","number":2,"perform1":"anran","perform2":"xiaohun" ]),
([ "skill":"banruo-zhang","number":2,"perform1":"qiankun","perform2":"yipai" ]),
([ "skill":"canglang-goufa","number":2,"perform1":"beauty","perform2":"hero" ]),
([ "skill":"chousui-zhang","number":5,"perform1":"yinhuo","perform2":"biyan",
"perform3":"huoqiu","perform4":"huoqiang","perform5":"fushidu"]),
([ "skill":"cihang-bian","number":1,"perform1":"cibei" ]),
([ "skill":"cuixin-zhang","number":1,"perform1":"cuixin" ]),
([ "skill":"dagou-bang","number":3,"perform1":"chan","perform2":"wugou","perform3":"linglong" ]),
([ "skill":"dashou-yin","number":1,"perform1":"tianyin" ]),
([ "skill":"duanjia-jianfa","number":1,"perform1":"fenglei" ]),
([ "skill":"dugu-jiujian","number":3,"perform1":"po","perform2":"kuangfeng","perform3":"pozhang" ]),
([ "skill":"fanliangyi-dao","number":1,"perform1":"sanshenfeng" ]),
([ "skill":"fengmo-zhang","number":1,"perform1":"feizhang" ]),
// ([ "skill":"hama-gong","number":3,"perform1":"hama","perform2":"nizhuan","perform3":"qudu" ]),
([ "skill":"hanbing-mianzhang","number":1,"perform1":"xixue" ]),
([ "skill":"hanbing-shenzhang","number":1,"perform1":"hanbing" ]),
([ "skill":"huagu-mianzhang","number":3,"perform1":"bujue","perform2":"huagu","perform3":"puhuo" ]),
([ "skill":"huashan-jianfa","number":4,"perform1":"jianmang","perform2":"jianzhang","perform3":"wudui","perform4":"lianhuan" ]),
// ([ "skill":"huifeng-bian","number":1,"perform1":"huixuan" ]),
([ "skill":"huifeng-jian","number":3,"perform1":"mie","perform2":"jue","perform3":"liaoyuan" ]),
([ "skill":"hunyuan-zhang","number":1,"perform1":"wuji" ]),
// ([ "skill":"huoyan-dao","number":2,"perform1":"daoqi","perform2":"fen" ]),
([ "skill":"jieshou-jiushi","number":1,"perform1":"foguang" ]),
([ "skill":"jingang-quan","number":2,"perform1":"fumo","perform2":"qixing" ]),
([ "skill":"jinshe-jianfa","number":1,"perform1":"kuangwu" ]),
([ "skill":"jiuyin-baiguzhua","number":1,"perform1":"jiuyin" ]),
// ([ "skill":"jiuyin-shenzhang","number":2,"perform1":"shenzhang","perform2":"yinyang" ]),
// ([ "skill":"jiuyin-shenzhua","number":1,"perform1":"sanjue" ]),
// ([ "skill":"juehu-shou","number":1,"perform1":"juehu" ]),
// ([ "skill":"kongming-quan","number":1,"perform1":"berserk" ]),
([ "skill":"kurong-changong","number":1,"perform1":"jiuchong"]),
([ "skill":"lanhua-shou","number":1,"perform1":"fuxue" ]),
([ "skill":"lietian-fu","number":1,"perform1":"lihun" ]),
([ "skill":"lieyan-dao","number":1,"perform1":"shenghuo" ]),
([ "skill":"lingshe-bianfa","number":2,"perform1":"chan","perform2":"sandou" ]),
([ "skill":"liuhe-daofa","number":1,"perform1":"sancai" ]),
([ "skill":"longzhua-gong","number":1,"perform1":"canyun" ]),
([ "skill":"luoying-zhang","number":3,"perform1":"bading","perform2":"fugu","perform3":"pikong" ]),
([ "skill":"nianhua-zhi","number":1,"perform1":"fuxue" ]),
// ([ "skill":"pixie-jian","number":3,"perform1":"cimu","perform2":"feiying","perform3":"jue" ]),
([ "skill":"poyu-quan","number":1,"perform1":"leidong" ]),
([ "skill":"qianye-shou","number":1,"perform1":"qianshou" ]),
([ "skill":"qishang-quan","number":1,"perform1":"qishang" ]),
([ "skill":"quanzhen-jianfa","number":1,"perform1":"qixing" ]),
([ "skill":"ranmu-daofa","number":3,"perform1":"fenwo","perform2":"fentian","perform3":"shoudao" ]),
([ "skill":"riyue-bian","number":3,"perform1":"chanrao","perform2":"fumoquan","perform3":"riyue" ]),
// ([ "skill":"riyue-lun","number":1,"perform1":"dazhuan" ]),
([ "skill":"ruying-suixingtui","number":1,"perform1":"ruying" ]),
([ "skill":"sanhua-zhang","number":1,"perform1":"sanhua" ]),
([ "skill":"shenghuo-lingfa","number":3,"perform1":"duo","perform2":"ji","perform3":"xinmo" ]),
// ([ "skill":"shenghuo-lingfa","number":4,"perform1":"duo","perform2":"ji","perform3":"tisha","perform4":"xinmo" ]),
// ([ "skill":"shenlong-tuifa","number":1,"perform1":"zhuiming" ]),
([ "skill":"songshan-jian","number":3,"perform1":"feiwu","perform2":"leiting","perform3":"longxiang" ]),
([ "skill":"songyang-bian","number":1,"perform1":"luan" ]),
([ "skill":"songyang-shou","number":1,"perform1":"yinyang" ]),
// ([ "skill":"taiji-jian","number":4,"perform1":"chan","perform2":"lian","perform3":"raozhi","perform4":"sanhuan" ]),
// ([ "skill":"taiji-quan","number":6,"perform1":"dongjing","perform2":"luanhuan",
// "perform3":"ji","perform4":"zhen","perform5":"yinyang","perform6":"zhannian"]),
// ([ "skill":"tanzhi-shentong","number":3,"perform1":"qiankun","perform2":"huayu","perform3":"shentong" ]),
// ([ "skill":"tiezhang-zhangfa","number":2,"perform1":"tianlei","perform2":"zhangdao" ]),
// ([ "skill":"weituo-chu","number":2,"perform1":"leidong","perform2":"chaodu" ]),
([ "skill":"xiangfu-lun","number":1,"perform1":"wushuai" ]),
// ([ "skill":"xianglong-zhang","number":2,"perform1":"paiyun","perform2":"xiao" ]),
([ "skill":"xuanfeng-tui","number":1,"perform1":"kuangfeng" ]),
// ([ "skill":"xuantie-jianfa","number":2,"perform1":"haichao","perform2":"wujian" ]),
// ([ "skill":"xuedao-jing","number":2,"perform1":"jixue","perform2":"shendao" ]),
// ([ "skill":"yanxing-daofa","number":2,"perform1":"feiyan","perform2":"huanying" ]),
([ "skill":"yingou-bifa","number":3,"perform1":"caoshu","perform2":"kaishu","perform3":"shigu" ]),
// ([ "skill":"yinlong-bian","number":2,"perform1":"feilong","perform2":"chanrao" ]),
// ([ "skill":"yinsuo-jinling","number":1,"perform1":"yueyin" ]),
// ([ "skill":"yiyang-zhi","number":1,"perform1":"yizhisanmai" ]),
// ([ "skill":"yizhi-chan","number":2,"perform1":"wofo","perform2":"qiankun" ]),
// ([ "skill":"yunu-jianfa","number":1,"perform1":"suxin" ]),
// ([ "skill":"yuxiao-jian","number":2,"perform1":"feiying","perform2":"qimen" ]),
// ([ "skill":"zhenshan-mianzhang","number":1,"perform1":"bingdi" ]),
// ([ "skill":"zhuihun-gou","number":1,"perform1":"luanpifeng" ]),
// ([ "skill":"zui-gun","number":1,"perform1":"zuijiu" ]),
});
int perform(object me, object target)
{
int i,j;
object weapon,weapon2;
string perform,perform_file;
string skill;
if( !target )
target = offensive_target(me);
if( !target || !me->is_fighting(target) )
return notify_fail("以彼之道还施彼身只能在战斗中使用!。\n");
|