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

View File

@@ -0,0 +1,53 @@
this.inherits(NPC);
this.set({
name: "蒙古密探",
desc: "鬼鬼祟祟的,一看就有问题",
gender: 1,
age: 25,
per: 17,
max_mp: 160000,
max_hp: 160000,
no_refresh: true
});
this.skill_map(
["dodge", 300],
["parry", 300],
["force", 300],
["unarmed", 300],
["club", 300],
["mengguqiangfa", 300, ["club", "parry"]],
["mengguxinfa", 300, "force"],
["dashouyin", 300, "unarmed"],
["feiyanzoubi", 300, "dodge"]);
// this.set_drop({
// obj: ["sp/mihan"]
// });
this.on_die = function (killer) {
if (WORLD.DATA.query_temp("xy_status")) {
return this.call_out(this.relive, 600000);
}
var task = TASK.GET("xiangyang");
if (!task || task.is_start)
return this.call_out(this.relive, 600000);
task.on_mihan(killer);
this.call_out(this.relive, 3600000);
}
this.relive = function () {
var task = TASK.GET("xiangyang");
if (!task || task.is_start) {
this.call_out(this.relive, 60000);
return;
}
var obj = NPC.CLONE(this.path);
var rm = task.xy_area.rooms.random();
obj.moveto(rm);
// this.do_command('chat', rm.name);
this.die_room = null;
this.equipment = null;
this.items = null;
this.skills = null;
}

View File

@@ -0,0 +1,32 @@
this.inherits(NPC);
this.set({
name: "<hic>守城低保CD重置</hic>",
desc: "减掉你今天手残领取低保的军功重置你的守城CD24小时有效",
gender: 1,
age: 45,
per: 27,
max_mp: 9000000,
max_hp: 9000000,
level: 3,
pfm_rate: 1,
prop: {
gj: 20000,
fy: 20000,
mz: 20000,
zj: 20000,
ds: 30000,
diff_sh: 10000
}
});
this.on_kill = function (me) {
return false;
}
this.add_action("xycz", "确定重置CD", function (me) {
var t=me.query_temp('xy_cz');
if (!t) return me.notify("这里只处理没报名却领军功然后又后悔要重置CD的问题。");
var jg=me.add_temp("jungong", -200);
me.remove_temp("xy_cz");
me.remove_temp("xy_hd");
var obj=me.add_obj("sp/mihan");
me.notify("已扣除掉你领取的低保军功200重置守城CD你获得了一个" + obj .color_name+ "。");
});

33
world/npc/xiangyang/ge.js Normal file
View File

@@ -0,0 +1,33 @@
this.inherits(NPC);
this.set({
name: "蒙哥",
desc: "蒙古国的大汉,拖雷长子,率领蒙古大军南征北战,屡立战功",
title: "<hio>蒙古大汗</hio>",
gender: 1,
age: 55,
per: 27,
max_mp: 8000000,
max_hp: 8000000,
level: 3,
no_refresh: true,
pfm_rate: 1,
prop: {
gj: 20000,
fy: 20000,
mz: 25000,
zj: 20000,
ds: 20000,
diff_sh: 12000
}
});
this.skill_map(
["dodge", 2000],
["parry", 2000],
["force", 2000],
["unarmed", 2000],
["club", 2000],
["mengguqiangfa", 2000, ["club", "parry"]],
["longxianggong", 2000, ["unarmed", "force"]],
["feiyanzoubi", 2000, "dodge"]);

View File

@@ -0,0 +1,52 @@
this.inherits(NPC);
this.set({
name: "郭靖",
desc: "被尊为“天下第一侠士”,率领群雄守护着南宋襄阳城的前线边境",
title: "<hio>北侠</hio>",
gender: 1,
age: 45,
per: 27,
max_mp: 9000000,
max_hp: 9000000,
level: 3,
pfm_rate: 1,
no_fight: true,
prop: {
gj: 20000,
fy: 20000,
mz: 20000,
zj: 20000,
ds: 30000,
diff_sh: 10000
}
});
this.on_kill = function (me) {
return false;
}
this.skill_map(
["dodge", 3000],
["parry", 3000],
["force", 3000],
["unarmed", 3000],
["club", 3000],
["dagoubang", 3000, "club"],
["yijinjing", 3000, "force"],
["xianglongzhang", 3000, ["unarmed", "parry"]],
["zhutianbu", 3000, "dodge"]);
this.query_commands = function (player) {
var json = {};
json.type = "item";
json.desc = this.desc;
json.id = this.id;
json.commands = [];
json.commands.push({
cmd: "look " + this.id,
name: "查看"
});
this.json = JSON.stringify(json)
return this.json;
}

View File

