Advertisement
Guest User

Untitled

a guest
Apr 13th, 2011
791
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. function Player_OnEnterWorld(pUnit, event)
  2. local plrs = GetPlayersInWorld()
  3. for k, v in pairs(plrs) do
  4. if (v:HasAura(69127) == false) then
  5. if (v:GetMapId() == 631) then
  6. SetDBCSpellVar(69127, "c_is_flags", 0x01000)
  7. v:CastSpell(69127)
  8. end
  9. end
  10. else
  11. if (v:GetMapId() ~= 631) then
  12. v:RemoveAura(69127)
  13. end
  14. end
  15. end
  16. end
  17.  
  18. RegisterTimedEvent("Player_OnEnterWorld", 1000, 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement