Skip to content

Instantly share code, notes, and snippets.

@jathanism
Last active August 19, 2024 02:50
Show Gist options
  • Select an option

  • Save jathanism/c6edc522a3670f97a4be24f01bca7e43 to your computer and use it in GitHub Desktop.

Select an option

Save jathanism/c6edc522a3670f97a4be24f01bca7e43 to your computer and use it in GitHub Desktop.
ItemRack Custom Skinning Event

Gear Set

I have a set named "Skinning" that has Finkle's Skinner and a pair of gloves with +5 Skinning.

Skinning Event

Create a new event called "Skinning" that triggers on mousever of skinnable corpse.

  • In ItemRack go to Events > New
  • Name of event: Skinning
  • Type of event: Script
  • Event Trigger: UPDATE_MOUSEOVER_UNIT
  • Event Script:
local set = "Skinning"

function IsSkinnable()
   return UnitIsDead("mouseover") and GameTooltipTextLeft3:GetText() == "Skinnable"
end

if IsSkinnable() and not IsSetEquipped(set) then
  EquipSet(set)
  if not SkinningEvent then
    function SkinningEvent()
      if not IsSkinnable() then
        ItemRack.StopTimer("SkinningEvent")
        UnequipSet(set)
      end
    end
    ItemRack.CreateTimer("SkinningEvent", SkinningEvent, 4, 1)
  end
  ItemRack.StartTimer("SkinningEvent")
end 

--[[Equips a set when you mouseover something that can be skinned.]]
  • Click "Save"
  • END

In Practice

When you mouseover a corpse that has "Skinnable" in its tooltip, this event will trigger and swap your gear set. It has a 4 second timeout after swapping to give you time to skin multiple corpse without it continuing to swap back and forth. After your last skinning event, your gear will swap back within 4 seconds.

@Albear22
Copy link

Hi,

Thanks for providing this, unfortunately it does not take my skinning items off after skinning(Pip's Skinner and gloves with +5 skinning). Any idea why?

I'm using the code that you gave above and named my skinning set "Skinning" with only the above 2 items in the set.

@jathanism
Copy link
Author

Sorry I don't know. I used this when I was playing WoW Classic. I'm not sure if this will work in retail or otherwise with the current patches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment