AlexaOllix.lua 889 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : SpawnScripts/Nektropos1/AlexaOllix.lua
  3. Script Purpose : Alexa before changing into Ollix Everling
  4. Script Author : smash
  5. Script Date : 9/12/2016
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. SpawnSet(NPC, "attackable", "1")
  10. SpawnSet(NPC, "show_level", "1")
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. end
  15. function AlexaTalk(NPC)
  16. if GetTempVariable(NPC, "talked") ~= "true" then
  17. SetTempVariable(NPC, "talked", "true")
  18. Say(NPC, "Ahh, finally you have arrived. Father will thank me for supplying him with more parts for his experiments.")
  19. end
  20. end
  21. function aggro(NPC, Spawn)
  22. AlexaTalk(NPC)
  23. end
  24. function attacked(NPC, Spawn)
  25. AlexaTalk(NPC)
  26. end
  27. function death(NPC, Spawn)
  28. --spawn Ollix Everling
  29. SpawnByLocationID(GetZone(NPC), 616644)
  30. end
  31. function CombatReset(NPC)
  32. SetTempVariable(NPC, "talked", nil)
  33. end