afallenTunarian.lua 999 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/OutpostOverlord/afallenTunarian.lua
  3. Script Author : Lemmeron
  4. Script Date : 2020.08.21 10:08:06
  5. Script Purpose : To Ensure Ghost Despawns if not killed before Grave Digger Respawns
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 5000, "WhatHappened", 1) -- Emote the ghost confusion
  10. AddTimer(NPC, 200000, "Vanish", 1) -- To ensure ghost is gone before grave Digger Respawns
  11. end
  12. function Vanish(NPC)
  13. -- Say(NPC, "I am vanishing 1")
  14. Despawn(NPC)
  15. end
  16. function WhatHappened(NPC)
  17. local response = math.random(1, 4)
  18. if response == 1 then
  19. Say(NPC, "Wha...What happened ?!")
  20. elseif response == 2 then
  21. Say(NPC, "Wh...Where am I ?")
  22. elseif response == 3 then
  23. Say(NPC, "How...How did I get here ?")
  24. elseif response == 4 then
  25. Say(NPC, "It...It doesn't hurt anymore")
  26. end
  27. PlayAnimation(NPC, 11214) -- confused
  28. end
  29. function respawn(NPC)
  30. end