Files
wsmud/world/npc/bj/guanwai/chuanfu.js
2026-05-26 16:41:20 +08:00

38 lines
1017 B
JavaScript
Raw Permalink 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: 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;
}
}
}