@@ -0,0 +1,31 @@
this.inherits(NPC);
this.set({
name: "蒙古兵",
desc: "蒙古兵的万夫长,狡勇善战",
title: "<hio>万夫长</hio>",
gender: 1,
age: 65,
per: 27,
max_mp: 4000000,
max_hp: 4000000,
level: 3,
no_refresh: true,
pfm_rate: 1,
prop: {
gj: 15000,
fy: 15000,
mz: 15000,
zj: 10000,
ds: 15000,
diff_sh: 10000
}
});
this.skill_map(
["dodge", 1500],
["parry", 1500],
["force", 1500],
["unarmed", 1500],
["club", 1500],
["mengguqiangfa", 1500, ["club", "parry"]],
["longxianggong", 1500, ["unarmed", "force"]],
["feiyanzoubi", 1500, "dodge"]);

View File

@@ -0,0 +1,31 @@
this.inherits(NPC);
this.set({
name: "蒙古兵",
desc: "蒙古兵的千夫长,狡勇善战",
title: "<hiz>千夫长</hiz>",
gender: 1,
age: 65,
per: 27,
max_mp: 2000000,
max_hp: 2000000,
level: 3,
no_refresh: true,
pfm_rate: 1,
prop: {
gj: 12000,
fy: 12000,
mz: 12000,
zj: 9000,
ds: 12000,
diff_sh: 6000
}
});
this.skill_map(
["dodge", 1200],
["parry", 1200],
["force", 1200],
["unarmed", 1200],
["club", 1200],
["mengguqiangfa", 1200, ["club", "parry"]],
["longxianggong", 1200, ["unarmed", "force"]],
["feiyanzoubi", 1200, "dodge"]);

View File

@@ -0,0 +1,31 @@
this.inherits(NPC);
this.set({
name: "蒙古兵",
desc: "蒙古兵的百夫长,狡勇善战",
title: "<hiy>百夫长</hiy>",
gender: 1,
age: 65,
per: 27,
max_mp: 500000,
max_hp: 500000,
level: 3,
no_refresh: true,
pfm_rate: 1,
prop: {
gj: 7000,
fy: 7000,
mz: 7000,
zj: 7000,
zj: 1500,
ds: 4000
}
});
this.skill_map(
["dodge", 900],
["parry", 900],
["force", 900],
["unarmed", 900],
["club", 900],
["mengguqiangfa", 900, ["club", "parry"]],
["longxianggong", 900, ["unarmed", "force"]],
["feiyanzoubi", 900, "dodge"]);

View File

@@ -0,0 +1,29 @@
this.inherits(NPC);
this.set({
name: "蒙古兵",
desc: "蒙古兵的十夫长,狡勇善战",
title: "<hic>十夫长</hic>",
gender: 1,
age: 65,
per: 27,
max_mp: 200000,
max_hp: 200000,
level: 2,
no_refresh: true,
pfm_rate: 1,
prop: {
gj: 4000,
fy: 4000,
mz: 4000,
ds: 2000
}
});
this.skill_map(
["dodge", 600],
["parry", 600],
["force", 600],
["unarmed", 600],
["club", 600],
["mengguqiangfa", 600, ["club", "parry"]],
["longxianggong", 600, ["unarmed", "force"]],
["feiyanzoubi", 600, "dodge"]);

View File

@@ -0,0 +1,30 @@
this.inherits(NPC);
this.set({
name: "蒙古兵",
desc: "进攻襄阳城的蒙古兵,狡勇善战",
title: "<hig>蒙古兵</hig>",
gender: 1,
age: 35,
per: 27,
max_mp: 30000,
max_hp: 30000,
level: 1,
no_refresh: true,
pfm_rate: 1,
prop: {
gj: 2000,
fy: 2000,
mz: 2000,
zj: -700
}
});
this.skill_map(
["dodge", 300],
["parry", 300],
["force", 300],
["unarmed", 300],
["club", 300],
["mengguqiangfa", 300, ["club", "parry"]],
["mengguxinfa", 300, "force"],
["dashouyin", 300, "unarmed"],
["feiyanzoubi", 300, "dodge"]);

View File

@@ -0,0 +1,43 @@
this.inherits(NPC);
this.set({
name: "守卫",
desc: "襄阳城的守卫者,常年驻守襄阳,勇猛异常",
title: "<hio>指挥使</hio>",
gender: 1,
age: 65,
per: 27,
max_mp: 2000000,
max_hp: 2000000,
level: 3,
no_refresh: true,
no_fight: true,
pfm_rate: 1,
prop: {
gj: 15000,
fy: 15000,
mz: 15000,
zj: 10700,
ds: 15000,
diff_sh: 10000
}
});
this.on_kill = function (me) {
return false;
}
this.skill_map(
["dodge", 1500],
["parry", 1500],
["force", 1500],
["unarmed", 1500],
["club", 1500],
["zhongpingqiang", 1500, ["club", "parry"]],
["xianglongzhang", 1500, "unarmed"],
["huntianqigong", 1500, "force"],
["feiyanzoubi", 1500, "dodge"]);
this.on_die = function (me) {
if (me.is_player) {
me.add_temp('jg', -300);
me.notify('<red>你击杀了襄阳守军军功减少300。</red>');
}
}

