VakizaSkinner.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : SpawnScripts/BigBend/VakizaSkinner.lua
  3. Script Author : torsten
  4. Script Date : 2022.07.10 08:07:55
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheCaptivesInformation = 5620
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, TheCaptivesInformation)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. if HasLanguage(Spawn, 15) then --Ykeshan
  15. if not HasQuest(Spawn, TheCaptivesInformation) and not HasCompletedQuest(Spawn, TheCaptivesInformation) then
  16. OfferQuest(NPC, Spawn, TheCaptivesInformation)
  17. end
  18. if QuestStepIsComplete(Spawn, TheCaptivesInformation, 1) and not HasCompletedQuest(Spawn, TheCaptivesInformation) then
  19. SetStepComplete(Spawn, TheCaptivesInformation, 2)
  20. if QuestStepIsComplete(Spawn, TheCaptivesInformation, 3) and not HasCompletedQuest(Spawn, TheCaptivesInformation) then
  21. SetStepComplete(Spawn, TheCaptivesInformation, 4)
  22. end
  23. end
  24. end
  25. end
  26. function respawn(NPC)
  27. spawn(NPC)
  28. end