Commit e9063687 authored by mercury233's avatar mercury233

temp again

parent f442e192
...@@ -905,7 +905,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)-> ...@@ -905,7 +905,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
replay_id=Cloud_replay_ids[Math.floor(Math.random()*Cloud_replay_ids.length)] replay_id=Cloud_replay_ids[Math.floor(Math.random()*Cloud_replay_ids.length)]
redisdb.hgetall "replay:"+replay_id, client.open_cloud_replay redisdb.hgetall "replay:"+replay_id, client.open_cloud_replay
else if info.version != settings.version and (info.version != 9018 or settings.version != 9019 or client.name != "Knight of Hanoi") #YGOMobile不更新,强行兼容 else if info.version != settings.version and (!(info.version >= 9016 and info.version <= 9019) or settings.version != 4926) #强行兼容23333版
ygopro.stoc_send_chat(client, settings.modules.update, ygopro.constants.COLORS.RED) ygopro.stoc_send_chat(client, settings.modules.update, ygopro.constants.COLORS.RED)
ygopro.stoc_send client, 'ERROR_MSG', { ygopro.stoc_send client, 'ERROR_MSG', {
msg: 4 msg: 4
...@@ -1090,13 +1090,13 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)-> ...@@ -1090,13 +1090,13 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
ygopro.stoc_die(client, "${invalid_password_room}") ygopro.stoc_die(client, "${invalid_password_room}")
else else
if info.version == 9018 and settings.version == 9019 and client.name == "Knight of Hanoi" #YGOMobile不更新,强行兼容 if info.version >= 9016 and info.version <= 9019 and settings.version == 4926 #强行兼容23333版
info.version = settings.version info.version = settings.version
struct = ygopro.structs["CTOS_JoinGame"] struct = ygopro.structs["CTOS_JoinGame"]
struct._setBuff(buffer) struct._setBuff(buffer)
struct.set("version", info.version) struct.set("version", info.version)
buffer = struct.buffer buffer = struct.buffer
ygopro.stoc_send_chat(client, "看起来你是YGOMobile的用户,请记得更新先行卡补丁,否则会看到白卡", ygopro.constants.COLORS.GREEN) #ygopro.stoc_send_chat(client, "看起来你是YGOMobile的用户,请记得更新先行卡补丁,否则会看到白卡", ygopro.constants.COLORS.GREEN)
#log.info 'join_game',info.pass, client.name #log.info 'join_game',info.pass, client.name
room = ROOM_find_or_create_by_name(info.pass, client.ip) room = ROOM_find_or_create_by_name(info.pass, client.ip)
......
...@@ -1132,7 +1132,7 @@ ...@@ -1132,7 +1132,7 @@
} else if (info.pass.toUpperCase() === "W" && settings.modules.cloud_replay.enabled) { } else if (info.pass.toUpperCase() === "W" && settings.modules.cloud_replay.enabled) {
replay_id = Cloud_replay_ids[Math.floor(Math.random() * Cloud_replay_ids.length)]; replay_id = Cloud_replay_ids[Math.floor(Math.random() * Cloud_replay_ids.length)];
redisdb.hgetall("replay:" + replay_id, client.open_cloud_replay); redisdb.hgetall("replay:" + replay_id, client.open_cloud_replay);
} else if (info.version !== settings.version && (info.version !== 9018 || settings.version !== 9019 || client.name !== "Knight of Hanoi")) { } else if (info.version !== settings.version && (!(info.version >= 9016 && info.version <= 9019) || settings.version !== 4926)) {
ygopro.stoc_send_chat(client, settings.modules.update, ygopro.constants.COLORS.RED); ygopro.stoc_send_chat(client, settings.modules.update, ygopro.constants.COLORS.RED);
ygopro.stoc_send(client, 'ERROR_MSG', { ygopro.stoc_send(client, 'ERROR_MSG', {
msg: 4, msg: 4,
...@@ -1326,13 +1326,12 @@ ...@@ -1326,13 +1326,12 @@
} else if (info.pass.length && !ROOM_validate(info.pass)) { } else if (info.pass.length && !ROOM_validate(info.pass)) {
ygopro.stoc_die(client, "${invalid_password_room}"); ygopro.stoc_die(client, "${invalid_password_room}");
} else { } else {
if (info.version === 9018 && settings.version === 9019 && client.name === "Knight of Hanoi") { if (info.version >= 9016 && info.version <= 9019 && settings.version === 4926) {
info.version = settings.version; info.version = settings.version;
struct = ygopro.structs["CTOS_JoinGame"]; struct = ygopro.structs["CTOS_JoinGame"];
struct._setBuff(buffer); struct._setBuff(buffer);
struct.set("version", info.version); struct.set("version", info.version);
buffer = struct.buffer; buffer = struct.buffer;
ygopro.stoc_send_chat(client, "看起来你是YGOMobile的用户,请记得更新先行卡补丁,否则会看到白卡", ygopro.constants.COLORS.GREEN);
} }
room = ROOM_find_or_create_by_name(info.pass, client.ip); room = ROOM_find_or_create_by_name(info.pass, client.ip);
if (!room) { if (!room) {
......
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