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

26
world/obj/sp/yz/box1.js Normal file
View File

@@ -0,0 +1,26 @@
this.inherits(OBJ);
this.set({
name: "小箱子",
desc: "这是在崔员外家找到的一个小箱子,不知道里面放了些了什么。",
unit: "个",
value: 0,
grade:2
});
this.on_open = function (me) {
return OBJ.create_by_odds([{
obj: "money/gold",
min: 1,
max:10
}, {
obj: ["book/book#unarmed", "book/book#parry", "book/book#dodge", "book/book#sword"],
odds: 10000
}, {
obj: ["st/st_blu", "st/st_red", "st/st_gre", "st/st_yel"],
min: 1,
max: 3,
odds: 5000
}, {
obj: ["eq/lv1/pifeng"],
odds: 2000
}]);
}

View File

@@ -0,0 +1,8 @@
this.inherits(OBJ);
this.set({
name: "欠条",
desc: "这是一张从流氓头身上搜出来的条子,上面歪歪扭扭的写着:\n因欠韦老板黄金5两抵押本人武器拳套千斤拳一副三日内凭此据赎回。赵三拳立",
unit: "张",
value: 0,
combined: false
});

16
world/obj/sp/yz/xin.js Normal file
View File

@@ -0,0 +1,16 @@
this.inherits(OBJ);
this.set({
name: "崔员外的信",
desc: "这是一封崔员外写给扬州城外流氓头的信,还没送出去。上面火漆封口也不知道是什么内容。",
unit: "封",
value: 0,
combined:false
});
this.add_action("chai", "拆开", function (me) {
var str = '史兄弟在上:/n近日愚兄偶得一本武林秘籍《奋进》,听闻兄弟醉心武学故奉上供兄弟研究另献上本月供奉100两黄金。望史兄弟武运昌隆庇佑愚兄。';
me.notify(str);
me.notify("这封信应该是崔员外府上的管家代写的,秀才硬要充草莽,又酸又假装豪放,不知道这个信上说的史兄弟是哪个山头的贼人。");
});

View File

@@ -0,0 +1,7 @@
this.inherits(OBJ);
this.set({
name: "东厢钥匙",
desc: "这是一把很普通的钥匙,在崔员外家找到的",
unit: "把",
value: 10,
});