CoercerZlith.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : SpawnScripts/OutpostoftheOverlord/CoercerZlith.lua
  3. Script Purpose : Coercer Zlith
  4. Script Author : Vo1d
  5. Script Date : 2019.10.04
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. -- Quest ID's
  9. local DisruptionForDistraction = 366
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. end
  18. function LeaveRange(NPC, Spawn)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. conversation = CreateConversation()
  23. if not HasCompletedQuest(Spawn, DisruptionForDistraction) then
  24. if HasQuest(Spawn, DisruptionForDistraction) then
  25. if GetQuestStep(Spawn, DisruptionForDistraction) == 1 then
  26. SetStepComplete(Spawn, DisruptionForDistraction, 1)
  27. elseif GetQuestStep(Spawn, DisruptionForDistraction) == 4 then
  28. SetStepComplete(Spawn, DisruptionForDistraction, 4)
  29. elseif GetQuestStep(Spawn, DisruptionForDistraction) == 6 then
  30. SetStepComplete(Spawn, DisruptionForDistraction, 6)
  31. elseif CanReceiveQuest(Spawn, DisruptionForDistraction) then
  32. NotReady(NPC, Spawn)
  33. end
  34. end
  35. end
  36. end
  37. function NotReady(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/coercer_zlith/tutorial_island02_evil_revamp/quests/citizenship/coercerzlith/coercerzlith009.mp3", "", "", 2204153066, 1989322276, Spawn)
  41. AddConversationOption(conversation, "Very well.", "dlg_3_1")
  42. StartConversation(conversation, NPC, Spawn, "You are not yet ready to take on the tasks I will offer you. Return to Tayil N'Velex outside Sythor's Spire if you are unsure how to prepare yourself.")
  43. end