init: add workspace files

This commit is contained in:
2026-05-26 16:41:20 +08:00
commit f4f2393f72
1041 changed files with 67405 additions and 0 deletions

43
world/npc/new/daoshi.js Normal file
View File

@@ -0,0 +1,43 @@
this.inherits(NPC);
this.set({
name: "<hic>指引者</hic>",
desc: "她是一位漂亮的女性,脸上笑眯眯的",
title: "<hig>新手导师</hig>",
gender: 2,
age: 20,
per: 41,
mp: 1500,
max_mp: 1500,
hp: 1500,
max_hp: 1500,
});
this.set_objects([
"sp/new/qicai", 1, 1
]);
this.query_commands_json = function (player, isyb) {
var json = {};
json.type = "item";
json.desc = this.desc;
json.id = this.id;
json.commands = [];
json.commands.push({
cmd: "look " + this.id,
name: "查看"
});
if (this.actions) {
for (var cmd in this.actions) {
if (!this.actions[cmd].name) continue;
json.commands.push({
cmd: cmd + " " + this.id,
name: this.actions[cmd].name
});
}
}
return JSON.stringify(json);
}

17
world/npc/new/mutouren.js Normal file
View File

@@ -0,0 +1,17 @@
this.inherits(NPC);
this.set({
name: "<hiw>木头人</hiw>",
desc: "这是一个木头做的假人,用来训练新手用的",
gender: 1,
age: 10,
per: 22,
mp: 60,
max_mp: 60,
hp: 60,
max_hp: 60,
dex: 20,
str:4
});
this.set_drop({
obj: "sp/new/mutou"
});