ArchfiendIzzoroth.lua 994 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/Nektropos1/ArchfiendIzzoroth.lua
  3. Script Author : smash
  4. Script Date : 2016.09.09 03:09:44
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetSpeedMultiplier(NPC, 0)
  10. AddTimer(NPC, 6000, "MakeAttackable")
  11. end
  12. function DemonTalk(NPC)
  13. local choice = math.random(1,2)
  14. --Check for understood language, or that should be handled in code?
  15. if choice == 1 then
  16. PlayFlavor(NPC, "voiceover/english/optional3/nightblood_base_2/ft/nightblood/nightblood_base_2_1_garbled_26ecf0b.mp3", "Keb'ma moktar vekshet pa", "", 203325556, 752859570, nil, 24)
  17. elseif choice == 2 then
  18. PlayFlavor(NPC, "voiceover/english/optional3/nightblood_base_2/ft/nightblood/nightblood_base_2_1_garbled_5d4f1d0d.mp3", "Velfar sek'tem molorad su'vehrem", "", 1706934970, 2177477527, nil, 24)
  19. end
  20. end
  21. function MakeAttackable(NPC)
  22. DemonTalk(NPC)
  23. SpawnSet(NPC, "attackable", "1")
  24. SpawnSet(NPC, "show_level", "1")
  25. end