9
3

DagbartFalkren.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/DagbartFalkren.lua
  3. Script Purpose : Dagbart Falkren <Collector>
  4. Script Author : theFoof
  5. Script Date : 2013.10.30
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1042.mp3", "", "hello", 0, 0, Spawn)
  17. if HasCollectionsToHandIn(Spawn) then
  18. AddConversationOption(conversation, "I have a collection for you.", "TurnInColls")
  19. end
  20. AddConversationOption(conversation, "I don't have any at the moment.")
  21. StartConversation(conversation, NPC, Spawn, "Hello there! If you have any collections that you've completed, I can take them off your hands and reward you for your time. I love collecting things!")
  22. end
  23. function TurnInColls(NPC, Spawn)
  24. HandInCollections(Spawn)
  25. FaceTarget(NPC, Spawn)
  26. conversation = CreateConversation()
  27. AddConversationOption(conversation, "All right, thanks!")
  28. StartConversation(conversation, NPC, Spawn, "This is a magnificent find! Here, take this for all your hard work.")
  29. end