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

59
world/npc/bj/ao/aobai.js Normal file
View File

@@ -0,0 +1,59 @@
this.inherits(NPC);
this.set({
name: "鳌拜",
desc: "他就是满洲第一勇士,身穿一袭金边锦缎。他身材魁梧,相貌狰狞,太阳穴高高鼓起,似乎身怀绝世武功。",
title: "满洲第一勇士",
gender: 1,
age: 50,
per: 22,
mp: 400,
str: 30,
max_mp: 1000,
hp: 3000,
max_hp: 3000,
score: 30,
prop: {
gj: 100
}
});
this.set_objects([
"eq/lv2/ao_jia", 1, 1
]);
this.skill_map(
["dodge", 200],
["feiyanzoubi", 200, "dodge"],
["parry", 200],
["force", 200],
["unarmed", 200],
["sword", 300],
["blade", 300],
["fuhuquan", 200, "unarmed"],
["hunyuanyiqi", 200, "force"]);
this.on_die = function () {
this.send_message("\n鳌拜狂叫道想不到我一世威名竟然毁于你手\n鳌拜顿了一顿叹道只可惜我的那么多宝贝啊\n");
}
this.on_enter = function (me) {
me.notify("鳌拜怒道:你敢不让我睡觉,老子宰了你 ");
this.do_kill(me);
}
this.set_drop({
obj: "money/silver",
min: 10,
max: 15
}, {
obj: ["eq/lv0/cloth", "eq/lv0/mugun", "eq/lv0/jian", "sp/bj/laofangkey"],
odds: 8000
},
{
obj: ["book/bc#hunyuanyiqi", "book/bc#feiyanzoubi", "book/bc#fuhuquan"],
odds: 5000
}, {
obj: ["eq/lv2/ao_jia", "eq/lv2/ao_bishou"],
odds: 1000
}, {
obj: "sp/npc#aobai",
odds: 30
}, {
obj: "sp/fb/tiao",
odds: 1000
});

20
world/npc/bj/ao/chushi.js Normal file
View File

@@ -0,0 +1,20 @@
this.inherits(NPC);
this.set({
name: "厨师",
desc: "他原是归安县的知县,因贪赃枉法,百姓恨之切齿,终被告发革职。他长得尖嘴猴腮,一看就知不是好人 。",
gender: 1,
age: 45,
per: 19,
mp: 100,
max_mp: 200,
hp: 200,
max_hp: 200,
});
this.set_objects([
"eq/lv0/cloth", 1, 1
]);
this.skill_map(
["dodge", 100],
["parry", 100],
["force", 100],
["unarmed", 100]);

View File

@@ -0,0 +1,34 @@
this.inherits(NPC);
this.set({
name: "女管家",
desc: "她是鳌拜府上的管家,精明干练",
gender: 2,
age: 44,
per: 34,
mp: 100,
max_mp: 100,
hp: 400,
max_hp: 400,
score: 10
});
this.set_objects([
"eq/lv0/cloth", 1, 1
]);
this.skill_map(
["dodge", 100],
["parry", 100],
["force", 100],
["unarmed", 100]);
this.on_kill = function (me) {
this.send_room("$N喊道还愣着干嘛快给我上", me);
this.each_item(item => {
if ( item.path == "bj/ao/jiading") {
item.do_kill(me);
}
}, this.environment);
}
this.on_leave = function (me, dir) {
if (dir == "south" || dir == "north")
return me.notify_fail("女官家挡住了你。");
}

View File

@@ -0,0 +1,37 @@
this.inherits(NPC);
this.set({
name: "家将",
desc: "鳌拜府上的家将,看上去有两下子",
gender: 1,
age: 25,
per: 15,
mp: 100,
max_mp: 500,
hp: 500,
max_hp: 500,
score: 10
});
this.skill_map(
["club", 150],
["dodge", 150],
["sword", 150],
["parry", 150],
["juemengun", 150,["club","dodge"]]);
this.set_objects(
["eq/lv1/guanfu", 1, 1],
["eq/lv0/tiegun", 1, 1]
);
this.set_drop({
obj: "money/coin",
min: 10,
max: 30
}, {
obj: ["eq/lv0/cloth", "eq/lv0/tiegun", "eq/lv0/shoes"],
odds: 3000
}, {
obj: ["eq/lv0/jd_cloth", "eq/lv0/jd_shoes", "eq/lv1/guanfu"],
odds: 3000
}, {
obj: ["book/bc#juemengun"],
odds: 3000
});

36
world/npc/bj/ao/wu.js Normal file
View File

@@ -0,0 +1,36 @@
this.inherits(NPC);
this.set({
name: "吴之荣",
desc: "他原是归安县的知县,因贪赃枉法,百姓恨之切齿,终被告发革职。他长得尖嘴猴腮,一看就知不是好人 。",
gender: 1,
age: 44,
per: 12,
mp: 100,
max_mp: 400,
hp: 400,
max_hp: 400,
score: 10
});
this.set_objects([
"eq/lv0/cloth", 1, 1
]);
this.skill_map(
["dodge", 100],
["parry", 100],
["force", 100],
["unarmed", 100]);
this.set_drop({
obj: "money/silver",
min: 10,
max: 15
}, {
obj: ["eq/lv0/cloth", "eq/lv0/dao", "eq/lv0/jian"],
odds: 8000
}, {
obj: ["sp/bj/wu"],
odds: 1000
});
this.on_die = function (killer) {
killer.set_temp("fb/ao/wu", 1);
}

View File

@@ -0,0 +1,52 @@
this.inherits(NPC);
this.set({
name: "庄允城",
desc: "这是个饱读诗书,却手无搏鸡之力的书生。因编辑‘明史辑略’,被吴之荣告发,全家逮入京中。",
gender: 1,
age: 40,
per: 33,
mp: 100,
max_mp: 100,
hp: 10,
max_hp: 100
});
this.set_objects([
"eq/lv0/cloth", 1, 1
]);
this.set_chat_msg([
"庄允城说道:只怪我当初好心,在书中夹了金叶送与他,谁想这狼心狗肺的家伙竟然就去告发了我。唉...",
"庄允城说道:谁要把吴之荣抓到庄府就好了。",
"庄允城叹了口气说道:谁要救了我,我一定把我知道的都告诉他。"
]);
this.set_ask("明史辑略", function (me) {
me.notify("庄允城叹了口气说道:谁能想到这本书惹来这么大的祸。");
});
this.set_ask("密室", function (me) {
me.notify("庄允城说道:我曾见过鳌拜进密室,把书房的画卷移动一下就行了。");
});
this.set_ask("吴之荣", function (me) {
me.notify("庄允城说道:只怪我当初好心,在书中夹了金叶送与他,谁想这狼心狗肺的家伙竟然就去告发了我。唉...");
if (me.query_temp("fb/ao/wu")) {
var obj = OBJ.create_by_odds([
{
obj: ["sp/bj/jing#5", "sp/bj/jing#6", "sp/bj/jing#7", "sp/bj/jing#8"]
}
])[0];
me.remove_temp("fb/ao/wu");
obj = me.add_obj(obj);
if (obj) {
me.notify("顿了顿,庄允城对你说道:多谢这位" + me.call() + "替我报了大仇,这里有一本鳌拜不小心丢在这里的经书就送给你了。");
me.notify("庄允城给了你" + obj.unit_name(1) + "。");
}
} else {
me.notify("顿了顿,庄允城叹了口气说道:替我把吴之荣这厮杀掉吧,我不行了。");
}
});