From 97fb5a47e3e9f4e03907b7312c4b477af0783717 Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Sat, 17 Apr 2021 21:50:28 -0700 Subject: [PATCH 1/7] Update addons.xml --- addons/addons.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/addons.xml b/addons/addons.xml index b7ba19132..903c7f5e3 100644 --- a/addons/addons.xml +++ b/addons/addons.xml @@ -648,6 +648,13 @@ https://github.com/Windower/Lua/issues https://discord.gg/b275nMv + + Stubborn + Arico + An addon to block accidental calls for help. + https://github.com/ianandersonlol/stubborn/issues + https://discord.gg/b275nMv + subTarget Sebyg666 From 6f9a66d9c2c66af658de03bc8342544c4a1bcd24 Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Sat, 17 Apr 2021 21:51:14 -0700 Subject: [PATCH 2/7] Add files via upload --- addons/Stubborn/Stubborn.lua | 57 ++++++++++++++++++++++++++++++++++++ addons/Stubborn/readme.md | 7 +++++ 2 files changed, 64 insertions(+) create mode 100644 addons/Stubborn/Stubborn.lua create mode 100644 addons/Stubborn/readme.md diff --git a/addons/Stubborn/Stubborn.lua b/addons/Stubborn/Stubborn.lua new file mode 100644 index 000000000..8363c6efc --- /dev/null +++ b/addons/Stubborn/Stubborn.lua @@ -0,0 +1,57 @@ +--[[Copyright © 2021, Arico +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 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 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 = 'Stubborn' +_addon.author = 'Arico' +_addon.version = '1' +_addon.command = 'stubborn' + +require('pack') +require('strings') +require('logger') +packets = require('packets') + + +windower.register_event('outgoing chunk', function(id, original, modified, injected, blocked) + if id == 0x01a then + local p = packets.parse('outgoing', original) + if p['Category'] == 5 and not injected then + log('You are too stubborn to call for help! Use //stubborn to call for help.') + return true + end + end +end) + +windower.register_event('addon command', function(...) + local target = windower.ffxi.get_mob_by_target("t") + if target and target.claim_id ~= 0 then + local p = packets.new('outgoing', 0x1a, { + ['Target'] = target['id'], + ['Target Index'] = target['index'], + ['Category'] = 5,}) + packets.inject(p) + end +end) \ No newline at end of file diff --git a/addons/Stubborn/readme.md b/addons/Stubborn/readme.md new file mode 100644 index 000000000..0efb35447 --- /dev/null +++ b/addons/Stubborn/readme.md @@ -0,0 +1,7 @@ +# Stubborn +A Windower 4 addon to prevent unnecessary "Call for help!" + +Stubborn is a light weight replacement to the old CFHProtect addon. + + +If you need to call for help. Type //stubborn From 47300e29d4aa9dd21a151793928871d32b0c5cc1 Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Sun, 18 Apr 2021 10:09:44 -0700 Subject: [PATCH 3/7] Update addons.xml --- addons/addons.xml | 114 +++++++++++++++++++++++----------------------- 1 file changed, 57 insertions(+), 57 deletions(-) diff --git a/addons/addons.xml b/addons/addons.xml index 903c7f5e3..d5ed626e2 100644 --- a/addons/addons.xml +++ b/addons/addons.xml @@ -15,7 +15,7 @@ AEcho Automatically uses echo drops when you get silenced. Also, uses send to send a message to an alt that you got debuffed. Nitrous (Shiva) - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk https://github.com/nitrous24/Lua/issues @@ -30,13 +30,13 @@ Byrth Stores tells that you receive for later recall. https://github.com/Byrth/Lua-Byrth/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk AutoControl Automated automaton equipment setting and burden tracker. Nitrous (Shiva) - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk https://github.com/nitrous24/Lua/issues @@ -44,7 +44,7 @@ Chiaia Automatically hits the enter key twice when first starting so you don't timeout on the warning message. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk autoinvite @@ -58,7 +58,7 @@ Arcon Automatically joins or declines party invites. Configurable with blacklist/whitelist mode and auto-decline settings. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk AutoRA @@ -70,7 +70,7 @@ AzureSets Automated blue magic spell setting. Nitrous (Shiva) - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk https://github.com/nitrous24/Lua/issues @@ -85,14 +85,14 @@ Byrth Customizes battle chat messages. https://github.com/Byrth/Lua-Byrth/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk BattleStations Sjshovan (Apogee) Change or remove the default battle music. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk Blist @@ -120,13 +120,13 @@ Byrth Mimics the cancel plugin, but also accepts buff names instead of just IDs. https://github.com/Byrth/Lua-Byrth/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk cBlock Blacklist addon for FFOChat. Nitrous (Shiva) - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk https://github.com/nitrous24/Lua/issues @@ -148,7 +148,7 @@ Arcon Allows opening links posted into the FFXI chat. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk ChatPorter @@ -162,14 +162,14 @@ Arcon Displays an on-screen clock in a custom format with options to display several different time zones. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk ConsoleBG Arcon Displays a dark (by default) background behind the Windower console to make it more readable. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk digger @@ -183,14 +183,14 @@ Chiaia Helps warp you to Reisenjima using (Dim) Rings. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk Distance Arcon Shows the distance to your current target. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk DistancePlus @@ -204,7 +204,7 @@ Cair Emulates BlinkMeNot functionality. Allows for customization of gear display for you or anyone else. https://github.com/cairface/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk DynamisHelper @@ -238,28 +238,28 @@ Tako, Rubenator Displays current equipment grid on screen. Also can show current Ammo count and current Encumbrance. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk eval Aureus Allows developers to run arbitrary lua code in the console. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk FastCS Cair Dramatically speeds up cutscenes by disabling the frame rate cap. Requires the config plugin. https://github.com/cairface/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk FFOColor Nitrous (Shiva) Allows you to show FFOChat text in one of the 5 game chat channels. As well as specify colors for the text https://github.com/nitrous24/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk findAll @@ -293,7 +293,7 @@ Byrth Enables instant linkshell chat after zoning. https://github.com/Byrth/Lua-Byrth/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk InfoBar @@ -307,7 +307,7 @@ Cair Replaces outgoing text prefixed by % with respective game information. https://github.com/cairface/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk Itemizer @@ -335,14 +335,14 @@ Arcon Allows opening links to certain websites from within the game, with an optional search parameter. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk Logger Arcon Logs the chat log to a file. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk Lookup @@ -356,26 +356,26 @@ Arcon Automatically passes an item on all accounts if lotted by another. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk MacroChanger Banggugyangu Automatically switches Macro Book and Page according to job changes. https://github.com/banggugyangu/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk MobCompass A compass to show your position relative to the target (not players) for geo and has a setup for Sneak attack - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk MountMuzzle Sjshovan (Apogee) Change or remove the default mount music. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk MountRoulette @@ -395,7 +395,7 @@ Nostrum Creates a click-able on-screen macro to help avoid targeting problems while curing. trv - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk https://github.com/trv6/Lua/issues @@ -403,12 +403,12 @@ Glarin of Asura Tracks and displays the Current Floor, Time Remaining, Objective, Floors Completed, Reward Rate, and Potenial Tokens. https://github.com/GlarinAsura/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk obiaway Automatically collect and remove elemental obi based on day/weather/storm conditions. - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk Omen @@ -421,14 +421,14 @@ OhShi Keeps track of various event related things. Such as, VW proc messages, mob casting, mob tp moves, TH procs and cor rolls, as well as others. Nitrous (Shiva) - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk https://github.com/nitrous24/Lua/issues Organizer A multi-purpose inventory management solution. Similar to GearCollector. Byrth, Rooks - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk https://github.com/Byrth/Lua-Byrth/issues @@ -436,21 +436,21 @@ Byrth Temporary addon that fixes a null pointer animation error with pets that is causing crashes. https://github.com/Byrth/Lua-Byrth/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk PetSchool Banggugyangu A helper addon for PUPs using spellcast, it informs spellcast of pet casting (healing or nuking). https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk PetTP SnickySnacks Tracks pet vitals (HP/TP/MP) https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk plasmon @@ -464,14 +464,14 @@ Byrth Allows you to specify which plugins and addons will be used with which characters. https://github.com/Byrth/Lua-Byrth/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk PointWatch Byrth Allows you to monitor your XP/CP gains and keep track of the Dynamis time limit. https://github.com/Byrth/Lua-Byrth/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk porter @@ -506,20 +506,20 @@ Byrth Should request spawn packets for players / mobile NPCs that failed to spawn. https://github.com/Byrth/Lua-Byrth/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk Respond Byrth Respond to tells and FFOchat PMs using //r. https://github.com/Byrth/Lua-Byrth/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk Rhombus Creates a highly customizable, click-able, on-screen menu. trv - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk https://github.com/trv6/Lua/issues @@ -527,7 +527,7 @@ Cair Lets you save your Records of Eminence objectives to profiles for easily swapping out objectives. https://github.com/cairface/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk RollTracker @@ -548,14 +548,14 @@ Banggugyangu Informs Spellcast about changes to Sneak Attack and Trick Attack status. https://github.com/banggugyangu/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk Scoreboard Suji Basic in-game damage parser. It displays live DPS and works even when chat filters are enabled. https://github.com/jerryhebert/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk setbgm @@ -569,7 +569,7 @@ Byrth Applys spellcast-like command completion (interpretation and target completion) to commands. Includes emotes, /check, and /pcmd. https://github.com/Byrth/Lua-Byrth/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk Silence @@ -590,14 +590,14 @@ Byrth Sends commands between windower instances using IPC. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk SetTarget Arcon Sets the target to a given ID. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk SpeedChecker @@ -646,14 +646,14 @@ Ihm A simple helper addon for Spellcast for Scholar Stratagems. It will automatically calculate the number of stratagems you have and push them into spellcast variables. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk Stubborn Arico An addon to block accidental calls for help. https://github.com/ianandersonlol/stubborn/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk subTarget @@ -667,21 +667,21 @@ Arcon Displays information about your current target in memory. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk Text Arcon Allows creating and manipulating on-screen text objects through Windower commands. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk Treasury Arcon Lots or passes items based on configurable lists, drops unwanted items from the inventory and automatically stacks items when they drop. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk thtracker @@ -702,14 +702,14 @@ Arcon Shows a target's HP percentage next to their health bar as well as party/alliance members's TP. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk translate Byrth Gives a rough JP->EN translation using the resources and custom dictionaries. https://github.com/Byrth/Lua-Byrth/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk TreasurePool @@ -723,7 +723,7 @@ Arcon Updates and reloads all plugins and addons when typing //update. https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk VisibleFavor @@ -751,7 +751,7 @@ Arcon A file-based macro engine https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk zonetimer @@ -814,7 +814,7 @@ Auk Tracks and displays debuffs on your current target. https://github.com/aukon/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk Tab From 21ad3ea2f98e2a33e5ea2dc2f425b5b56a18ecbc Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Sun, 18 Apr 2021 10:11:10 -0700 Subject: [PATCH 4/7] Update Stubborn.lua --- addons/Stubborn/Stubborn.lua | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/addons/Stubborn/Stubborn.lua b/addons/Stubborn/Stubborn.lua index 8363c6efc..f327c8f2e 100644 --- a/addons/Stubborn/Stubborn.lua +++ b/addons/Stubborn/Stubborn.lua @@ -9,49 +9,46 @@ modification, are permitted provided that the following conditions are met: * 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 nor the + * Neither the name of Stubborn 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 BE LIABLE FOR ANY +DISCLAIMED. IN NO EVENT SHALL Arico 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. --]] - + b275nMv _addon.name = 'Stubborn' _addon.author = 'Arico' _addon.version = '1' _addon.command = 'stubborn' -require('pack') -require('strings') require('logger') packets = require('packets') - windower.register_event('outgoing chunk', function(id, original, modified, injected, blocked) - if id == 0x01a then + if id == 0x01A and not injected then local p = packets.parse('outgoing', original) - if p['Category'] == 5 and not injected then - log('You are too stubborn to call for help! Use //stubborn to call for help.') + if p['Category'] == 5 then return true end end end) windower.register_event('addon command', function(...) - local target = windower.ffxi.get_mob_by_target("t") + local target = windower.ffxi.get_mob_by_target('t') if target and target.claim_id ~= 0 then - local p = packets.new('outgoing', 0x1a, { - ['Target'] = target['id'], - ['Target Index'] = target['index'], - ['Category'] = 5,}) + local p = packets.new('outgoing', 0x01A, { + ['Target'] = target['id'], + ['Target Index'] = target['index'], + ['Category'] = 5, + }) packets.inject(p) end -end) \ No newline at end of file +end) From 0b78aeba70cf035d6a4c2831b48d2b1e01e34ec1 Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Sun, 18 Apr 2021 10:28:48 -0700 Subject: [PATCH 5/7] Update Stubborn.lua --- addons/Stubborn/Stubborn.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/Stubborn/Stubborn.lua b/addons/Stubborn/Stubborn.lua index f327c8f2e..0d13cea08 100644 --- a/addons/Stubborn/Stubborn.lua +++ b/addons/Stubborn/Stubborn.lua @@ -23,7 +23,7 @@ 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. --]] - b275nMv + _addon.name = 'Stubborn' _addon.author = 'Arico' _addon.version = '1' From 3c03b0f32844f71380a836862118d34204cee95b Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Sun, 18 Apr 2021 10:29:05 -0700 Subject: [PATCH 6/7] Update readme.md --- addons/Stubborn/readme.md | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/Stubborn/readme.md b/addons/Stubborn/readme.md index 0efb35447..904d26fb9 100644 --- a/addons/Stubborn/readme.md +++ b/addons/Stubborn/readme.md @@ -3,5 +3,4 @@ A Windower 4 addon to prevent unnecessary "Call for help!" Stubborn is a light weight replacement to the old CFHProtect addon. - If you need to call for help. Type //stubborn From e5f19ed2138b0d57e8516219c0e3793de2074049 Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Wed, 5 May 2021 16:15:20 -0700 Subject: [PATCH 7/7] Update Stubborn.lua --- addons/Stubborn/Stubborn.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/Stubborn/Stubborn.lua b/addons/Stubborn/Stubborn.lua index 0d13cea08..a9afce66c 100644 --- a/addons/Stubborn/Stubborn.lua +++ b/addons/Stubborn/Stubborn.lua @@ -27,7 +27,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --]] _addon.name = 'Stubborn' _addon.author = 'Arico' _addon.version = '1' -_addon.command = 'stubborn' +_addon.command = {'stubborn','cfh'} require('logger') packets = require('packets')