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,45 @@
this.inherits(NPC);
this.set({
name: "平四",
desc: "他是胡家忠心耿耿的仆役。",
title: "胡家仆佣",
gender: 1,
age: 45,
per: 26,
mp: 1400,
max_mp: 4400,
hp: 5500,
max_hp: 5500
});
this.set_objects([
"eq/lv0/cloth", 1, 1
], [
"eq/lv0/dao", 1, 1
]);
this.skill_map(
["dodge", 300],
["parry", 300],
["force", 300],
["unarmed", 300],
["blade", 300],
["sixiangbu", 300, "dodge"],
["hujiadaofa", 300, "blade"],
["lengyueshengong", 300, "force"]);
this.set_drop({
obj: "money/silver",
min: 10,
max: 20
}, {
obj: ["eq/lv0/cloth", "eq/lv0/dao", "eq/lv0/jian"],
odds: 8000
}, {
obj: ["book/bc#hujiadaofa", "book/bc#sixiangbu", "book/bc#lengyueshengong"],
odds: 3000
});
this.on_leave = function (me, dir) {
if (dir == "north") {
me.notify("平四拦住你恭敬的说道:" + me.call() + ",有什么事情吗?");
return false;
}
}

View File

@@ -0,0 +1,38 @@
this.inherits(NPC);
this.set({
name: "船夫",
desc: "这是一个松花江上的船夫。饱经风霜的脸上透出东北人的豪爽。",
gender: 1,
age: 45,
per: 26,
mp: 400,
max_mp: 400,
hp: 500,
max_hp: 500
});
this.set_objects([
"eq/lv0/cloth", 1, 1
]);
this.set_drop({
obj: "sp/tool/diao#1",
odds:500
}, {
obj: "sp/tool/diao#2",
odds: 50
});
this.on_leave = function (me, dir) {
if (dir == "east" || dir == "west") {
me.notify("船夫对你说道坐船到江对面1两黄金。");
me.set_temp("fb/guanwai/jiang", dir);
me.send_commands("give " + this.id + " 10000 money", "交钱坐船");
return false;
}
}
this.on_accept = function (me, obj, count) {
if (obj == "money" && count == 10000) {
if (me.moveto("bj/guanwai/jiang") != false) {
me.send_room("船夫和$N上了船一声「起锚」船就张帆离岸了......");
return true;
}
}
}

View File

@@ -0,0 +1,25 @@
this.inherits(MONSTER);
this.set({
name: "金雕",
desc: "一只大金雕,正立在树枝上仰视长天。",
gender: 1,
mp: 100,
max_mp: 100,
hp: 4500,
max_hp: 4500,
score: 10
});
this.skill_map(
["bite", 200],
["bite2", 200, "bite"]);
//drop path,min,max,per
this.set_drop({
obj: "res/pimao2",
min: 1,
max: 4
});
this.on_enter = function (me) {
me.notify("一只迅猛的金雕朝你俯冲过来。");
this.do_kill(me);
}

View File

@@ -0,0 +1,24 @@
this.inherits(MONSTER);
this.set({
name: "东北虎",
desc:"一只矫捷的斑斓猛虎,形体巨大,状极威猛,雄伟极了",
gender: 1,
mp: 100,
max_mp: 100,
hp: 6500,
max_hp: 6500,
score: 10
});
this.skill_map(
["bite", 270],
["bite2", 270,"bite"]);
//drop path,min,max,per
this.set_drop({
obj: "res/pimao2",
min: 1,
max: 4
});
this.on_enter = function(me) {
me.notify("一只凶猛的东北虎朝你扑了过来。");
this.do_kill(me);
}

View File

