9
3

OseofCrestryder.lua 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. FaceTarget(NPC, Spawn)
  19. if HasQuest(Spawn,5761) and GetQuestStep(Spawn,5761) == 8 then
  20. Dialog1(NPC,Spawn)
  21. elseif GetTradeskillLevel(Spawn)<=3 then
  22. GenericHail(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. conversation = CreateConversation()
  25. if GetTradeskillLevel(Spawn) <2 then
  26. conversation = CreateConversation()
  27. --not HasItem(Spawn, ARTISAN_ESSENTIALS_VOLUME_2, 1) then
  28. AddConversationOption(conversation, "Yes, please teach me.", "dlg_39_1")
  29. AddConversationOption(conversation, "No, not at the moment.")
  30. 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?")
  31. else
  32. Say(NPC,"Good day! If you are looking for more crafting training, seek out the trainers in Qeynos Harbor. They can help you beyond the basics I provide.","Spawn")
  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_39_1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. if GetTradeskillLevel(Spawn) <2 then
  41. Quest = GetQuest(Spawn,5749)
  42. SummonItem(Spawn,1030001,1)
  43. SetTradeskillLevel(Spawn,2)
  44. SetTradeskillClass(Spawn,1)
  45. SendMessage(Spawn, "You are now an Artisan!")
  46. SendPopUpMessage(Spawn, "You are now an Artisan!", 200, 200, 200)
  47. end
  48. --[[ Revamped
  49. -- artisan essentials volume 2
  50. SummonItem(Spawn, ARTISAN_ESSENTIALS_VOLUME_2, 1)
  51. ]]--
  52. AddConversationOption(conversation, "I will start on that now.")
  53. 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.")
  54. end
  55. function Dialog1(NPC,Spawn)
  56. SetStepComplete(Spawn,5761,8)
  57. FaceTarget(NPC, Spawn)
  58. Dialog.New(NPC, Spawn)
  59. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  60. 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?")
  61. Dialog.AddVoiceover("voiceover/english/oseof_crestryder/qey_village05/100_trd_oseof_crestryder_joining_c958bd9a.mp3", 2296086720, 2447301916)
  62. Dialog.AddOption("I'm just saying hello!")
  63. Dialog.AddOption("What can I do here?", "CanDo")
  64. if GetTradeskillLevel(Spawn)<2 then
  65. Dialog.AddOption("I'm rather new at crafting. Can you help me?", "HelpMe")
  66. end
  67. Dialog.Start()
  68. end
  69. function CanDo(NPC,Spawn)
  70. FaceTarget(NPC, Spawn)
  71. Dialog.New(NPC, Spawn)
  72. PlayFlavor(NPC, "", "", "orate", 0, 0, Spawn)
  73. 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.")
  74. Dialog.AddOption("Anything else I should know?", "CanDo2")
  75. if GetTradeskillLevel(Spawn)<2 then
  76. Dialog.AddOption("I'm rather new at crafting. Can you help me?", "HelpMe")
  77. end
  78. Dialog.Start()
  79. end
  80. function CanDo2(NPC,Spawn)
  81. FaceTarget(NPC, Spawn)
  82. Dialog.New(NPC, Spawn)
  83. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  84. Dialog.AddDialog("Our society also has our very own Broker, who you can talk to in order to buy and sell items from other adventurers. A very handy connection, indeed!")
  85. Dialog.AddOption("Thank you for all the information!")
  86. if GetTradeskillLevel(Spawn)<2 then
  87. Dialog.AddOption("I'm rather new at crafting. Can you help me?", "HelpMe")
  88. end
  89. Dialog.Start()
  90. end
  91. function HelpMe(NPC,Spawn)
  92. FaceTarget(NPC, Spawn)
  93. Dialog.New(NPC, Spawn)
  94. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  95. 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.")
  96. Dialog.AddOption("What can I do here?", "CanDo")
  97. Dialog.AddOption("Thank you for all the information!")
  98. if GetTradeskillLevel(Spawn) <2 then
  99. SummonItem(Spawn,1030001,1)
  100. SetTradeskillLevel(Spawn,2)
  101. SetTradeskillClass(Spawn,1)
  102. SendMessage(Spawn, "You are now an Artisan!")
  103. SendPopUpMessage(Spawn, "You are now an Artisan!", 200, 200, 200)
  104. end
  105. Dialog.Start()
  106. end