Kaldonis
10-19-2016, 09:12 AM
Finally hacked together this alias. The market is so narrow I don't anticipate anyone else would want it. My FE does not show the contents of my hands, and in River's Rest GLANCE is a custom verb. While GLANCE will work in RT, HANDS will not. (Let's not get started how the INVENTORY command does or does not work in RT depending how many characters you type out...)
Make this a global alias for HA, HAN, HAND, HANDS and you're good to go:
(Sorry it's an ugly one-liner ... welcome to aliases ...)
silence_me ; hands = false; action = proc { |server_string| ; if server_string =~ /You are holding/ ; hands = true ; elsif server_string =~ /You are wearing/ ; if hands ; server_string = "" ; else ; server_string = "You have nothing in your hands." ; end ; elsif server_string =~ /Click .* for more options/ ; server_string = "" ; end ; server_string } ; DownstreamHook.add('newglance', action) ; fput "inventory" ; DownstreamHook.remove('newglance')
I can't see a point in releasing this as a script necessarily, since the entire point is as an alias to run transparently like I've asked them GMs to change the parser enough times and been ignored.
Make this a global alias for HA, HAN, HAND, HANDS and you're good to go:
(Sorry it's an ugly one-liner ... welcome to aliases ...)
silence_me ; hands = false; action = proc { |server_string| ; if server_string =~ /You are holding/ ; hands = true ; elsif server_string =~ /You are wearing/ ; if hands ; server_string = "" ; else ; server_string = "You have nothing in your hands." ; end ; elsif server_string =~ /Click .* for more options/ ; server_string = "" ; end ; server_string } ; DownstreamHook.add('newglance', action) ; fput "inventory" ; DownstreamHook.remove('newglance')
I can't see a point in releasing this as a script necessarily, since the entire point is as an alias to run transparently like I've asked them GMs to change the parser enough times and been ignored.