TayilNVelex.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : SpawnScripts/CircleElders/TayilNVelex.lua
  3. Script Author : premierio015
  4. Script Date : 2019.10.24 01:10:46
  5. Script Purpose : Tayl Script for Circle Event.
  6. --]]
  7. local TheFinalAssault = 367
  8. local KaylID = 433249
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn) -- Dialogue to finish Quest after Kyle is Dead
  12. local zone = GetZone(NPC)
  13. local Kayl = GetSpawnByLocationID(zone, KaylID)
  14. if Kayl == nil then
  15. FaceTarget(NPC, Spawn)
  16. Conversation = CreateConversation()
  17. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_epic01/tayilnvelex000.mp3", "", "", 1803294657, 2493064533, Spawn)
  18. if HasQuest(Spawn, TheFinalAssault) and GetQuestStep(Spawn, TheFinalAssault) == 6 then
  19. AddConversationOption(Conversation, "So is the battle over?", "reward")
  20. end
  21. AddConversationOption(Conversation, "Goodbye.")
  22. StartConversation(Conversation, NPC, Spawn, "Well done, "..GetName(Spawn)..". That fool Kayl had no idea what was coming! The Tunarians are finished on this island.")
  23. end
  24. end
  25. function reward(NPC, Spawn)
  26. SetStepComplete(Spawn, TheFinalAssault,6)
  27. FaceTarget(NPC, Spawn)
  28. Conversation = CreateConversation()
  29. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_epic01/tayilnvelex001.mp3")
  30. AddConversationOption(Conversation, "Thank you, Tayil.")
  31. StartConversation(Conversation, NPC, Spawn, "Yes, our efforts have been a success. The island is ours, and so is this fine assortment of valuables! The Overlord will hear of your bravery, Ecobi. As promised, here is a reward that will prove useful in your future adventures.")
  32. end
  33. function respawn(NPC)
  34. spawn(NPC, Spawn)
  35. end