init: add workspace files
This commit is contained in:
38
world/npc/yz/lm/liumang.js
Normal file
38
world/npc/yz/lm/liumang.js
Normal file
@@ -0,0 +1,38 @@
|
||||
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);
|
||||
}
|
||||
41
world/npc/yz/lm/lmtou.js
Normal file
41
world/npc/yz/lm/lmtou.js
Normal file
@@ -0,0 +1,41 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "流氓头",
|
||||
desc: "流氓巷里的流氓小头目。",
|
||||
gender: 1,
|
||||
age: 25,
|
||||
per: 20,
|
||||
mp: 500,
|
||||
max_mp: 500,
|
||||
hp: 500,
|
||||
max_hp: 500,
|
||||
score: 20
|
||||
});
|
||||
this.skill_map(
|
||||
["sword", 80],
|
||||
["dodge", 80],
|
||||
["parry", 80]);
|
||||
this.set_objects(
|
||||
["eq/lv1/lm_cloth", 1, 1],
|
||||
["eq/lv1/lm_jian", 1, 1]
|
||||
);
|
||||
this.set_drop({
|
||||
obj: "money/silver",
|
||||
min: 2,
|
||||
max: 10
|
||||
}, {
|
||||
obj: ["eq/lv0/cloth", "eq/lv0/jian"],
|
||||
odds: 6000
|
||||
}, {
|
||||
obj: ["eq/lv1/lm_head", "eq/lv1/lm_cloth", "eq/lv1/lm_shoes", "eq/lv1/lm_shou", "eq/lv1/lm_jian", "eq/lv1/lm_gun"],
|
||||
odds: 3000
|
||||
});
|
||||
|
||||
this.on_kill = function (me) {
|
||||
if (this.call_lm) return;
|
||||
this.call_lm = true;
|
||||
this.send_message("流氓头叫道:哪里来王八蛋来这里撒野");
|
||||
NPC.CREATE("yz/lm/liumang", this.environment, function (bing) {
|
||||
bing.do_kill(me);
|
||||
}, 2);
|
||||
}
|
||||
68
world/npc/yz/lm/xiaolm.js
Normal file
68
world/npc/yz/lm/xiaolm.js
Normal file
@@ -0,0 +1,68 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "小流氓",
|
||||
desc: "他是流氓巷里的小流氓,整天无所事事,吊儿郎当",
|
||||
gender: 1,
|
||||
age: 18,
|
||||
per: 20,
|
||||
str: 30,
|
||||
con: 20,
|
||||
dex: 15,
|
||||
int:15,
|
||||
mp: 100,
|
||||
max_mp: 100,
|
||||
hp: 200,
|
||||
max_hp: 200,
|
||||
score: 5
|
||||
});
|
||||
this.set_objects(
|
||||
["eq/lv0/cloth", 1, 1]
|
||||
);
|
||||
this.skill_map(
|
||||
["unarmed", 30],
|
||||
["sword", 30],
|
||||
["dodge", 30],
|
||||
["parry", 30]);
|
||||
this.set_drop({
|
||||
obj: "money/coin",
|
||||
min: 10,
|
||||
max: 20
|
||||
}, {
|
||||
obj: ["eq/lv0/cloth", "eq/lv0/shoes", "eq/lv0/jin"],
|
||||
odds: 8000
|
||||
},{
|
||||
obj: "sp/npc#liumang",
|
||||
odds: 40
|
||||
});
|
||||
|
||||
this.on_kill = function (me) {
|
||||
this.each_item(item=> {
|
||||
if (item!=this&& item.path == this.path) {
|
||||
this.send_room("$N喊道:兄弟们有人搞事,并肩子上!");
|
||||
item.do_kill(me);
|
||||
}
|
||||
}, this.environment);
|
||||
}
|
||||
//this.on_die = function (me) {
|
||||
// if (!me) {
|
||||
// return;
|
||||
// }
|
||||
// if (me.can_follow(this)) {
|
||||
// me.notify("小流氓抓着你腿,痛哭流涕哭喊到:大人饶命啊,小的上有老下有小,只要大人放小的一马,小的一定鞍前马后追随大人你!");
|
||||
// me.send_commands("ok " + this.id, "答应他", "no " + this.id, "不要");
|
||||
// this.end_fight();
|
||||
// return false;
|
||||
// }
|
||||
//}
|
||||
//this.add_action("ok", null, function (me) {
|
||||
// if (me.add_follower(this)) {
|
||||
// me.notify("你想了一下觉得有个小弟使唤也不错,便点头到:好吧,我就收下你当小弟,以后就看你表现!");
|
||||
// me.notify("<him>你获得了小流氓的追随,你可以去你的住所找他。</him>");
|
||||
// this.destroy();
|
||||
// }
|
||||
|
||||
//});
|
||||
//this.add_action("no", null, function (me) {
|
||||
// me.notify("你大怒道:一个小流氓也想跟着我。手起刀落,小流氓就躺在地上了!");
|
||||
// this.die(me);
|
||||
//});
|
||||
41
world/npc/yz/lm/zhao.js
Normal file
41
world/npc/yz/lm/zhao.js
Normal file
@@ -0,0 +1,41 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "赵三拳",
|
||||
desc: "流氓巷里的流氓头领,神神秘秘的整天在巷子最里面不知道在干嘛",
|
||||
title: "流氓头领",
|
||||
gender: 1,
|
||||
age: 32,
|
||||
per: 22,
|
||||
mp: 1200,
|
||||
max_mp: 1200,
|
||||
hp: 1200,
|
||||
max_hp: 1200,
|
||||
score: 20
|
||||
});
|
||||
this.set_chat_msg([
|
||||
"赵三拳嘀嘀咕咕的说道:不对啊,我照这本书练,怎么没什么长进。",
|
||||
"赵三拳呸了一声:崔员外那厮,孝敬的都是些什么破烂玩意。。",
|
||||
"赵三拳嘿嘿笑道:好久没去找小红了,等学会这个武功就去丽春院逛逛。"
|
||||
]); this.set_objects(
|
||||
["eq/lv1/xk_cloth", 1, 1]
|
||||
);
|
||||
this.skill_map(
|
||||
["unarmed", 100],
|
||||
["dodge", 100],
|
||||
["parry", 100],
|
||||
["blade", 100], ["taizuchangquan", 100, "unarmed"]);
|
||||
this.set_drop({
|
||||
obj: "money/silver",
|
||||
min: 5,
|
||||
max: 10
|
||||
}, {
|
||||
obj: ["eq/lv0/cloth", "eq/lv0/mugun", "eq/lv0/jian", "sp/yz/qiantiao"],
|
||||
odds: 8000
|
||||
},
|
||||
{
|
||||
obj: ["book/book#unarmed", "book/book#parry", "book/book#dodge", "book/book#force"],
|
||||
odds: 8000
|
||||
}, {
|
||||
obj: ["eq/lv1/lm_head", "eq/lv1/lm_cloth", "eq/lv1/lm_shoes", "eq/lv1/lm_shou", "eq/lv1/lm_jian", "book/bc#taizuchangquan"],
|
||||
odds: 9000
|
||||
});
|
||||
Reference in New Issue
Block a user