Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- * TITLE : Morph Shirts
- * AUTHOR : hates_sundays
- * CONTACT: http://sundays.org.uk/
- * VERSION: 1.0
- * CREATED: 19/3/2016
- * UPDATED: 19/3/2016
- * DESC : Applies an aura to your character depending on which shirt you equip.
- --]]
- local Auras = {
- 37810, -- TaurenMale
- 37811, -- TaurenFemale
- 35466, -- HumanMale
- 37805, -- HumanFemale
- 37808, -- GnomeMale
- 37809, -- GnomeFemale
- 37807, -- BloodelfMale
- 37806; -- BloodelfFemale
- };
- local Shirts = {
- 6384, -- Stylish Blue Shirt
- 6385, -- Stylish Green Shirt
- 4330, -- Stylish Red SHirt
- 41251, -- Yellow Lumberjack Shirt
- 2576, -- White Linen Shirt
- 10056, -- Orange Mageweave Shirt
- 10054, -- Lavender Mageweave Shirt
- 11840; -- Master Builder's Shirt
- };
- local function OnEquip(event, player, item, bag, slot)
- if slot == 3 then -- Shirt slot id
- for i, v in ipairs(Shirts) do
- if item:GetEntry() == v then
- player:AddAura(Auras[i], player);
- player:SendBroadcastMessage("You feel tingly all over.");
- break;
- else
- for i, v in ipairs(Auras) do
- if player:HasAura(v) then
- player:RemoveAura(v);
- end
- end
- end
- end
- end
- end
- RegisterPlayerEvent(29, OnEquip); -- PLAYER_EVENT_ON_EQUIP
Add Comment
Please, Sign In to add comment