diff options
author | chai <chaifix@163.com> | 2021-11-15 13:53:59 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-15 13:53:59 +0800 |
commit | 942a030afd348ab2e02eac8054b43e3c3a72ea48 (patch) | |
tree | a13459f39a3d2f1b533fbd1b5ab523d7a621f673 /Data/BuiltIn/Libraries/addons/addons/indinope | |
parent | e307051a56a54c27f10438fd2025edf61d0dfeed (diff) |
*rename
Diffstat (limited to 'Data/BuiltIn/Libraries/addons/addons/indinope')
-rw-r--r-- | Data/BuiltIn/Libraries/addons/addons/indinope/README.md | 15 | ||||
-rw-r--r-- | Data/BuiltIn/Libraries/addons/addons/indinope/indinope.lua | 48 |
2 files changed, 0 insertions, 63 deletions
diff --git a/Data/BuiltIn/Libraries/addons/addons/indinope/README.md b/Data/BuiltIn/Libraries/addons/addons/indinope/README.md deleted file mode 100644 index 16c82a4..0000000 --- a/Data/BuiltIn/Libraries/addons/addons/indinope/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# IndiNope 1.0.4 -Hides visual effects from geomancy on players. - -Currently does not hide geomancy effect around luopans. - -**No commands.** Load it and it's on, unload and it's off. - -### Changelog: - -1.0.4 - More tweaks. -1.0.3 - A few tweaks. -1.0.1 - Fixed a bug where Indi-Nope would make Master stars disappear. Thanks Kenshi for finding out. -1.0.0 - Initial release. - -Thanks to Thorny, this addon is a port to windower of his Ashita code with the same functionality. diff --git a/Data/BuiltIn/Libraries/addons/addons/indinope/indinope.lua b/Data/BuiltIn/Libraries/addons/addons/indinope/indinope.lua deleted file mode 100644 index e085b2b..0000000 --- a/Data/BuiltIn/Libraries/addons/addons/indinope/indinope.lua +++ /dev/null @@ -1,48 +0,0 @@ ---[[ -Copyright © Lili, 2020 -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of IndiNope nor the - names of its contributors may be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL LILI BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -]] - -_addon.name = 'IndiNope' -_addon.author = 'Lili' -_addon.version = '1.0.4' - -require('bit') - -offsets = { [0x00D] = 67, [0x037] = 89, } - -windower.register_event('incoming chunk', function(id, original, modified, injected, blocked) - if injected or blocked or not offsets[id] then return end - - offset = offsets[id] - flags = original:byte(offsets[id]) - - -- if any of the bits 0 through 7 are set, a bubble is shown and we want to block it. - if bit.band(flags, 0x7F) ~= 0 then - packet = original:sub(1, offset - 1) .. string.char(bit.band(flags, 0x80)) .. original:sub(offset + 1) -- preserve bit 8 (Job Master stars) - return packet - end -end) |