diff --git a/AccountMounts.lua b/AccountMounts.lua index dffa602..2b62e30 100644 --- a/AccountMounts.lua +++ b/AccountMounts.lua @@ -1,5 +1,5 @@ ------------------------------------------------------------------------------------------------ --- ACCOUNT MOUNTS MOD +-- ACCOUNTWIDE MOUNTS MOD ------------------------------------------------------------------------------------------------ local EnableModule = true diff --git a/RaidBuffs.lua b/RaidBuffs.lua index ac37435..c480c77 100644 --- a/RaidBuffs.lua +++ b/RaidBuffs.lua @@ -1,4 +1,4 @@ - +--PLEASE NOTE THAT RAID BUFFS ARE DISABLED IN RAIDS BY DEFAULT ------------------------------------------------------------------------------------------------ -- COMMAND GUIDE -- .raidbuff ony diff --git a/StartWithPet.lua b/StartWithPet.lua index cf9c37b..7b66e08 100644 --- a/StartWithPet.lua +++ b/StartWithPet.lua @@ -2,7 +2,7 @@ -- HUNTER START WITH PET MOD ------------------------------------------------------------------------------------------------ -local EnableModule = true -- Enable module +local EnableModule = false -- Enable module local AnnounceModule = true -- Announce module on player login ? local LoadFromDB = true -- true : Load beasts automatically from the database diff --git a/UnlimitedAmmo.lua b/UnlimitedAmmo.lua new file mode 100644 index 0000000..217e89f --- /dev/null +++ b/UnlimitedAmmo.lua @@ -0,0 +1,42 @@ +-- This script was made by Dinkledork +-- Fun fact: I'm too lazy to finish this script right now +-- Make sure you only have one type of ammo on your character + +local ENABLED = false -- Set this to false to disable the script + +local ARROW_ITEM_IDS = {2516, 2519} -- Replace these with actual ammo IDs +local SPELL_IDS = {75} -- Add more spell IDs to this table such as serpent sting arcane shot etc, separated by commas. Right now it triggers on auto shot. + +local function GetArrowItemId(player) + for _, arrowId in ipairs(ARROW_ITEM_IDS) do + if player:HasItem(arrowId) then + return arrowId + end + end + return nil +end + +local function IsRelevantSpell(spellId) + for _, id in ipairs(SPELL_IDS) do + if spellId == id then + return true + end + end + return false +end + +local function OnPlayerSpellCast(event, player, spell, skipCheck) + if not ENABLED then + return + end + + local spellId = spell:GetEntry() + if IsRelevantSpell(spellId) then + local arrowItemId = GetArrowItemId(player) + if arrowItemId then + player:AddItem(arrowItemId, 1) --can change this number to 2 or 3 or whatever if you're too lazy to add spells in. + end + end +end + +RegisterPlayerEvent(5, OnPlayerSpellCast) \ No newline at end of file