diff --git a/addons/Stubborn/Stubborn.lua b/addons/Stubborn/Stubborn.lua new file mode 100644 index 000000000..a9afce66c --- /dev/null +++ b/addons/Stubborn/Stubborn.lua @@ -0,0 +1,54 @@ +--[[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 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 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. --]] + +_addon.name = 'Stubborn' +_addon.author = 'Arico' +_addon.version = '1' +_addon.command = {'stubborn','cfh'} + +require('logger') +packets = require('packets') + +windower.register_event('outgoing chunk', function(id, original, modified, injected, blocked) + if id == 0x01A and not injected then + local p = packets.parse('outgoing', original) + 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') + if target and target.claim_id ~= 0 then + local p = packets.new('outgoing', 0x01A, { + ['Target'] = target['id'], + ['Target Index'] = target['index'], + ['Category'] = 5, + }) + packets.inject(p) + end +end) diff --git a/addons/Stubborn/readme.md b/addons/Stubborn/readme.md new file mode 100644 index 000000000..904d26fb9 --- /dev/null +++ b/addons/Stubborn/readme.md @@ -0,0 +1,6 @@ +# 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 diff --git a/addons/addons.xml b/addons/addons.xml index b7ba19132..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,7 +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/aUrHCvk subTarget @@ -660,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 @@ -695,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 @@ -716,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 @@ -744,7 +751,7 @@ Arcon A file-based macro engine https://github.com/Windower/Lua/issues - https://discord.gg/b275nMv + https://discord.gg/aUrHCvk zonetimer @@ -807,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