Files
wsmud/world/npc/bj/shenlong/wugen.js
2026-05-26 16:41:20 +08:00

58 lines
1.4 KiB
JavaScript

this.inherits(NPC);
this.set({
name: "无根道长",
desc: "这是个五十来岁的黑须道长,相貌威武,眼中略带杀气。",
title: "神龙教赤龙使",
gender: 1,
age: 55,
per: 26,
mp: 1400,
max_mp: 4400,
hp: 8500,
max_hp: 8500,
score: 10,
prop: {
zj: 100,
gj: 300
}
});
this.set_objects([
"eq/lv0/cloth", 1, 1
], [
"eq/lv0/jian", 1, 1
]);
this.skill_map(
["dodge", 250],
["parry", 250],
["force", 250],
["unarmed", 250],
["sword", 250],
["staff", 250],
["huagumianzhang", 250, "unarmed"],
["shenlongjian", 250, "sword"],
["yixingbufa", 250, "dodge"],
["shenlongxinfa", 250, "force"],
["shedaoqigong", 250, "parry"]);
this.set_drop({
obj: "money/silver",
min: 10,
max: 20
}, {
obj: ["eq/lv0/cloth", "eq/lv0/dao", "eq/lv0/jian", "eq/lv0/tiezhang"],
odds: 8000
}, {
obj: ["eq/lv2/sl_cloth", "eq/lv2/sl_tou", "eq/lv2/sl_shoes", "eq/lv2/sl_shou", "eq/lv2/sl_yao"],
odds: 2000
}, {
obj: ["book/bc#shenlongxinfa", "book/bc#yixingbufa", "book/bc#shedaoqigong", "book/bc#shenlongjian", "book/bc#huagumianzhang"],
odds: 5000
});
this.on_kill = function (me) {
this.send_room("洪安通喝到:来我们神龙教撒野?给我上!");
this.each_item(item => {
if (!item.is_player && item.hp > 0 && !item.master) {
item.do_kill(me);
}
}, this.environment);
}