Files
wsmud/world/npc/yz/lm/liumang.js
2026-05-26 16:41:20 +08:00

38 lines
794 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: "流氓巷里的大流氓。",
title: "",
gender: 1,
age: 18,
per: 20,
mp: 300,
max_mp: 300,
hp: 300,
max_hp: 300,
score: 10
}); this.set_objects(
["eq/lv1/lm_cloth", 1, 1]
);
this.skill_map(
["unarmed", 50],
["dodge", 50],
["sword", 50],
["parry", 50]);
this.set_drop({
obj: "money/coin",
min: 20,
max: 240
}, {
obj: ["eq/lv0/cloth", "eq/lv0/jian", "eq/lv0/mugun"],
odds: 3000
});
this.on_kill = function (me) {
me.each_item(item => {
if (item != this && item.path == this.path) {
this.send_room("$N喊道兄弟们有人搞事并肩子上");
item.do_kill(me);
}
}, me.environment);
}