VulcanuSlayer.lua 665 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : SpawnScripts/Lavastorm/VulcanuSlayer.lua
  3. Script Purpose : Proximity Call
  4. Script Author : Scribble
  5. Script Date : 08.27.16
  6. Script Notes : When you get close to A vulcanu slayer he will tell you "You ruined your own lands,
  7. don't think you can start on ours!" when you are withing 30 click and when you leave he will stop.
  8. --]]
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 30, "InRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. hailed(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. Say(NPC, "You ruined your own lands, don't think you can start on ours!", 0, 19)
  20. end