ATunarianGravedigger.lua 915 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : SpawnScripts/OutpostOverlord/ATunarianGravedigger.lua
  3. Script Author : Lemmeron
  4. Script Date : 2020.08.21 09:08:45
  5. Script Purpose : To Spawn the corresponding Fallen Tunarian when each gravedigger is killed
  6. :
  7. --]]
  8. local DiggersID = 2780008
  9. local Digger1loc = 394728
  10. local Digger2loc = 394730
  11. local Ghost1loc = 401806
  12. local Ghost2loc = 401807
  13. local zoneID = 278
  14. function death(NPC, Spawn)
  15. local zone = GetZone(NPC)
  16. local WhichOne = GetSpawnLocationID(NPC)
  17. if WhichOne ~= nil then
  18. if WhichOne == Digger1loc then
  19. -- Say(NPC, "I am Digger 1")
  20. Ghost1 = SpawnByLocationID(zone, Ghost1loc)
  21. end
  22. if WhichOne == Digger2loc then
  23. -- Say(NPC, "I am Digger 2")
  24. Ghost2 = SpawnByLocationID(zone, Ghost2loc)
  25. end
  26. end
  27. end