DigginDiggs.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/DigginDiggs.lua
  3. Script Purpose : Diggin Diggs <Armor and Shields>
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. -- Quest ID's
  9. local BADGER_PELTS_FOR_DIGGS = 332 -- was 58
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, BADGER_PELTS_FOR_DIGGS)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1006.mp3", "", "", 0, 0, Spawn)
  20. Begin(NPC, Spawn, conversation)
  21. end
  22. function Begin(NPC, Spawn, conversation)
  23. if not HasQuest(Spawn, BADGER_PELTS_FOR_DIGGS) and not HasCompletedQuest(Spawn, BADGER_PELTS_FOR_DIGGS) then
  24. AddConversationOption(conversation, "I don't need a sales pitch. Got any work?", "GotAnyWork")
  25. elseif HasQuest(Spawn, BADGER_PELTS_FOR_DIGGS) and GetQuestStep(Spawn, BADGER_PELTS_FOR_DIGGS) == 2 then
  26. AddConversationOption(conversation, "Here is your bundle of badget pelts.", "BundleOfPelts")
  27. end
  28. AddConversationOption(conversation, "Sorry. Just passing by.")
  29. StartConversation(conversation, NPC, Spawn, "You're looking a might shabby there. You could use some fine armor from Diggs' inventory. I carry only the finest quality and sell at outrageously low, low prices! I live for the community.")
  30. end
  31. function GotAnyWork(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. conversation = CreateConversation()
  34. AddConversationOption(conversation, "I'm interested.", "ImInterested")
  35. AddConversationOption(conversation, "I don't have time to hunt.")
  36. StartConversation(conversation, NPC, Spawn, "So, you're a worker with no task, eh? If you're itchin' to fill your pockets with heavy coin, then I have a task for you. Are you interested in hunting?")
  37. end
  38. function ImInterested(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. AddConversationOption(conversation, "I will return with the bundle of badger pelts. ", "OfferQuest1")
  42. StartConversation(conversation, NPC, Spawn, "Then prepare for a hunting trip in the Forest Ruins. I'll pay you handsomely for a bundle of badger pelts. I may even toss in a bit of Diggs' finest armor.")
  43. end
  44. function OfferQuest1(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. OfferQuest(NPC, Spawn, BADGER_PELTS_FOR_DIGGS)
  47. end
  48. function BundleOfPelts(NPC, Spawn)
  49. SetStepComplete(Spawn, BADGER_PELTS_FOR_DIGGS, 2)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. AddConversationOption(conversation, "I guess this is better than nothing.")
  53. StartConversation(conversation, NPC, Spawn, "Fine work ... fine work! I must tell you, I just paid my merchant taxes. 'Fraid the coin ain't as heavy as I promised. Sorry, taxes you know? I speak the truth!")
  54. end