View File

@@ -0,0 +1,43 @@
this.inherits(NPC);
this.set({
name: "守卫",
desc: "襄阳城的守卫者,常年驻守襄阳,勇猛异常",
title: "<hiz>副指挥使</hiz>",
gender: 1,
age: 55,
per: 33,
max_mp: 1000000,
max_hp: 1000000,
level: 3,
no_refresh: true,
no_fight: true,
pfm_rate: 1,
prop: {
gj: 12000,
fy: 12000,
mz: 12000,
zj: 8700,
ds: 12000,
diff_sh: 6000
}
});
this.on_kill = function (me) {
return false;
}
this.skill_map(
["dodge", 1200],
["parry", 1200],
["force", 1200],
["unarmed", 1200],
["club", 1200],
["zhongpingqiang", 1200, ["club", "parry"]],
["huntianqigong", 1200, "force"],
["xianglongzhang", 1200, "unarmed"],
["feiyanzoubi", 1200, "dodge"]);
this.on_die = function (me) {
if (me.is_player) {
me.add_temp('jg', -200);
me.notify('<red>你击杀了襄阳守军军功减少200。</red>');
}
}

View File

@@ -0,0 +1,42 @@
this.inherits(NPC);
this.set({
name: "守卫",
desc: "襄阳城的守卫者,常年驻守襄阳,勇猛异常",
title: "<hiy>都头</hiy>",
gender: 1,
age: 45,
per: 27,
max_mp: 500000,
max_hp: 500000,
level: 3,
no_refresh: true,
no_fight: true,
pfm_rate: 1,
prop: {
gj: 9000,
fy: 9000,
mz: 9000,
zj: 3500,
ds: 6000
}
});
this.on_kill = function (me) {
return false;
}
this.skill_map(
["dodge", 900],
["parry", 900],
["force", 900],
["unarmed", 900],
["club", 900],
["zhongpingqiang", 900, ["club", "parry"]],
["huntianqigong", 900, "force"],
["xianglongzhang", 900, "unarmed"],
["feiyanzoubi", 900, "dodge"]);
this.on_die = function (me) {
if (me.is_player) {
me.add_temp('jg', -100);
me.notify('<red>你击杀了襄阳守军军功减少100。</red>');
}
}

View File

@@ -0,0 +1,42 @@
this.inherits(NPC);
this.set({
name: "守卫",
desc: "襄阳城的守卫者,常年驻守襄阳,勇猛异常",
title: "<hic>副都头</hic>",
gender: 1,
age: 35,
per: 27,
max_mp: 200000,
max_hp: 200000,
level: 3,
no_refresh: true,
no_fight: true,
pfm_rate: 1,
prop: {
gj: 5000,
fy: 5000,
mz: 5000,
zj: 800,
ds: 2000
}
});
this.on_kill = function (me) {
return false;
}
this.skill_map(
["dodge", 600],
["parry", 600],
["force", 600],
["unarmed", 600],
["club", 600],
["zhongpingqiang", 600, ["club", "parry"]],
["huntianqigong", 600, "force"],
["taizuchangquan", 600, "unarmed"],
["feiyanzoubi", 600, "dodge"]);
this.on_die = function (me) {
if (me.is_player) {
me.add_temp('jg', -50);
me.notify('<red>你击杀了襄阳守军军功减少50。</red>');
}
}

View File

@@ -0,0 +1,43 @@
this.inherits(NPC);
this.set({
name: "守卫",
desc: "襄阳城的守卫者,常年驻守襄阳,勇猛异常",
title: "<hig>守卫</hig>",
gender: 1,
age: 25,
per: 27,
max_mp: 100000,
max_hp: 100000,
level: 3,
no_refresh: true,
no_fight: true,
pfm_rate: 1,
prop: {
gj: 2000,
fy: 2000,
mz: 2000,
zj: 300,
ds: 1000
}
});
this.on_kill = function (me) {
return false;
}
this.skill_map(
["dodge", 300],
["parry", 300],
["force", 300],
["unarmed", 300],
["club", 300],
["zhongpingqiang", 300, ["club", "parry"]],
["huntianqigong", 300, "force"],
["taizuchangquan", 300, "unarmed"],
["feiyanzoubi", 300, "dodge"]);
this.on_die = function (me) {
if (me.is_player) {
me.add_temp('jg', -30);
me.notify('<red>你击杀了襄阳守军军功减少30。</red>');
}
}