Kianoa.lua 1.0 KB

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/WillowWood/Kianoa.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.20 06:07:13
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. FaceTarget(NPC, Spawn)
  12. local choice = MakeRandomInt(1,2)
  13. if choice == 1 then
  14. PlayFlavor(NPC,"voiceover/english/steward_kianoa/qey_village05/qst_steward_kianoa_callout1_f727a316.mp3","May the winds of fortune be a cool breeze on your cheek.","nod",809106503,4269106476,Spawn)
  15. elseif choice == 2 then
  16. PlayFlavor(NPC,"voiceover/english/steward_kianoa/qey_village05/qst_steward_kianoa_hail1_9a0c4d73.mp3","May the winds of fortune be a cool breeze on your cheek. Farewell, friend.","hello",3463982245,3183275654,Spawn)
  17. end
  18. if GetRace(Spawn)== 15 or GetRace(Spawn)== 6 or GetRace(Spawn)== 16 then
  19. if HasQuest(Spawn,5717) and GetQuestStep(Spawn,5717)==2 then
  20. SetStepComplete(Spawn,5717,2)
  21. end
  22. end
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end