aRommulsloyalistNoTalk.lua 980 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/aRommulsloyalistNoTalk.lua
  3. Script Purpose : a Rommuls loyalist
  4. Script Author : <author-name> (Updated by Cynnar 2018.06.22 09:06:43)
  5. Script Date : <date>
  6. Script Notes : <special-instructions>
  7. --]]
  8. local HALFELF_MENTOR_QUEST_4 = 317 -- Thaen Sevellos
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. choice = math.random(1, 2)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "", "Uh, maybe you shouldn't talk to me. I'm new at this.", "", 1689589577, 4560189, Spawn)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "", "Alright, this is why I joined the militia!", "", 1689589577, 4560189, Spawn)
  18. end
  19. end
  20. function death(NPC, Spawn)
  21. --Rom1 = GetSpawn(Spawn, 1370157)
  22. local zone = GetZone(NPC)
  23. local Rom1 = GetSpawnByLocationID(zone, 403036)
  24. if Rom1 == nil or not IsAlive(Rom1) then
  25. SetStepComplete(Spawn, HALFELF_MENTOR_QUEST_4, 1)
  26. local Thaen = GetSpawn(Spawn, 1370066)
  27. Despawn(Thaen, 30000)
  28. end
  29. end