9
3

goblins.lua 873 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/SourceEvil/goblins.lua
  3. Script Purpose : When the three goblins die enable the totems
  4. Script Author : Jabantiz
  5. Script Date : 9/10/2016
  6. Script Notes :
  7. --]]
  8. -- Spawn ID for Vith L'Tar
  9. local VithID = 2540005
  10. -- location id's for the 4 totems
  11. local totems = { 475343, 475345, 1584964, 1584965 }
  12. function spawn(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function group_dead(NPC)
  18. local zone = GetZone(NPC)
  19. for index, value in pairs(totems) do
  20. local totem = GetSpawnByLocationID(zone, value)
  21. if totem ~= nil then
  22. SpawnSet(totem, "show_command_icon", "1")
  23. SpawnSet(totem, "display_hand_icon", "1")
  24. end
  25. end
  26. local Vith = GetSpawn(NPC, VithID)
  27. if Vith ~= nil then
  28. PlayFlavor(Vith, "", "Haha, you think you can defeat me? You can't even touch me.", "", 1689589577, 4560189)
  29. end
  30. end