@@ -0,0 +1,81 @@
this.inherits(NPC);
this.set({
name: "胡斐",
desc: "他就是胡一刀之子胡斐,因其武功高强神出鬼没。在江湖上人送外号「雪山飞狐」。他身穿一件白色长衫,腰间别着一把看起来很旧的刀。 ",
title: "雪山飞狐",
gender: 1,
age: 25,
per: 26,
mp: 9500,
max_mp: 9500,
hp: 13500,
max_hp: 18500,
prop: {
gj: 600,
mz: 800,
ds: 800,
fy: 900
}
});
this.set_objects([
"eq/lv0/cloth", 1, 1
], [
"eq/lv0/dao", 1, 1
]);
this.skill_map(
["dodge", 400],
["parry", 400],
["force", 400],
["unarmed", 400],
["staff", 300],
["blade", 400],
["throwing", 400],
["sixiangbu", 400, "dodge"],
["hujiadaofa", 400, "blade"],
["lengyueshengong", 400, "force"],
["mantianxing", 400, "throwing"]);
this.set_drop({
obj: "money/silver",
min: 10,
max: 30
}, {
obj: ["eq/lv0/cloth", "eq/lv0/dao", "eq/lv0/jian"],
odds: 8000
});
this.on_accept = function (me, obj, count) {
if (!obj || !obj.path) return;
if (obj.is("sp/bj/yanji")) {
me.notify("\n<HIC>胡斐大喜道:狗贼!想不到你也有今天!!手起刀落,将阎基的头颅剁为两段。</hic>");
me.notify("<HIC>胡斐说道:这位" + me.call() + ",如此大恩大德,在下实不知何以为报。</hic>");
me.set_temp("fb/guanwai/hu", 1);
return true;
}
}
this.set_ask("阎基", function (me) {
var obj = me.find_obj_bypath("sp/bj/yanji");
if (obj) {
me.notify("胡斐说道:阎基是我的杀父仇人,如果你把他杀掉,在下必有重谢。");
me.send_commands("give " + this.id + " " + obj.id, "把阎基的头颅给胡斐");
} else {
me.notify("胡斐说道:阎基是我的杀父仇人。");
}
});
this.set_ask("闯王宝刀", function (me) {
if (me.query_temp("fb/guanwai/hu")) {
me.notify("胡斐说道:这把宝刀是我家祖上当闯王护卫时候,闯王亲手赐予的,其中隐藏着关于闯王宝藏的秘密。");
} else {
me.notify("胡斐说道:这把宝刀是我家祖上当闯王护卫时候,被闯王亲手赐予的。");
}
});
this.set_ask("胡家刀谱", function (me) {
if (me.query_temp("fb/guanwai/hu") == 1) {
me.notify("胡斐说道:既然" + me.call() + "有兴趣,这几份残篇就给你参悟吧。");
var obj = me.add_obj("book/bc#hujiadaofa");
if (obj) me.notify("胡斐给你一" + obj.unit + obj.color_name + "。");
me.set_temp("fb/guanwai/hu", 2);
} else {
me.notify("胡斐说道:胡家刀法是我祖上飞天狐狸所创,可惜刀谱丢了几页。");
}
});

View File

@@ -0,0 +1,35 @@
this.inherits(MONSTER);
this.set({
name: "<blk>黑熊</blk>",
desc: "一只凶猛的黑熊,形体硕大,人立而行。",
gender: 1,
mp: 100,
max_mp: 9000,
hp:18500,
max_hp: 18500,
score: 20,
prop: {
gj: 300,
mz: 400,
ds: 600,
fy: 900
}
});
this.skill_map(
["bite", 400],
["bite2", 400, "bite"]);
//drop path,min,max,per
this.set_drop({
obj: "res/pimao2",
min: 1,
max: 4
}, {
obj: "st/xuanjing"
}, {
obj: "drug/xiongdan",
odds:1000
});
this.on_enter = function(me) {
me.notify("一只凶猛的黑熊朝你扑了过来。");
this.do_kill(me);
}

View File

@@ -0,0 +1,47 @@
this.inherits(NPC);
this.set({
name: "阎基",
desc: "他是一个没落江湖医生。自从得了胡家刀谱几页残篇后,武功大进。",
title:"江湖医生",
gender: 1,
age: 45,
per: 26,
mp: 400,
max_mp: 4000,
hp: 12500,
max_hp: 15500,
score: 20,
prop: {
gj: 500,
mz: 600,
ds: 600,
fy: 900
}
});
this.set_objects([
"eq/lv0/cloth", 1, 1
], [
"eq/lv0/dao", 1, 1
]);
this.skill_map(
["dodge", 500],
["parry", 400],
["force", 400],
["unarmed", 400],
["parry", 300],
["blade", 400],
["sixiangbu", 400, "dodge"],
["hujiadaofa", 400, "blade"],
["lengyueshengong", 400, "force"]);
this.set_drop({
obj: "money/silver",
min: 10,
max: 30
}, {
obj: ["eq/lv0/cloth", "eq/lv0/dao", "eq/lv0/jian"],
odds: 8000
}, {
obj: ["book/bc#hujiadaofa", "sp/bj/yanji"],
odds: 3000
});