WoundedScout.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/WoundedScout.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.11.07 06:11:25
  5. Script Purpose : Gives the quest "The Search for Bloodskull Valley(582)"
  6. :
  7. --]]
  8. local TheSearchForBloodskullValley = 582
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, TheSearchForBloodskullValley)
  11. SetPlayerProximityFunction(NPC, 15, "InRange", "LeaveRange", Spawn)
  12. end
  13. function InRange(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. if not HasQuest(Spawn, TheSearchForBloodskullValley) and not HasCompletedQuest(Spawn, TheSearchForBloodskullValley) then
  16. PlayFlavor(NPC, "", "All of them dead... we never had a chance...", "", 1689589577, 4560189, Spawn)
  17. end
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. if not HasQuest(Spawn, TheSearchForBloodskullValley) and not HasCompletedQuest(Spawn, TheSearchForBloodskullValley) then
  22. conversation = CreateConversation()
  23. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  24. AddConversationOption(conversation, "What choker?", "offer")
  25. AddConversationOption(conversation, "I'm not interested.")
  26. StartConversation(conversation, NPC, Spawn, "The orcs got everyone... the whole expedition was wiped out... I'm all that's left of a score of soldiers. You've got to get this magic band to the others.... my wounds are too great for me to travel much longer...")
  27. elseif HasQuest(Spawn, TheSearchForBloodskullValley) then
  28. PlayFlavor(NPC, "", "Go... go tell them that we found Bloodskull Valley...", "", 1689589577, 4560189, Spawn)
  29. end
  30. end
  31. function offer(NPC, Spawn)
  32. OfferQuest(NPC, Spawn, TheSearchForBloodskullValley)
  33. end
  34. function respawn(NPC)
  35. end