init: add workspace files
This commit is contained in:
42
world/npc/bj/tdh/chen.js
Normal file
42
world/npc/bj/tdh/chen.js
Normal file
@@ -0,0 +1,42 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "陈近南",
|
||||
desc: "这是一个文士打扮的中年书生,神色和蔼。他就是天下闻名的天地会总舵主陈近南,据说十八般武艺,样样精通。偶尔向这边看过来,顿觉他目光如电,英气逼人。",
|
||||
title: "<hiw>天地会总舵主</hiw>",
|
||||
gender: 1,
|
||||
age: 45,
|
||||
per: 22,
|
||||
mp: 400,
|
||||
max_mp: 400,
|
||||
hp: 5000,
|
||||
max_hp: 5000,
|
||||
score: 55
|
||||
});
|
||||
this.set_objects([
|
||||
"eq/lv0/cloth", 1, 1
|
||||
], ["eq/lv0/jian", 1, 1]);
|
||||
this.skill_map(
|
||||
["dodge", 300],
|
||||
["parry", 300],
|
||||
["force", 300],
|
||||
["unarmed", 300],
|
||||
["sword", 300],
|
||||
["yunlongjian", 300, "sword"],
|
||||
["yunlongshenfa", 300, "dodge"],
|
||||
["yunlongxinfa", 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#yunlongjian", "book/bc#yunlongshenfa", "book/bc#yunlongxinfa"],
|
||||
odds: 8000
|
||||
}, {
|
||||
obj: ["eq/lv2/yunlongjian"],
|
||||
odds: 1000
|
||||
});
|
||||
55
world/npc/bj/tdh/dubi.js
Normal file
55
world/npc/bj/tdh/dubi.js
Normal file
@@ -0,0 +1,55 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "独臂神尼",
|
||||
desc: "这是一位白衣女尼,手握拂尘,目视前方。一只长袖空空如也,显是断了一臂,尽管如此,仍然掩不住她迷人的风采。",
|
||||
gender: 2,
|
||||
age: 37,
|
||||
per: 38,
|
||||
mp: 400,
|
||||
max_mp: 400,
|
||||
hp: 2500,
|
||||
max_hp: 2500,
|
||||
score: 10
|
||||
});
|
||||
this.set_objects([
|
||||
"eq/lv0/cloth", 1, 1,
|
||||
"eq/lv1/fuchen", 1, 1
|
||||
]);
|
||||
this.skill_map(
|
||||
["dodge", 300],
|
||||
["parry", 300],
|
||||
["force", 300],
|
||||
["unarmed", 300],
|
||||
["whip", 300],
|
||||
["shenxingbaibian", 300, "dodge"],
|
||||
["qiufengfuchen", 300, "whip"]);
|
||||
this.set_drop({
|
||||
obj: "money/silver",
|
||||
min: 10,
|
||||
max: 30
|
||||
}, {
|
||||
obj: ["eq/lv0/cloth", "eq/lv0/dao", "eq/lv0/jian", "eq/lv1/fuchen"],
|
||||
odds: 8000
|
||||
},
|
||||
{
|
||||
obj: ["book/bc#shenxingbaibian", "book/bc#qiufengfuchen"],
|
||||
odds: 5000
|
||||
});
|
||||
this.on_checkskill = function (me) {
|
||||
if (me.query_temp("fb/tdh/dubi") == 2) {
|
||||
if (me.query_temp("fb/tdh/shenxing")) return me.notify_fail("独臂神尼说道:虽然不完整,也是秘籍,还请" + me.call() + "不要嫌弃。");
|
||||
|
||||
me.notify("独臂神尼说道:这位" + me.call() + ",如果你想学的话,我这里有份神行百变的秘籍残页,你可以拿去参悟。");
|
||||
var obj = me.add_obj("book/bc#shenxingbaibian");
|
||||
me.set_temp("fb/tdh/shenxing", 1);
|
||||
if (obj) {
|
||||
me.notify("独臂神尼给了你" + obj.unit + obj.color_name + "。");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return me.query_temp("fb/tdh/dubi") == 1;
|
||||
}
|
||||
this.on_teach = function (me, sk) {
|
||||
if (sk != "shenxingbaibian") return me.notify_fail("独臂神尼说道:贫尼只能教你神行百变。");
|
||||
return true;
|
||||
}
|
||||
38
world/npc/bj/tdh/guan.js
Normal file
38
world/npc/bj/tdh/guan.js
Normal file
@@ -0,0 +1,38 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "关安基",
|
||||
desc: "只见他长长的胡子飘在胸前,模样甚是威严。因此人称关夫子。",
|
||||
title: "关夫子",
|
||||
gender: 1,
|
||||
age: 35,
|
||||
per: 26,
|
||||
mp: 400,
|
||||
max_mp: 400,
|
||||
hp: 1000,
|
||||
max_hp: 1000,
|
||||
score: 10
|
||||
});
|
||||
this.set_objects([
|
||||
"eq/lv0/cloth", 1, 1
|
||||
]);
|
||||
this.skill_map(
|
||||
["dodge", 200],
|
||||
["parry", 200],
|
||||
["force", 200],
|
||||
["unarmed", 200],
|
||||
["houquan", 200, "unarmed"],
|
||||
["yunlongshenfa", 200, "dodge"],
|
||||
["yunlongxinfa", 200, "force"]);
|
||||
|
||||
this.set_drop({
|
||||
obj: "money/silver",
|
||||
min: 10,
|
||||
max: 20
|
||||
}, {
|
||||
obj: ["eq/lv0/cloth", "eq/lv0/dao", "eq/lv0/jian"],
|
||||
odds: 8000
|
||||
});
|
||||
this.set_chat_msg([
|
||||
"关安基忽然说:唉,我的脾气不大好,大家可要小心了。",
|
||||
"关安基忽然说:本堂的香主谁来当,还轮不到我说话。"
|
||||
]);
|
||||
31
world/npc/bj/tdh/huoji.js
Normal file
31
world/npc/bj/tdh/huoji.js
Normal file
@@ -0,0 +1,31 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "药铺伙计",
|
||||
desc: "他十分强壮,看上去会几分武功,对药铺生意似乎并不在乎。",
|
||||
gender: 1,
|
||||
age: 28,
|
||||
per: 22,
|
||||
mp: 400,
|
||||
max_mp: 400,
|
||||
hp:500,
|
||||
max_hp: 500,
|
||||
score: 5
|
||||
});
|
||||
this.set_objects([
|
||||
"eq/lv0/cloth", 1, 1
|
||||
]);
|
||||
this.skill_map(
|
||||
["dodge", 100],
|
||||
["parry", 100],
|
||||
["force", 100],
|
||||
["unarmed", 100],
|
||||
["houquan", 100,"unarmed"]);
|
||||
|
||||
this.set_drop({
|
||||
obj: "money/silver",
|
||||
min: 10,
|
||||
max: 20
|
||||
}, {
|
||||
obj: ["eq/lv0/cloth", "eq/lv0/dao", "eq/lv0/jian"],
|
||||
odds: 8000
|
||||
});
|
||||
68
world/npc/bj/tdh/lama.js
Normal file
68
world/npc/bj/tdh/lama.js
Normal file
@@ -0,0 +1,68 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "喇嘛",
|
||||
desc: "这是一个高大喇嘛,两臂粗壮,膀阔腰圆,似乎不是中土人士。",
|
||||
gender: 1,
|
||||
age: 37,
|
||||
per: 22,
|
||||
mp: 400,
|
||||
max_mp: 400,
|
||||
hp: 1500,
|
||||
max_hp: 1500,
|
||||
score: 10
|
||||
});
|
||||
this.set_objects([
|
||||
"eq/lv0/cloth", 1, 1,
|
||||
"eq/lv0/dao", 1, 1
|
||||
]);
|
||||
this.skill_map(
|
||||
["dodge", 200],
|
||||
["parry", 200],
|
||||
["force", 200],
|
||||
["unarmed", 200],
|
||||
["blade", 200],
|
||||
["mizongxinfa", 200, "force"],
|
||||
["dashouyin", 200, "unarmed"]);
|
||||
this.on_enter = function (me) {
|
||||
if (this.is_fighting()) return;
|
||||
me.notify("喇嘛说道:你是谁,居然敢破坏大爷的好事,不想活了是不是?!");
|
||||
this.each_item(item => {
|
||||
if (item.path == this.path) {
|
||||
item.do_kill(me);
|
||||
}
|
||||
}, this.environment);
|
||||
}
|
||||
this.on_die = function (killer) {
|
||||
var ishas = false;
|
||||
var dubi = null;
|
||||
this.each_item(item => {
|
||||
if (item != this && item.path == this.path) {
|
||||
ishas = true;
|
||||
} else if (item.path == "bj/tdh/dubi") {
|
||||
dubi = item;
|
||||
}
|
||||
}, this.environment);
|
||||
if (!ishas && dubi && killer) {
|
||||
var rd = this.random(killer.kar / 2) + killer.kar / 2 > 20;
|
||||
if (rd) {
|
||||
|
||||
killer.notify("白衣女尼对你说道:“多谢这位" + killer.call() + "拔刀相助,贫尼感激不尽,无以为报。这里有一套神行百变身法,你若愿学,贫尼定倾囊以授。");
|
||||
killer.set_temp("fb/tdh/dubi", 1);
|
||||
} else {
|
||||
killer.set_temp("fb/tdh/dubi", 2);
|
||||
killer.notify("白衣女尼对你说道:“多谢这位" + killer.call() + "拔刀相助,贫尼感激不尽。");
|
||||
}
|
||||
}
|
||||
}
|
||||
this.set_drop({
|
||||
obj: "money/silver",
|
||||
min: 5,
|
||||
max: 12
|
||||
}, {
|
||||
obj: ["eq/lv0/cloth", "eq/lv0/dao", "eq/lv0/jian"],
|
||||
odds: 8000
|
||||
},
|
||||
{
|
||||
obj: ["book/bc#mizongxinfa", "book/bc#dashouyin"],
|
||||
odds: 3000
|
||||
});
|
||||
40
world/npc/bj/tdh/li.js
Normal file
40
world/npc/bj/tdh/li.js
Normal file
@@ -0,0 +1,40 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "李力世",
|
||||
desc: "这是一个身材矮小,满连胡须的中年人,身上的衣服又脏又破,脸上满是皱纹,看上去饱经风霜。",
|
||||
gender: 1,
|
||||
age: 55,
|
||||
per: 22,
|
||||
mp: 400,
|
||||
max_mp: 400,
|
||||
hp: 1500,
|
||||
max_hp: 1500,
|
||||
score: 10
|
||||
});
|
||||
this.set_objects([
|
||||
"eq/lv0/cloth", 1, 1,
|
||||
"eq/lv0/dao", 1, 1
|
||||
]);
|
||||
this.skill_map(
|
||||
["dodge", 200],
|
||||
["parry", 200],
|
||||
["force", 200],
|
||||
["unarmed", 200],
|
||||
["blade", 200],
|
||||
["houquan", 200, "unarmed"],
|
||||
["yunlongshenfa", 200, "dodge"],
|
||||
["yunlongxinfa", 200, "force"],
|
||||
["wuhuduanmendao", 200, "blade"]);
|
||||
|
||||
this.set_drop({
|
||||
obj: "money/silver",
|
||||
min: 10,
|
||||
max: 14
|
||||
}, {
|
||||
obj: ["eq/lv0/cloth", "eq/lv0/dao", "eq/lv0/jian"],
|
||||
odds: 8000
|
||||
},
|
||||
{
|
||||
obj: ["book/bc#wuhuduanmendao"],
|
||||
odds: 5000
|
||||
});
|
||||
42
world/npc/bj/tdh/wu.js
Normal file
42
world/npc/bj/tdh/wu.js
Normal file
@@ -0,0 +1,42 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "吴六奇",
|
||||
desc: "这个老叫花,便是天下闻名的“铁丐”吴六奇,向来嫉恶如仇。他在官居广东提督之时,手握一省重兵,受了查伊璜的劝导,心存反清复明之志,暗入天地会,任职洪顺堂香主。",
|
||||
title: "铁丐",
|
||||
gender: 1,
|
||||
age: 55,
|
||||
per: 22,
|
||||
mp: 400,
|
||||
max_mp: 400,
|
||||
hp: 1500,
|
||||
max_hp: 1500,
|
||||
score: 10
|
||||
});
|
||||
this.set_objects([
|
||||
"eq/lv0/cloth", 1, 1
|
||||
]);
|
||||
this.skill_map(
|
||||
["dodge", 200],
|
||||
["parry", 200],
|
||||
["force", 200],
|
||||
["unarmed", 200],
|
||||
["houquan", 250, "unarmed"],
|
||||
["yunlongshenfa", 200, "dodge"],
|
||||
["yunlongxinfa", 200, "force"]);
|
||||
|
||||
this.on_enter = function (me) {
|
||||
me.notify("吴六奇对你喝到:你不是我天地会的人,来这里做什么?");
|
||||
this.do_kill(me);
|
||||
}
|
||||
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#houquan"],
|
||||
odds: 5000
|
||||
});
|
||||
38
world/npc/bj/tdh/xu.js
Normal file
38
world/npc/bj/tdh/xu.js
Normal file
@@ -0,0 +1,38 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "徐天川",
|
||||
desc: "他是青木堂数一数二的好手,手上功夫十分了得,尤其擅使一套猴拳。",
|
||||
title: "天地会青木堂护法",
|
||||
gender: 1,
|
||||
age: 55,
|
||||
per: 22,
|
||||
mp: 400,
|
||||
max_mp: 400,
|
||||
hp: 1000,
|
||||
max_hp: 1000,
|
||||
score: 10
|
||||
});
|
||||
this.set_objects([
|
||||
"eq/lv0/cloth", 1, 1
|
||||
]);
|
||||
this.skill_map(
|
||||
["dodge", 200],
|
||||
["parry", 200],
|
||||
["force", 200],
|
||||
["unarmed", 200],
|
||||
["houquan", 200, "unarmed"],
|
||||
["yunlongshenfa", 200, "dodge"],
|
||||
["yunlongxinfa", 200, "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#houquan"],
|
||||
odds: 5000
|
||||
});
|
||||
44
world/npc/bj/tdh/xuan.js
Normal file
44
world/npc/bj/tdh/xuan.js
Normal file
@@ -0,0 +1,44 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "玄真道长",
|
||||
desc: "这位沉默寡言的道人,便是天地会青木堂护法。他是青木堂数一数二的好手,一柄长剑使得出神入化。",
|
||||
title: "天地会青木堂护法",
|
||||
gender: 1,
|
||||
age: 55,
|
||||
per: 22,
|
||||
mp: 400,
|
||||
max_mp: 400,
|
||||
hp: 2000,
|
||||
max_hp: 2000,
|
||||
score: 10
|
||||
});
|
||||
this.on_enter = function (me) {
|
||||
me.notify("玄真道长对你喝到:你不是我天地会的人,来这里做什么?");
|
||||
this.do_kill(me);
|
||||
}
|
||||
this.set_objects([
|
||||
"eq/lv0/cloth", 1, 1
|
||||
], ["eq/lv0/jian", 1, 1]);
|
||||
this.skill_map(
|
||||
["dodge", 200],
|
||||
["parry", 200],
|
||||
["force", 200],
|
||||
["unarmed", 200],
|
||||
["sword", 200],
|
||||
["houquan", 200, "unarmed"],
|
||||
["yunlongjian", 200, "sword"],
|
||||
["yunlongshenfa", 200, "dodge"],
|
||||
["yunlongxinfa", 200, "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#yunlongjian"],
|
||||
odds: 1000
|
||||
});
|
||||
Reference in New Issue
Block a user