init: add workspace files

This commit is contained in:
2026-05-26 16:41:20 +08:00
commit f4f2393f72
1041 changed files with 67405 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
this.inherits(NPC);
this.set({
name: "庄夫人",
desc: "只见她约莫二十六七年纪,全身缟素,不施脂粉,脸色苍白",
title: "庄家三少奶奶",
gender: 2,
age: 26,
per: 32,
mp: 400,
max_mp: 400,
hp: 1500,
max_hp: 1500
});
this.set_objects([
"eq/lv0/cloth", 1, 1
], [
"eq/lv0/dao", 1, 1
]);
this.skill_map(
["dodge", 150],
["parry", 150],
["force", 150],
["unarmed", 150],
["sword", 150],
["huashanjianfa", 150, "sword"],
["shenxingbaibian", 150, "dodge"]);
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: ["book/bc#shenxingbaibian", "book/bc#huashanjianfa", "book/bc#shenlongjian"],
odds: 3000
});
this.set_ask("吴之荣", function (me) {
if (me.query_temp("fb/zhuang/shuang")) return me.notify("庄夫人说道:多谢恩公代妾身手刃了次贼。");
me.notify("庄夫人说道:这个狗贼害的我家破人亡,我一定要手刃了这个奸贼。");
var obj = me.find_obj_bypath("sp/bj/wu");
if (obj)
me.send_commands("give " + this.id + " 1 " + obj.id, "给她吴之荣的头颅");
});
this.on_accept = function (me, obj, count) {
if (!obj || !obj.path || me.query_temp("fb/zhuang/shuang")) return;
if (obj.is("sp/bj/wu")) {
me.notify("庄夫人看着吴之荣的头颅,或许是想到了已经阴阳两隔的家人,清丽的脸上有几分愤怒,更多的是悲伤。\n半晌后庄夫人擦了擦眼角对你说道这位" +
me.call() + ",如此大恩大德,妾身实不知何以为报。");
if (me.per + me.query_prop("per") > 36) {
me.notify("庄夫人拉着双儿对你说道:这小丫头跟随妾身多年,做事也还妥当,就送与恩公代为照料。");
me.set_temp("fb/zhuang/shuang", 1);
} else {
me.notify("庄夫人看了你一会,对你说道:这本书是救妾身这群人的恩公给我的,今日就送与恩公。");
var obj = me.add_obj("book/bc#huashanjianfa");
if (obj) {
me.notify("庄夫人给了你" + obj.unit_name(1) + "。");
}
}
return true;
}
}

View File

@@ -0,0 +1,53 @@
this.inherits(NPC);
this.set({
name: "双儿",
desc: "她是一个十分清秀的少女,大约十四五岁年纪,一张雪白的脸庞,眉弯嘴小,笑靥如花,正笑嘻嘻地看着你。",
title: "<hiw>天下无双</hiw>",
gender: 2,
age: 14,
per: 39,
mp: 400,
max_mp: 400,
hp: 1500,
max_hp: 1500
});
this.set_objects([
"eq/lv0/cloth", 1, 1
], [
"eq/lv0/dao", 1, 1
]);
this.skill_map(
["dodge", 150],
["parry", 150],
["force", 150],
["unarmed", 150],
["sword", 150],
["huashanjianfa", 150, "sword"],
["shenxingbaibian", 150, "dodge"]);
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: ["book/bc#shenxingbaibian", "book/bc#huashanjianfa", "book/bc#shenlongjian"],
odds: 3000
});
this.set_ask("跟我走吧", function (me) {
if (me.query_temp("fb/zhuang/shuang")) {
me.notify("<hiy>双儿道:夫人待我恩重如山,主人对我庄家又有大恩。夫人要我服侍主人,我一定尽心。</hiy>");
var obj = me.add_obj("sp/npc#shuang");
if (obj) {
me.notify("你获得了" + obj.unit_name(1) + "。");
}
me.remove_temp("fb/zhuang/shuang");
this.destroy();
} else {
me.notify("双儿睁大眼睛看着你说道:不行的,夫人没有同意。");
}
});

View File

@@ -0,0 +1,41 @@
this.inherits(NPC);
this.set({
name: "土匪",
desc: "这家伙满脸横肉一付凶神恶煞的模样,令人望而生畏。",
gender: 1,
age: 25,
per: 26,
mp: 400,
max_mp: 400,
hp: 1500,
max_hp: 1500,
score: 30
});
this.set_objects([
"eq/lv0/cloth", 1, 1
], [
"eq/lv0/dao", 1, 1
]);
this.skill_map(
["dodge", 150],
["parry", 150],
["force", 150],
["unarmed", 150],
["blade", 150],
["wuhuduanmendao", 250, "blade"]);
this.set_drop({
obj: "money/silver",
min: 1,
max: 20
}, {
obj: ["eq/lv0/cloth", "eq/lv0/dao", "eq/lv0/jian", "eq/lv0/tiezhang"],
odds: 8000
}, {
obj: ["book/bc#shenlongxinfa", "book/bc#yixingbufa", "book/bc#shenlongjian"],
odds: 3000
});
this.on_enter = function (me) {
me.notify("土匪一声大喊: 此山是我开,此树是我栽,若要从此过,留下买路财 !");
this.do_kill(me);
}

View File

@@ -0,0 +1,40 @@
this.inherits(NPC);
this.set({
name: "章老三",
desc: "这是一个神龙教弟子,一袭黑衣,混身透着一股邪气。",
title: "神龙教小头目",
gender: 1,
age: 44,
per: 26,
mp: 400,
max_mp: 1400,
hp: 2500,
max_hp: 2500,
score: 70
});
this.set_objects([
"eq/lv0/cloth", 1, 1
], [
"eq/lv0/jian", 1, 1
]);
this.skill_map(
["dodge", 250],
["force", 250],
["unarmed", 250],
["sword", 250],
["staff", 200],
["shenlongjian", 250, "sword"],
["yixingbufa", 150, "dodge"],
["shenlongxinfa", 150, "force"]);
this.set_drop({
obj: "money/silver",
min: 1,
max: 10
}, {
obj: ["eq/lv0/cloth", "eq/lv0/dao", "eq/lv0/jian", "eq/lv0/tiezhang"],
odds: 8000
}, {
obj: ["book/bc#shenlongxinfa", "book/bc#yixingbufa", "book/bc#shenlongjian"],
odds: 3000
});