9
3

aMiner_(2).lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/Darklight/aMiner_(2).lua
  3. Script Purpose : A Miner before completing quest, "Reclaiming the Sablevein Tear"
  4. Script Author : Cynnar
  5. Script Date : 10/14/2015
  6. Script Notes : a miner (spawn_id 340016) (spawn_location_id 584440)
  7. Script Notes : Location is in Hate's Envy
  8. --]]
  9. local SealingTheRift = 122
  10. local ReclaimingTheSableveinTear = 124
  11. function spawn(NPC, Player)
  12. AddSpawnAccess(NPC, NPC)
  13. SetPlayerProximityFunction(NPC, 50, "QuestCheck", "QuestCheck")
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function QuestCheck(NPC, Player)
  19. if HasCompletedQuest(Player, ReclaimingTheSableveinTear) then
  20. AddSpawnAccess(NPC, Player)
  21. MovementLoopAddLocation(NPC, -403.55, -62.87, 240.82, 2)
  22. MovementLoopAddLocation(NPC, -405.77, -62.87, 230.47, 2)
  23. MovementLoopAddLocation(NPC, -405.67, -62.87, 219.67, 2)
  24. MovementLoopAddLocation(NPC, -396.86, -62.87, 206.27, 2)
  25. MovementLoopAddLocation(NPC, -385.66, -62.87, 206.95, 2)
  26. MovementLoopAddLocation(NPC, -377.26, -62.87, 215.62, 2)
  27. MovementLoopAddLocation(NPC, -376.80, -62.87, 235.30, 2)
  28. MovementLoopAddLocation(NPC, -393.61, -62.87, 246.72, 2)
  29. else
  30. RemoveSpawnAccess(NPC, Player)
  31. end
  32. end