Skip to content

Commit

Permalink
少许调整
Browse files Browse the repository at this point in the history
  • Loading branch information
kerlw committed Feb 24, 2016
1 parent 01e7217 commit 0d3b9ad
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
4 changes: 3 additions & 1 deletion fun/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
function refresh_newbie(who) {
who.eff_vitality = who.max_vitality;
who.vitality = who.max_vitality;
FUNCTIONS.message_vision('$(HIY)一道金色光芒罩住了$N的全身上下,"嗖"的一声,$N就突然消失了……$NOR', who);
FUNCTIONS.message_vision('\n$(HIY)一道金色光芒罩住了$N的全身上下,"嗖"的一声,$N就突然消失了……$NOR\n', who);

who.set_tmp('newbie_refresh', 1);
who.move_to(_objs.rooms['xinshoucun/cunzhongyang']);
return 1;
}
Expand Down
3 changes: 1 addition & 2 deletions xinshoucun/newbie001.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ var newbie001 = fm.extend(function() {

this.name = "世界入口",
this.desc = "这里云雾缭绕仿如仙境,却又缺乏光线,什么也看不清,从东方隐隐约约传来人声。",
this.set_flag("no_fight", 1);
this.set("no_fight", 1);
this.exits = {
"north" : "wuhan/baihudajie001",
"east" : "xinshoucun/newbie002"
};

Expand Down
15 changes: 10 additions & 5 deletions xinshoucun/npc/laocunzhang.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,17 @@ laocunzhang.prototype.lazy_init = function() {
_daemons.questd.setup_publisher(this);
}

laocunzhang.prototype.setup_commands = function(who) {
if (who.query_tmp('newbie_refresh')) {
who.del_tmp('newbie_refresh');
FUNCTIONS.message_vision("$N拍拍$n的肩膀鼓励到:别灰心,继续努力。", this, who);
}
}

laocunzhang.prototype.visiable_inquiry = function(id, who) {
if (!who && !who.is_player())
if (!who || !who.is_player())
return 0;

if (id === 'here')
return 1;

if (id === 'kill_rat') {
if (who.query_flag('q_kill_rat_done'))
return 0;
Expand All @@ -42,6 +46,7 @@ laocunzhang.prototype.visiable_inquiry = function(id, who) {
return 1;
return 0;
}
return 1;
}

laocunzhang.prototype.inquiry_kill_rat = function(who) {
Expand All @@ -66,7 +71,7 @@ laocunzhang.prototype.inquiry_kill_rat = function(who) {
}

laocunzhang.prototype.inquiry_world = function(who) {
FUNCTIONS.message_vision("$N对$n哈哈笑道:哈哈哈哈……我这就送你去大千世界见识一番吧。", this, who);
FUNCTIONS.message_vision("$N对$n哈哈笑道哈哈哈哈……我这就送你去大千世界见识一番吧。", this, who);
FUNCTIONS.tell_object(who, "\n$(WHT)一道刺眼的白光让你不自觉的闭上了双眼,你只觉得天旋地转,似正坠入无底深渊般……$NOR");
who.set_tmp('entering_world', 1);
who.move_to(_objs.rooms['xiangyang/chengnankezhan']);
Expand Down

0 comments on commit 0d3b9ad

Please sign in to comment.