9
3

AWarning.lua 618 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : SpawnScripts/TheDisconcertingMeditation/AWarning.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.21 05:11:47
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 8, "InRange", "LeaveRange")
  10. end
  11. function InRange(NPC,Spawn,Zone)
  12. SendPopUpMessage(Spawn,"Stay back! You are near the edge of the vision.",255,0,0)
  13. SendMessage(Spawn,"Stay back! You are near the edge of the vision.","red")
  14. PlaySound(Spawn,"sounds/ui/ui_warning.wav", GetX(NPC), GetY(NPC), GetZ(NPC))
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end