9
3

BulltheCrafty.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/BulltheCrafty.lua
  3. Script Purpose : Bull the Crafty <Mender>
  4. Script Author : Foof
  5. Script Date : 2013.05.16
  6. Script Notes :
  7. Modified date : 9/4/22
  8. Modified by : Ememejr
  9. Modifed Notes : converted to dialogmodule
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. local HarvestTutorial = 11
  13. local HadAHammer = 12
  14. function spawn(NPC)
  15. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  16. ProvidesQuest(NPC, HadAHammer)
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function InRange(NPC, Spawn)
  22. end
  23. function LeaveRange(NPC, Spawn)
  24. end
  25. function hailed(NPC, Player)
  26. -- VO option Well Met, Hail, Hello,
  27. FaceTarget(NPC, Player)
  28. Dialog.New(NPC, Player)
  29. Dialog.AddDialog("Greetings! I noticed you harvesting out there. Are you interested in trying your hand at making something out of them?")
  30. Dialog.AddRequirement(REQ_QUEST_HAS_COMPLETED_QUEST,HarvestTutorial)
  31. Dialog.AddRequirement(REQ_QUEST_DOESNT_HAVE_QUEST,HadAHammer)
  32. Dialog.AddRequirement(REQ_QUEST_NOT_HAS_COMPLETED_QUEST,HadAHammer)
  33. Dialog.AddOption("Sure, why not? Is it hard?", "Quest1Chat_2")
  34. Dialog.AddDialog("The recipe's right there in front of me there, don't forget to read it once you pick it up. The coal's on the ground there. And make sure you have a tin cluster and a lead cluster in your bags, they'll be no use to you in the bank!")
  35. Dialog.AddEmote("nod")
  36. Dialog.AddRequirement(REQ_QUEST_BEFORE_STEP,HadAHammer,3)
  37. Dialog.AddDialog("Having any trouble? You might have noticed that at the bottom of the crafting window you see six tradeskill arts you can use. Three will improve the durability, and three the progress of your craft. Try using those as much as you need while crafting.")
  38. Dialog.AddRequirement(REQ_QUEST_ON_STEP,HadAHammer,3)
  39. Dialog.AddOption("I'll try.")
  40. Dialog.AddDialog("How did you make out? Was my recipe simple enough?")
  41. Dialog.AddRequirement(REQ_QUEST_ON_STEP,HadAHammer,4)
  42. Dialog.AddOption( "I made a lucky wolf paw charm!" ,"Quest1Chat_3" )
  43. Dialog.AddDialog("At peace or at war, my work must go on.")
  44. Dialog.Start()
  45. end
  46. function OfferHadAHammer(NPC, Player)
  47. OfferQuest(NPC, Player, HadAHammer)
  48. end
  49. function Quest1Chat_2(NPC, Player)
  50. FaceTarget(NPC, Player)
  51. Dialog.New(NPC, Player)
  52. Dialog.AddDialog("Nay, not hard at all once you wrap your head around it. But I'm not one to keep talking all day. Why don't you just jump in and try it?")
  53. Dialog.AddOption("Okay, what do I do?", "OfferHadAHammer")
  54. Dialog.Start()
  55. end
  56. function Quest1Chat_3(NPC, Player)
  57. SetStepComplete(Player, HadAHammer, 4)
  58. FaceTarget(NPC, Player)
  59. Dialog.New(NPC, Player)
  60. Dialog.AddDialog("Congratulations! You seem to have a right knack for crafting things, if I do say so. If you're interested in learning more about crafting, you should look up a professional tradeskill tutor who can tell you all the details.")
  61. Dialog.AddOption("Thanks, I might do that.")
  62. Dialog.Start()
  63. end
  64. function OfferHadAHammer(NPC, Player)
  65. OfferQuest(NPC, Player, HadAHammer)
  66. end