Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NPC_ID = 190020
- local BUFF_IDS = {53307}
- function BuffOnSight(event, creature, player)
- if (player:GetObjectType() == "Player" and creature:IsWithinDistInMap(player, 15)) then
- for k, v in ipairs(BUFF_IDS) do
- if not player:GetAura(v) then
- player:AddAura(v, player)
- end
- end
- end
- end
- RegisterCreatureEvent(NPC_ID, 27, BuffOnSight)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement