Commit 0399f41b authored by mercury233's avatar mercury233

update tip

parent 8664ea59
...@@ -1312,7 +1312,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server)-> ...@@ -1312,7 +1312,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server)->
return msg.match(regexp) return msg.match(regexp)
, msg)) , msg))
log.warn "BAD WORD LEVEL 2", client.name, client.remoteAddress, oldmsg log.warn "BAD WORD LEVEL 2", client.name, client.remoteAddress, oldmsg
ygopro.stoc_send_chat(client, "您的发言存在不适当的内容,已被屏蔽,并记录一次违规!", ygopro.constants.COLORS.RED) ygopro.stoc_send_chat(client, "您的发言存在不适当的内容,发送失败,并记录一次违规!", ygopro.constants.COLORS.RED)
ROOM_ban_player(client.name, client.ip, "发言违规") ROOM_ban_player(client.name, client.ip, "发言违规")
cancel = true cancel = true
else else
...@@ -1373,13 +1373,13 @@ ygopro.ctos_follow 'UPDATE_DECK', true, (buffer, info, client, server)-> ...@@ -1373,13 +1373,13 @@ ygopro.ctos_follow 'UPDATE_DECK', true, (buffer, info, client, server)->
struct.set("deckbuf", deckbuf) struct.set("deckbuf", deckbuf)
buffer = struct.buffer buffer = struct.buffer
#log.info("deck ok: " + client.name) #log.info("deck ok: " + client.name)
ygopro.stoc_send_chat(client, "成功参加比赛", ygopro.constants.COLORS.BABYBLUE) ygopro.stoc_send_chat(client, "成功使用卡组#{found_deck}参加比赛", ygopro.constants.COLORS.BABYBLUE)
else else
#log.info("bad deck: " + client.name + " / " + buff_main + " / " + buff_side) #log.info("bad deck: " + client.name + " / " + buff_main + " / " + buff_side)
ygopro.stoc_send_chat(client, "您的卡组与报名卡组不符,请重新选择", ygopro.constants.COLORS.RED) ygopro.stoc_send_chat(client, "#{client.name},您的卡组与报名卡组不符。注意卡组不能有包括卡片顺序在内的任何修改。", ygopro.constants.COLORS.RED)
else else
#log.info("player deck not found: " + client.name) #log.info("player deck not found: " + client.name)
ygopro.stoc_send_chat(client, "没有找到您的报名信息,请联系主持", ygopro.constants.COLORS.RED) ygopro.stoc_send_chat(client, "#{client.name},没有找到您的报名信息,请确定您使用昵称与报名ID一致。", ygopro.constants.COLORS.RED)
return false return false
ygopro.ctos_follow 'RESPONSE', false, (buffer, info, client, server)-> ygopro.ctos_follow 'RESPONSE', false, (buffer, info, client, server)->
...@@ -1446,7 +1446,7 @@ ygopro.stoc_follow 'REPLAY', true, (buffer, info, client, server)-> ...@@ -1446,7 +1446,7 @@ ygopro.stoc_follow 'REPLAY', true, (buffer, info, client, server)->
} }
settings.modules.tournament_mode.duel_log.push log settings.modules.tournament_mode.duel_log.push log
nconf.myset(settings, "modules:tournament_mode:duel_log", settings.modules.tournament_mode.duel_log) nconf.myset(settings, "modules:tournament_mode:duel_log", settings.modules.tournament_mode.duel_log)
ygopro.stoc_send_chat(client, "本场比赛云录像:R##{room.cloud_replay_id}", ygopro.constants.COLORS.BABYBLUE) ygopro.stoc_send_chat(client, "本场比赛云录像:R##{room.cloud_replay_id}。将于MATCH结束后可播放。", ygopro.constants.COLORS.BABYBLUE)
return true return true
else else
return false return false
......
...@@ -1630,7 +1630,7 @@ ...@@ -1630,7 +1630,7 @@
return msg.match(regexp); return msg.match(regexp);
}, msg)) { }, msg)) {
log.warn("BAD WORD LEVEL 2", client.name, client.remoteAddress, oldmsg); log.warn("BAD WORD LEVEL 2", client.name, client.remoteAddress, oldmsg);
ygopro.stoc_send_chat(client, "您的发言存在不适当的内容,已被屏蔽,并记录一次违规!", ygopro.constants.COLORS.RED); ygopro.stoc_send_chat(client, "您的发言存在不适当的内容,发送失败,并记录一次违规!", ygopro.constants.COLORS.RED);
ROOM_ban_player(client.name, client.ip, "发言违规"); ROOM_ban_player(client.name, client.ip, "发言违规");
cancel = true; cancel = true;
} else { } else {
...@@ -1717,12 +1717,12 @@ ...@@ -1717,12 +1717,12 @@
struct.set("sidec", deck_side.length); struct.set("sidec", deck_side.length);
struct.set("deckbuf", deckbuf); struct.set("deckbuf", deckbuf);
buffer = struct.buffer; buffer = struct.buffer;
ygopro.stoc_send_chat(client, "成功参加比赛", ygopro.constants.COLORS.BABYBLUE); ygopro.stoc_send_chat(client, "成功使用卡组" + found_deck + "参加比赛", ygopro.constants.COLORS.BABYBLUE);
} else { } else {
ygopro.stoc_send_chat(client, "您的卡组与报名卡组不符,请重新选择", ygopro.constants.COLORS.RED); ygopro.stoc_send_chat(client, client.name + ",您的卡组与报名卡组不符。注意卡组不能有包括卡片顺序在内的任何修改。", ygopro.constants.COLORS.RED);
} }
} else { } else {
ygopro.stoc_send_chat(client, "没有找到您的报名信息,请联系主持", ygopro.constants.COLORS.RED); ygopro.stoc_send_chat(client, client.name + ",没有找到您的报名信息,请确定您使用昵称与报名ID一致。", ygopro.constants.COLORS.RED);
} }
} }
return false; return false;
...@@ -1826,7 +1826,7 @@ ...@@ -1826,7 +1826,7 @@
settings.modules.tournament_mode.duel_log.push(log); settings.modules.tournament_mode.duel_log.push(log);
nconf.myset(settings, "modules:tournament_mode:duel_log", settings.modules.tournament_mode.duel_log); nconf.myset(settings, "modules:tournament_mode:duel_log", settings.modules.tournament_mode.duel_log);
} }
ygopro.stoc_send_chat(client, "本场比赛云录像:R#" + room.cloud_replay_id, ygopro.constants.COLORS.BABYBLUE); ygopro.stoc_send_chat(client, "本场比赛云录像:R#" + room.cloud_replay_id + "。将于MATCH结束后可播放。", ygopro.constants.COLORS.BABYBLUE);
return true; return true;
} else { } else {
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment