OseofCrestryder.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. --[[
  2. Script Name : SpawnScripts/WillowWood/OseofCrestryder.lua
  3. Script Purpose : Oseof Crestryder <Crafting Trainer>
  4. Script Author : Scatman
  5. Script Date : 2009.09.15
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. dofile("SpawnScripts/Generic/GenericVoiceOvers.lua")
  10. -- Item ID's
  11. local ARTISAN_ESSENTIALS_VOLUME_2 = 31373
  12. function spawn(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. if HasQuest(Spawn,5760) and GetQuestStep(Spawn,5760) == 8 then
  21. Dialog1(NPC,Spawn)
  22. elseif GetTradeskillLevel(Spawn)<=3 then
  23. GenericHail(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. conversation = CreateConversation()
  26. -- artisan essentials volume 2
  27. if not HasItem(Spawn, 31373, 1) then
  28. AddConversationOption(conversation, "Yes, please teach me.", "dlg_14_1")
  29. end
  30. AddConversationOption(conversation, "No, not at the moment.")
  31. StartConversation(conversation, NPC, Spawn, "You show interest in the crafting trade, good. We can always use talented artisans. I can help you get started, would you be interested?")
  32. else
  33. Say(NPC, "I have nothing else to teach you for the moment. Please return to me when you have earned enough experience to choose your profession.", Spawn)
  34. end
  35. end
  36. end
  37. function dlg_14_1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. -- artisan essentials volume 2
  41. SummonItem(Spawn, 31373, 1)
  42. if GetTradeskillLevel(Spawn) < 2 then
  43. SetTradeskillLevel(Spawn, 2)
  44. end
  45. AddConversationOption(conversation, "I will start on that now.")
  46. StartConversation(conversation, NPC, Spawn, "There, you now have knowledge required to begin crafting. Speak to the Tradeskill Tutor for more detailed guidance on learning to craft, if you are interested in more information. Return to me when you are ready to select a crafting specialty.")
  47. end
  48. function Dialog1(NPC,Spawn)
  49. SetStepComplete(Spawn,5761,8)
  50. FaceTarget(NPC, Spawn)
  51. Dialog.New(NPC, Spawn)
  52. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  53. Dialog.AddDialog("The Wayfarer's Stockpilers always have room for another strong back, if you were looking for work. Do you want to come aboard our fellowship?")
  54. Dialog.AddVoiceover("voiceover/english/oseof_crestryder/qey_village05/100_trd_oseof_crestryder_joining_c958bd9a.mp3", 2296086720, 2447301916)
  55. Dialog.AddOption("I'm just saying hello!")
  56. Dialog.AddOption("What can I do here?", "CanDo")
  57. if GetTradeskillLevel(Spawn)<2 then
  58. Dialog.AddOption("I'm rather new at crafting. Can you help me?", "HelpMe")
  59. end
  60. Dialog.Start()
  61. end
  62. function CanDo(NPC,Spawn)
  63. FaceTarget(NPC, Spawn)
  64. Dialog.New(NPC, Spawn)
  65. PlayFlavor(NPC, "", "", "orate", 0, 0, Spawn)
  66. Dialog.AddDialog("Many things can be done at a tradeskill society and there are many in the city... but ours is obviously the best! Each is equipped with quality crafting stations and fuels needed to become proficient at any tradeskill class you might desire.")
  67. Dialog.AddOption("Anything else I should know?", "CanDo2")
  68. if GetTradeskillLevel(Spawn)<2 then
  69. Dialog.AddOption("I'm rather new at crafting. Can you help me?", "HelpMe")
  70. end
  71. Dialog.Start()
  72. end
  73. function CanDo2(NPC,Spawn)
  74. FaceTarget(NPC, Spawn)
  75. Dialog.New(NPC, Spawn)
  76. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  77. Dialog.AddDialog("Our society also has our very own Broker, who you can talk to in order to buy and sell items from other players. A very handy connection, indeed!")
  78. Dialog.AddOption("Thank you for all the information!")
  79. if GetTradeskillLevel(Spawn)<2 then
  80. Dialog.AddOption("I'm rather new at crafting. Can you help me?", "HelpMe")
  81. end
  82. Dialog.Start()
  83. end
  84. function HelpMe(NPC,Spawn)
  85. FaceTarget(NPC, Spawn)
  86. Dialog.New(NPC, Spawn)
  87. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  88. Dialog.AddDialog("Lets see... here are the basics to get you going on your path to becoming an Artisan. Scribe these recipies to learn the basics. If you are needing more information, step inside and there will be others that can help you.")
  89. Dialog.AddOption("What can I do here?", "CanDo")
  90. Dialog.AddOption("Thank you for all the information!")
  91. if GetTradeskillLevel(Spawn) <2 then
  92. SummonItem(Spawn,1030001,1)
  93. SetTradeskillLevel(Spawn,2)
  94. SetTradeskillClass(Spawn,1)
  95. SendMessage(Spawn, "You are now an Artisan!")
  96. SendPopUpMessage(Spawn, "You are now an Artisan!", 200, 200, 200)
  97. end
  98. Dialog.Start()
  99. end