Skip to content

Commit 047b757

Browse files
authored
Merge pull request #736 from elanthia-online/mudlet-key-send
[all][main.rb] fix: Mudlet support
2 parents 3680b93 + c2f6d2d commit 047b757

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/main/main.rb

+14
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,20 @@
593593
Game._puts(client_string)
594594
end
595595
else
596+
if launcher_cmd =~ /mudlet/
597+
Game._puts(game_key)
598+
game_key = nil
599+
600+
client_string = "/FE:WIZARD /VERSION:1.0.1.22 /P:#{RUBY_PLATFORM} /XML"
601+
$_CLIENTBUFFER_.push(client_string.dup)
602+
Game._puts(client_string)
603+
604+
2.times {
605+
sleep 0.3
606+
$_CLIENTBUFFER_.push("<c>\r\n")
607+
Game._puts("<c>")
608+
}
609+
end
596610
inv_off_proc = proc { |server_string|
597611
if server_string =~ /^<(?:container|clearContainer|exposeContainer)/
598612
server_string.gsub!(/<(?:container|clearContainer|exposeContainer)[^>]*>|<inv.+\/inv>/, '')

0 commit comments

Comments
 (0)