Files
wsmud/world/npc/yz/cuifu/yahuan.js
2026-05-26 16:41:20 +08:00

48 lines
1.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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, "答应她");
}
}