Advertisement
Guest User

ItemRack Enemy Stealth Script

a guest
Nov 22nd, 2019
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. local timestamp, eventType, _, sourceGUID, sourceName, sourceFlags, _, destGUID, destName, _, _, spellId, spellName, spellSchool = CombatLogGetCurrentEventInfo()
  2. if bit.band(sourceFlags, COMBATLOG_OBJECT_REACTION_HOSTILE) > 0 then
  3.     local sourceType = strsub(sourceGUID, 1,6)
  4.     if sourceType == "Player" then
  5.         if eventType == "SPELL_AURA_APPLIED" and (spellName == "Stealth" or spellName == "Prowl") then
  6.                 EquipSet("YOUR GEAR SET NAME HERE")
  7.         end    
  8.     end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement