53 lines
1.2 KiB
JavaScript
53 lines
1.2 KiB
JavaScript
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;
|
|
} |