9
3

OricaDeadshot.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/OricaDeadshot.lua
  3. Script Purpose : Orica Deadshot <Guardians of Herga's Choke>
  4. Script Author : theFoof
  5. Script Date : 2013.06.01
  6. Script Notes :
  7. --]]
  8. local DemandSupplies = 45
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. if HasQuest(Spawn, DemandSupplies) and GetQuestStep(Spawn, DemandSupplies) < 3 then
  17. conversation = CreateConversation()
  18. PlayFlavor(NPC, "orica_deadshot/halas/great_shelf/orica_deadshot/orica_deadshot001.mp3", "", "", 3100922751, 3756102154, Spawn)
  19. AddConversationOption(conversation, "Yes. Here you go.", "Chat")
  20. AddConversationOption(conversation, "I must be going. Goodbye.")
  21. StartConversation(conversation, NPC, Spawn, "Are those the supplies we've been waiting for?")
  22. end
  23. end
  24. function Chat(NPC, Spawn)
  25. SetStepComplete(Spawn, DemandSupplies, 1)
  26. FaceTarget(NPC, Spawn)
  27. conversation = CreateConversation()
  28. PlayFlavor(NPC, "orica_deadshot/halas/great_shelf/orica_deadshot/orica_deadshot002.mp3", "", "", 17831415, 4241254330, Spawn)
  29. AddConversationOption(conversation, "You're welcome.")
  30. StartConversation(conversation, NPC, Spawn, "Thank goodness! We need these glimmer visors to reliably see the orcs that have been trying to flank us. Yer a life-saver, " .. GetName(Spawn) .. "!")
  31. end