Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NPC_ID = 190020 -- Edit ID with id of your npc
- local BUFF_IDS = {53307} -- Feel free to add here more buffs
- function BuffOnSight(event, creature, player)
- if (player:GetUnitType() == "Player" and creature:IsWithinDistInMap(player, 15)) then
- for k, v in pairs(BUFF_IDS) do
- if not player:HasAura(v) then
- player:AddAura(v, player)
- end
- end
- end
- end
- RegisterCreatureEvent(NPC_ID, 27, BuffOnSight)
Advertisement
Add Comment
Please, Sign In to add comment