Files
wsmud/world/npc/pub/bing.js
2026-05-26 16:41:20 +08:00

44 lines
973 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
this.inherits(NPC);
this.set({
name: "官兵",
desc: "虽然官兵的武艺不能和武林人士相比,可是他们讲究的是人多力量大。",
gender: 1,
age: 35,
per: this.random(20) + 10,
mp: 1500,
max_mp: 1500,
hp: 1500,
max_hp: 1500,
score: 10
});
this.set_objects([
"eq/lv1/junfu", 1, 1
], [
"eq/lv0/dao", 1, 1
]);
this.set_drop({
obj: "money/silver",
min: 2,
max: 5
}, {
obj: ["eq/lv0/cloth", "eq/lv0/jian", "eq/lv0/dao"],
odds: 6000
}, {
obj: ["eq/lv1/guanfu", "eq/lv1/junfu", "book/book#sword", "book/book#blade"],
odds: 2000
});
this.skill_map(
["unarmed", 150],
["dodge", 150],
["parry", 150],
["blade", 150]);
this.on_kill = function (me) {
this.each_item(item => {
if (item != this && item.path == this.path) {
this.send_room("$N喊道兄弟们并肩子上");
item.do_kill(me);
}
}, this.environment);
}