init: add workspace files
This commit is contained in:
45
world/npc/yz/cuifu/cui.js
Normal file
45
world/npc/yz/cuifu/cui.js
Normal file
@@ -0,0 +1,45 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "崔员外",
|
||||
desc: "崔府的主人,满脸肥肉,据说他鱼肉乡里,坏事做尽",
|
||||
title: "财主",
|
||||
gender: 1,
|
||||
age: 55,
|
||||
per: 15,
|
||||
mp: 500,
|
||||
max_mp: 500,
|
||||
hp: 500,
|
||||
max_hp: 500,
|
||||
score:30
|
||||
});
|
||||
this.set_objects(
|
||||
["eq/lv0/cloth", 1, 1]
|
||||
);
|
||||
this.skill_map(
|
||||
["unarmed",30],
|
||||
["dodge", 30],
|
||||
["sword", 30],
|
||||
["blade", 30],
|
||||
["parry", 30]);
|
||||
this.set_drop({
|
||||
obj: "money/silver",
|
||||
min: 10,
|
||||
max: 20
|
||||
}, {
|
||||
obj: ["eq/lv0/cloth", "eq/lv0/jian"],
|
||||
odds: 5000
|
||||
}, {
|
||||
obj: "eq/lv1/gold_ring",
|
||||
odds: 1000
|
||||
});
|
||||
|
||||
this.on_enter = function (target) {
|
||||
if (target.is("yz/cuifu/yahuan")) {
|
||||
this.send_room("<hir>崔员外对丫鬟叫道:小娘皮,竟然想跑?</hir>");
|
||||
this.do_kill(target);
|
||||
|
||||
} else {
|
||||
target.notify("崔员外扯着嗓子喊道:管家,管家,有人闯进来了。");
|
||||
}
|
||||
|
||||
}
|
||||
32
world/npc/yz/cuifu/guanjia.js
Normal file
32
world/npc/yz/cuifu/guanjia.js
Normal file
@@ -0,0 +1,32 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "管家",
|
||||
desc: "崔府的管家,据说掌管着崔府的钥匙",
|
||||
gender: 1,
|
||||
age: 65,
|
||||
per: 15,
|
||||
mp: 250,
|
||||
max_mp: 250,
|
||||
hp: 250,
|
||||
max_hp: 250,
|
||||
score: 20
|
||||
});
|
||||
this.set_objects(
|
||||
["eq/lv0/cloth", 1, 1]
|
||||
);
|
||||
this.skill_map(
|
||||
["unarmed", 20],
|
||||
["dodge", 20],
|
||||
["sword", 20],
|
||||
["parry", 20]);
|
||||
this.set_drop({
|
||||
obj: "money/silver",
|
||||
min: 2,
|
||||
max: 5
|
||||
}, {
|
||||
obj: "sp/yz/yaoshi",
|
||||
odds: 5000
|
||||
}, {
|
||||
obj: ["eq/lv0/cloth", "eq/lv0/mugun"],
|
||||
odds: 3000
|
||||
});
|
||||
33
world/npc/yz/cuifu/jiading.js
Normal file
33
world/npc/yz/cuifu/jiading.js
Normal file
@@ -0,0 +1,33 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "家丁",
|
||||
desc: "崔府的家丁",
|
||||
gender: 1,
|
||||
age: 25,
|
||||
per: 15,
|
||||
mp: 100,
|
||||
max_mp: 100,
|
||||
hp: 100,
|
||||
max_hp: 100,
|
||||
score: 10
|
||||
});
|
||||
this.skill_map(
|
||||
["club", 15],
|
||||
["dodge", 15],
|
||||
["sword", 15],
|
||||
["parry", 15]);
|
||||
this.set_objects(
|
||||
["eq/lv0/cloth", 1, 1],
|
||||
["eq/lv0/mugun", 1, 1]
|
||||
);
|
||||
this.set_drop({
|
||||
obj: "money/coin",
|
||||
min: 10,
|
||||
max: 30
|
||||
}, {
|
||||
obj: ["eq/lv0/cloth", "eq/lv0/mugun"],
|
||||
odds:3000
|
||||
}, {
|
||||
obj: ["eq/lv0/jd_cloth", "eq/lv0/jd_shoes"],
|
||||
odds: 3000
|
||||
});
|
||||
22
world/npc/yz/cuifu/langgou.js
Normal file
22
world/npc/yz/cuifu/langgou.js
Normal file
@@ -0,0 +1,22 @@
|
||||
this.inherits(MONSTER);
|
||||
this.set({
|
||||
name: "大狼狗",
|
||||
desc: "一只昂首挺胸,吐着长舌头的大狼狗。像是财主家里养的宠物。",
|
||||
gender: 1,
|
||||
mp: 100,
|
||||
max_mp: 100,
|
||||
hp: 100,
|
||||
max_hp: 100,
|
||||
score: 5
|
||||
});
|
||||
this.skill_map(
|
||||
["bite", 20]);
|
||||
//drop path,min,max,per
|
||||
this.set_drop({
|
||||
obj: "res/pimao1",
|
||||
min: 1,
|
||||
max: 4
|
||||
});
|
||||
this.on_enter = function (me) {
|
||||
this.do_kill(me);
|
||||
}
|
||||
48
world/npc/yz/cuifu/yahuan.js
Normal file
48
world/npc/yz/cuifu/yahuan.js
Normal file
@@ -0,0 +1,48 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "丫鬟",
|
||||
desc: "她是一个长得很好看的小姑娘。",
|
||||
gender: 2,
|
||||
age: 16,
|
||||
per: 30,
|
||||
mp: 100,
|
||||
max_mp: 100,
|
||||
hp: 100,
|
||||
max_hp: 100,
|
||||
score: -10,
|
||||
exp: 0,
|
||||
pot:0
|
||||
|
||||
});
|
||||
this.add_action("ok", "救出丫鬟", function (me) {
|
||||
|
||||
var type = me.query_temp("fb/cuifu/yahuan");
|
||||
if (!type) {
|
||||
me.send_room("$N看了看$n,把旁边的衣服丢给$n,道:穿好衣服,我带你出去。\n$n穿上她的衣服。",this);
|
||||
this.do_follow(me);
|
||||
me.set_temp("fb/cuifu/yahuan", 1);
|
||||
me.add_fbscore(10);
|
||||
} else {
|
||||
if (type == 2 || type == 4) {
|
||||
///me.notify("<hic>你刚想要答应丫鬟,想起来自己还没房子,也是无家可归的人,就没想法了。</hic>");
|
||||
if (me.add_follower(this)) {
|
||||
me.notify("你想了一下觉得这个小丫头也怪可怜的,便对她说道:好吧,你就先跟着我吧!");
|
||||
me.notify("<him>你获得了丫鬟的追随,你可以去你的住所找她。</him>");
|
||||
this.do_follow(null);
|
||||
this.destroy();
|
||||
}
|
||||
|
||||
} else {
|
||||
me.notify("你已经答应她了。");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
this.on_enter = function (me) {
|
||||
if (!this.follow_target && !me.query_temp("fb/cuifu/yahuan")) {
|
||||
me.notify("丫鬟看到你进来,吓了一跳,待看清来人,扑到你前面泣声喊道:大人,救救我!", this);
|
||||
me.send_commands("ok " + this.id, "答应她");
|
||||
}
|
||||
}
|
||||
33
world/npc/yz/cuifu/yingying.js
Normal file
33
world/npc/yz/cuifu/yingying.js
Normal file
@@ -0,0 +1,33 @@
|
||||
this.inherits(NPC);
|
||||
this.set({
|
||||
name: "崔莺莺",
|
||||
desc: "她长得极美,尤其是那对眼睛,媚得直可以勾人魂魄。",
|
||||
title: "财主女儿",
|
||||
gender: 2,
|
||||
age: 17,
|
||||
per: 34,
|
||||
mp: 100,
|
||||
max_mp: 100,
|
||||
hp: 100,
|
||||
max_hp: 100,
|
||||
});
|
||||
this.set_drop({
|
||||
obj: "money/silver",
|
||||
min: 1,
|
||||
max: 5
|
||||
}, {
|
||||
obj: "eq/lv1/cui_sz",
|
||||
odds: 1000
|
||||
});
|
||||
|
||||
this.set_ask("东厢", function (me) {
|
||||
if (me.query_temp("fb/cuifu/yahuan") == 2) {
|
||||
me.notify("崔莺莺想了想,告诉你:我记得爹爹在东厢的柜子下面放了个小箱子。");
|
||||
me.set_temp("fb/cuifu/yahuan", 3);
|
||||
return true;
|
||||
} else if (me.query_temp("fb/cuifu/yahuan") == 4) {
|
||||
me.notify("崔莺莺说道:你不是已经找到了吗?");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
Reference in New Issue
Block a user