9
3

OrdinSleetfoot.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/OrdinSleetfoot.lua
  3. Script Purpose : Ordin Sleetfoot
  4. Script Author : theFoof
  5. Script Date : 2013.06.11
  6. Script Notes :
  7. --]]
  8. local BelowWaves = 59
  9. local GoodDistraction = 61
  10. function spawn(NPC)
  11. AddSpawnAccess(NPC, NPC)
  12. SetPlayerProximityFunction(NPC, 50, "SpawnAccess", "SpawnAccess")
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function SpawnAccess(NPC, Spawn)
  18. if HasQuest(Spawn, GoodDistraction) then
  19. if GetQuestStep(Spawn, GoodDistraction) == 1 then
  20. AddSpawnAccess(NPC, Spawn)
  21. end
  22. elseif HasCompletedQuest(Spawn, GoodDistraction) then
  23. elseif HasCompletedQuest(Spawn, BelowWaves) then
  24. AddSpawnAccess(NPC, Spawn)
  25. end
  26. end
  27. function hailed(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. conversation = CreateConversation()
  30. if GetQuestStep(Spawn, GoodDistraction) == 1 then
  31. PlayFlavor(NPC, "ordin_sleetfoot/halas/cragged_spine/ordin_sleetfoot001.mp3", "", "", 346156027, 2620260101, Spawn)
  32. AddConversationOption(conversation, "I am. Slip into the shadows. I'll ensure no one realizes you're there.", "Quest1Chat_1")
  33. AddConversationOption(conversation, "No, I am not ready yet.")
  34. StartConversation(conversation, NPC, Spawn, "So yer the one who's to be the distraction so I can slip past these creatures, are ye? Well normally I don't trust strangers, but if Thirin trusts you, then I will as well. Are ye ready to go?")
  35. else
  36. PlayFlavor(NPC, "", "Shh! Quiet. I'm trying to watch for patterns in the orcs' patrols.", "", 0, 0, Spawn)
  37. end
  38. end
  39. function Quest1Chat_1(NPC, Spawn)
  40. AddTimer(NPC, 2000, "Step1", 1, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. PlayFlavor(NPC, "ordin_sleetfoot/halas/cragged_spine/ordin_sleetfoot002.mp3", "", "", 4202537039, 1639978352, Spawn)
  44. AddConversationOption(conversation, "Be safe.")
  45. StartConversation(conversation, NPC, Spawn, "Good, I'll meet you in the Velinoids' cave. Don't worry about finding me, you'll see me. Just keep on heading further into the cave.")
  46. end
  47. function Step1(NPC, Spawn)
  48. SetStepComplete(Spawn, GoodDistraction, 1)
  49. RemoveSpawnAccess(NPC, Spawn)
  50. end