Krinolin

Untitled

Jan 2nd, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local NPC_ID = 190020
  2. local BUFF_IDS = {53307}
  3.  
  4. function BuffOnSight(event, creature, player)
  5.         if (player:GetUnitType() == "Player" and creature:IsWithinDistInMap(player, 15)) then
  6.         for k, v in pairs(BUFF_IDS) do
  7.         if not player:HasAura(v) then
  8.                         player:AddAura(v, player)
  9.                         end
  10.         end
  11.     end
  12. end
  13.    
  14. RegisterCreatureEvent(NPC_ID, 27, BuffOnSight)
Advertisement
Add Comment
Please, Sign In to add comment