9
3

evil_totem.lua 517 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : <script-name>
  3. Script Purpose : <purpose>
  4. Script Author : <author-name>
  5. Script Date : <date>
  6. Script Notes : <special-instructions>
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. end
  12. function respawn(NPC)
  13. end
  14. function death(NPC, Spawn)
  15. Vith = GetSpawn(NPC, 2540002)
  16. choice = math.random(1, 2)
  17. if choice == 1 then
  18. Say(Vith, "No, not the totems! How did you know?")
  19. else
  20. Say(Vith, "Don't touch those!")
  21. end
  22. AddTimer(Vith, 3000, "CheckLastTotem")
  23. Despawn(NPC, 2000)
  24. end